Harness
Harness runs an agent in a daemon process. You use a separate terminal UI (TUI) to connect to that daemon, choose a model, and follow its work.
For larger tasks, the model can call workers with their own conversations and compose known tool steps into a program. You do not need to configure a fixed team to start; Agents and delegation and Composing tools explain those choices.
Runtime and session state explains what runs behind the terminal. How a turn runs follows a prompt through model requests and tools.
Install
Section titled “Install”The Harness checkout is self-contained. You do not need the Arrival, Plexus, Commons, or Foundation repositories beside it. You need Node.js 22 or newer and pnpm 10.33.
Get the Harness repository, then run from its root:
corepack enablepnpm install --frozen-lockfilepnpm buildpnpm --filter \ @inhuman.tools/harness devcorepack enable makes the pinned pnpm available. The last command builds the TUI and opens it. The dev script sets DEBUG=*, so the first launch prints debug output to stderr. Both the TUI and daemon can append to ~/.harness/harness.log. Set HARNESS_LOG to use another log file.
Settings and connections live in ~/.harness unless you pass --kernel PATH. The connection file is <kernel>/config.json.
pnpm verify runs the full local gate: build, typecheck, lint, logic tests, process tests, TUI visual tests, and a smoke test of the packed server tarball. You do not need it to start a session.
Open a session
Section titled “Open a session”MCP servers, plugins, and web search can wait. Connect a completion provider and select one of its models:
- In the TUI, run
/connect. Choose a built-in completion provider and finish its sign-in or API-key step. Secrets stay on the daemon. - Run
/model. Pick an advertised model for that connection, or type an invocation id. - Type a prompt and press Enter.
/connect also lets you rename or remove a connection. Choosing a completion provider sets this session’s model to the last-used id, or the highest-version live id, and remembers both. The next session starts with that pair.
/model changes the session model. Picking a model on a connection also selects that connection. It does not adopt or remove connections. --model, --connection, and a subagent change only the current session.
While a turn runs, Enter queues another draft instead of starting a second turn immediately. Slash commands such as /connect operate separately from your prompt.
Ask about a file
Section titled “Ask about a file”Use a disposable directory so you can check the result without involving project files. In a terminal, create three lines in notes.txt:
mkdir harness-first-taskcd harness-first-taskcat > notes.txt <<'EOF'[ ] Check the build[x] Update the changelog[ ] Run the testsEOFAfter the normal install above, open another terminal, change into the disposable directory, and launch Harness there:
HARNESS=/path/to/harness-checkoutcd /path/to/harness-first-tasknode "$HARNESS/packages/harness/bin/\harness.mjs"Replace /path/to/harness-checkout with the location of your Harness checkout. The CLI opens the TUI in its current working directory, which becomes the session workspace. Connect a model as above, then ask:
Read notes.txt and report unchecked items. Do not change files.
The expected factual answer is two unchecked items: “Check the build” and “Run the tests.” This is a task to try, not a recorded provider or TUI run. Afterward, check notes.txt yourself; it should still contain the same three lines. The prompt asks the model not to edit, but it is not a security restriction. If prompted for approval, approve only requests you have checked are needed to read notes.txt; refuse proposed edits.
Review tool requests
Section titled “Review tool requests”A tool request may wait for your approval before it runs. If the TUI asks you to approve a read, inspect the requested tool and its arguments, then decide under your normal policy. Do not assume reads are always approved or that this prompt prevents other actions. Shift-Tab cycles the permission modes manual, auto, and yolo; all three still run policy, and none can override a hard block. Tools and permissions explains the decisions. The separate act / plan setting controls session posture, not the permission mode.
Add MCP servers later from /connect or /mcp. /mcp shows server health, handles authentication, and lets you disable a server for this session. Connecting a server does not grant its tools: each call still goes through <kernel>/policy.yaml. Plugins can add tools and commands, but not model drivers. Web search is optional. For provider sign-in methods, MCP transports and tool filters, and web-search selection, see Drivers and connections.
For model selection, connection management, and approval interaction, see Operate Harness. If /model has no models to choose from, connect a completion provider first.
Published source docs are the Harness reference. Design documents are left out until they are reviewed. These steps follow README.md, docs/client/operate.md, and docs/runtime/drivers.md in the Harness checkout. Approval chords, MCP glob syntax, and pack authoring are there.