Hark is a desktop app for the coding-agent CLIs you already pay for — Claude Code natively; Gemini CLI, Codex and any Agent Client Protocol agent through one plugin. One window holds every project. Each chat opens next to a terminal, the project's files, a browser and the session panel; the agents produce documents, spreadsheets, whiteboards and dashboards you edit, comment on and send back; a board tracks every task, each card a session; the cost of every chat stays in view. Ask out loud and hear the answer when you want to, type when you don't.
Hark never calls a model API behind your back. It drives the agent CLIs you already have installed and authenticated — Claude Code natively, and Gemini CLI, Codex or any other agent that speaks the Agent Client Protocol through one plugin — so every token draws from the subscription you already pay for. No API key, no second bill, no telemetry, no account.
Hark is open source under MIT or Apache-2.0. This repository holds the source, the documentation and every release.
curl -fsSL https://harkharness.web.app/install.sh | bashThat picks the right build for your machine and installs the hark CLI into
~/.local/bin. On macOS it drops hark.app into /Applications and clears
the quarantine bit — the app is not code-signed yet, so macOS would otherwise
refuse to open it. On Ubuntu, Debian and their relatives it installs the
.deb through apt, so the WebKit, GTK and Speech Dispatcher packages come
with it; on any other Linux it puts the AppImage in ~/.local/opt/hark with a
launcher entry.
Prefer to click? Grab a package from the latest release:
| File | For |
|---|---|
hark-app-aarch64-apple-darwin.dmg |
macOS, Apple Silicon (M1 and newer) |
hark-app-x86_64-apple-darwin.dmg |
macOS, Intel |
hark-app-x86_64-unknown-linux-gnu.deb |
Ubuntu 22.04+, Debian 12+ and relatives, x86_64 |
hark-app-aarch64-unknown-linux-gnu.deb |
the same, on arm64 |
hark-app-<target>.AppImage |
any other Linux (needs FUSE 2: libfuse2) |
hark-cli-<target>.tar.gz |
the headless hark CLI on its own |
If you download the .dmg by hand, run xattr -cr /Applications/hark.app once
before opening it. A .deb installs with sudo apt install ./hark-app-<target>.deb.
You need: macOS 12+ or a Linux desktop (Ubuntu 22.04+ or equivalent, with
PipeWire or PulseAudio for the microphone), at least one supported agent CLI
installed and logged in — the Claude Code CLI gets the richest experience;
Gemini CLI, Codex
(@agentclientprotocol/codex-acp) or any other ACP agent works through the ACP
plugin — and ~500MB of disk for the speech model. The first-run wizard checks
all of it, downloads the model and asks for the microphone once.
Windows is next. On Linux the voice speaks through Speech Dispatcher and the speech model runs on the CPU; on Apple Silicon it runs on Metal.
You need the Xcode command line tools, Rust (stable; CI pins 1.98.0), Node 22 and npm.
git clone https://github.com/harkharness/hark && cd hark
npm install
npm run tauri dev # the desktop app, with hot reload
cargo build --release -p hark-cli # the headless CLICONTRIBUTING.md covers the rest: tests, the project layout and how a release is cut.
One window that is your assistant. The home greets you with the day: what to resume, what to say, where the board stands. Behind it, a persistent chat backed by a long-lived Claude Code session with your full settings — MCP servers and tools included. It has a name, a personality file it maintains itself, and it speaks its answers. Cheap questions never reach it: they are answered from the local index for zero tokens, or by a bare one-shot ask that costs cents.
Chats that read like Claude Code. Full session history in the sidebar, markdown transcripts with folded tool calls and grouped command bursts, deliverable file cards, a CSV-as-table viewer. Every privileged tool call renders as an inline permission card you can answer by click, keyboard or voice. Beside the chat, a rail of panels that belong to that chat and stack: a real PTY terminal, the files window with its editor, a browser in a webview of its own, and the session bar — environment, context, the MCP connectors the session opened, what it wrote, the git changes (the diff of every file changed since the last commit, and "commit the changes" that hands the ask to the chat), the commands it left running in the background, and what it cost. A page the agent wrote opens beside the chat too, as its own panel, never instead of the chat. Come back to a chat and its shell, its open file and its page are still there.
Two keys, zero tokens. Cmd+P opens the files window with its filter
ready; Cmd+K opens Procurar, one palette over everything the window
knows — chats, pages, projects, the Claude Code history, a few actions —
with a tab per kind, answered from the local index.
Artifacts: the documentation of this machine. Pages you and the agents
write, kept as a tree the way a wiki keeps them: one space per project plus
a personal one. Six kinds: a document (markdown), a deck and a design (one
HTML file, rendered in an isolated frame with Hark's own pager or canvas),
and three the agent writes as JSON and Hark computes — a spreadsheet
with formulas, a whiteboard of notes, groups, arrows and a timeline,
and a dashboard over data that lives on this machine. The gallery
shows each page as a thumbnail drawn from its file. The agent writes a page
through a skill Hark installs, the tree adopts it and remembers which chat
it was born in, and "take to…" on a page carries it into any chat — Hark,
the one it was born in, a recent one or a new one. Plain files under
~/.hark/artifacts; nothing costs tokens to browse.
Edited by hand, reviewed by comment. Every page is yours to edit in
place: cells, formulas, rows and columns of a sheet; notes, arrows and
milestones of a board; the queries of a dashboard; the words of a deck or
a design, double-clicked in the frame. What the agent changed since you
last accepted is marked, with undo and accept; every edit of yours is a
version the page keeps. A comment sits beside the page, anchored to a cell,
a note, a slide or a mark you drew over it; write @hark in it and the
comment becomes a request to the chat the page was born in, answered when
that chat writes the page again.
A board where the cards are the sessions. Demands live in columns; each card carries the session that is doing the work, so "continue the webhook migration" resumes the right conversation instead of starting a new one. Say it out loud and Hark shows you the resolved target before anything runs.
An honest ledger. Every turn — including the failed ones — lands in a local spend ledger. USD comes only from the CLI's own numbers, token counts come from the session logs, and the two are never summed. The panel shows where the money went, cache hit ratios and your subscription windows.
A permission floor that does not move. Commands that touch production —
kubectl apply, terraform apply, helm, force-push, destructive SQL, cloud
deletes, package publishes — are never auto-approved: standing rules are
ignored, the card turns red, and in bypass mode the infra CLIs are blocked
outright.
Screenshots of the real window in its demo mode (?demo=), over invented
projects, sessions and spend. Yours carry your own.
Measured against claude v2.1.x on a real codebase:
| Path | Cost / turn |
|---|---|
| Lean ask (no tools, no settings, pre-cooked snapshot) | ~$0.009 |
Default claude -p (memory file + MCP + tools) |
$0.23+ |
| Worker turn with tools executing | $0.33+ |
| Resumed worker turn (prompt cache warm) | ~$0.001 |
Lean ask over the Claude ACP adapter (claude-agent-acp, haiku) |
~$0.002 |
The architecture assumes tokens are the scarce resource:
- Three answer layers. Deterministic questions — the board, running workers, today's spend — are answered locally for zero tokens. Phrasing-only questions get a light model with ~1k of context. Only real reasoning pays full price.
- A gate before the expensive path. A cheap evaluator checks a dispatch against its target before a worker burns dollars on the wrong session.
- Local-first everything. Session history lives in a SQLite index built incrementally from the CLI's own logs. Recalling a chat, searching sessions, opening files and reading transcripts never touch a model.
- Hard ceilings. Every turn runs under a dollar ceiling (default $5) held by Hark itself: it prices the turn's calls as the stream reports them and cuts the turn between calls past the ceiling, then says how much, and offers to lift it for that chat, restart light, or switch model. On every agent.
- Model routing. The tier is chosen from what you actually asked for, not from a global default — and said in each agent's own model names, so one window default drives a Claude chat and a Gemini chat alike.
Hexagonal (ports and adapters), with a functional core and an imperative shell:
crates/hark-core all logic, no UI
src/domain/ pure functions and immutable types, no I/O
src/ports/ traits: Stt, Tts, AgentRunner, SessionStore, SpendLedger…
src/adapters/ thin shells: sqlite, whisper, cpal, say, pty
crates/hark-agent the plugin contract: an event vocabulary + a capability sheet
crates/hark-plugin-claude the Claude Code backend
crates/hark-plugin-acp every Agent Client Protocol backend
crates/hark-cli headless driver: hark ask / dispatch / spend
src-tauri + src/ the desktop app (Tauri v2 + React)
Domain code is test-driven and runs without a microphone, a database or a
network. The voice pipeline is local: whisper.cpp (Metal) for speech to text,
the system say voice for text to speech.
The documentation for people lives on the site, in English, Portuguese and Spanish, behind two doors:
| Use Hark | install, first run, the agents, the window panel by panel, artifacts, the board, costs, voice, configuration, the CLI, troubleshooting, FAQ |
| Build Hark | contributing, the project layout, the plugin contract, the frontend, testing other agents and OSs, translations, releases |
Those pages are the files under docs/site/ in this
repository, one tree per language, and a check on every push keeps the
three in step. The rest of docs/ is written for agents and
maintainers: the plugin contract in depth,
the visual grammar, and the measured
findings behind the architecture.
Hark is a cockpit, not an agent. The agent is a plugin behind a small contract: an event vocabulary (assistant text, tool calls, permission requests, turn results with cost) plus a capability sheet the UI degrades against. Two plugins speak for every agent today:
- Claude Code, natively — the
claudeCLI with your full settings, MCP servers, memory file and session history on disk. - The ACP plugin — any agent that speaks the Agent Client Protocol: Gemini CLI, Codex, Claude Code over ACP, DeepSeek, Kiro, Google Antigravity ship as registry lines, and any other ACP agent is one line of config away.
Settings → Plugins is the catalog: what is installed, what each plugin can do, which build is on your machine against what the ACP registry publishes (with the update command when yours is behind), and what each agent calls the model tiers. The cockpit does not thin out when the agent changes: Hark keeps a history for agents that leave none on disk, prices every turn an agent reports and shows an honest dash where it does not, applies the same production floor to every one of them, and hands a thread from one agent to another mid-task ("switch this chat to Gemini") with a local brief. What a plugin cannot do stays on screen, disabled, with the reason — never hidden.
The contract lives in crates/hark-agent, so anyone can
write a backend for the agent CLI their company allows. That is the whole
thesis: the workflow belongs to the developer, the vendor is a plugin, and the
cost ledger is the one neutral ruler across all of them.
- Hark makes one network call of its own: an update check against this
repository's releases (a plain GET, nothing identifying sent;
auto_update = falseturns it off). Updates install only when you click restart. Everything else runs through the agent CLI you chose, under your own account. - The speech model runs locally; audio never leaves the machine.
- The local index and the spend ledger contain fragments of your prompts and session titles. They live in your user data directory and stay there.
- Artifact pages are plain files under
~/.hark/artifacts, yours to copy, version or delete; the share menu only ever writes to this machine. - No telemetry, no analytics, no account, nothing phones home.
Does it use my subscription? Yes — that is the point. Hark shells out to
the agent binaries you already authenticated — claude, gemini, codex-acp
and so on. It has no API key and cannot bill you separately.
Do I need to change how I work? No. Hark reads the sessions the CLI already writes to disk, honours your existing settings, memory file, MCP servers and skills, and hands the same sessions back. Close Hark and your terminal workflow is exactly where you left it. Agents that keep no session file get one written by Hark, so their chats are searchable and resumable inside Hark too.
Is it free? Yes. Hark is open source under MIT or Apache-2.0 and costs nothing beyond the agent subscriptions you already have.
Where do the pages the agent writes go? Into the project's own
docs/hark/ when you moved its pages to the repository, to be versioned
with it; otherwise into ~/.hark/artifacts/<space>/,
as markdown, html or json files (.sheet.json, .board.json, .dash.json)
you can open with anything. Hark keeps an
index.json beside them for the tree order and the origin chat, and
reconciles it with the disk on every read: a file you drop there by hand
becomes a page, a file you delete leaves the tree.
Bug reports, agent registry lines, translations, docs and code are all welcome. Start with CONTRIBUTING.md; report vulnerabilities privately as described in SECURITY.md. Everyone taking part follows the code of conduct.
Every tag builds macOS (Apple Silicon and Intel) and Linux (x86_64 and arm64)
and publishes to
Releases. Asset names carry no
version, so releases/latest/download/<name> links keep working forever.
Report a problem or ask for something in
Issues.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Hark by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Hark is an independent project, not affiliated with or endorsed by Anthropic, Google or OpenAI. Claude Code, Gemini CLI and Codex are trademarks of their respective owners.





