Docs · Coding harness

Incode

Incord Code

Incode is a coding harness. It plans the work, has a model do it, runs every tool the model calls through its own guards, and only calls a task done when a local command proves it. The agent CLIs you already pay for (claude, codex, agy) are used only as models, on your own subscriptions.

Shipped. Released for Windows, macOS and Linux. The Codex route has not yet been run against a real model.

What it is

Incode owns the tools, the permission checks, the undo history, the memory hooks and the record of what happened. The model only decides what to do next. A task reaches Done only when a local command exits with zero, never because a model said so; after two failed attempts it is set aside.

  1. 1PlanA strong model reads the brief and the PRD and splits the roadmap into tasks, each tagged with a role.
  2. 2Run by roleCheap models take explore and grunt work; stronger ones plan and review. Roles: explore, diagnose, plan, implement, review, frontend, grunt.
  3. 3RecordEvery attempt is recorded with the worker that made it.
  4. 4ProveThe task's check command must pass on your machine.
  5. 5Fall backIf the chosen agent fails, Incode tries your other local agents, then an API route.
  • A SPEC GATE: source is not written until the PRD, architecture, contracts, conventions, verification and assumptions docs exist.
  • PROTECTED FILES: tests, CI config, migrations and .env cannot be written.
  • PARALLEL LANES: with INCODE_LANES above 1, tasks run in separate git worktrees. Merge conflicts are never resolved automatically.
  • A TOKEN BUDGET per run.

Install

You need at least one of claude, codex or agy installed and signed in. Incode installs to ~/.local/bin (or $INCODE_INSTALL_DIR).

Linux and macOS

curl -fsSL https://raw.githubusercontent.com/incordai/incode/main/scripts/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/incordai/incode/main/scripts/install.ps1 | iex

From source: cargo build --release (Rust 1.88+). Settings live in ~/.incode/admin.json; a flag beats an environment variable, which beats the admin file.

CLI

CommandWhat it does
incodeAn interactive session.
incode -t "<task>"Run one instruction and exit. Add --output-format json for scripts.
incode --acpRun as an Agent Client Protocol agent on stdio, for editors and apps.
incode --serveA local viewer on 127.0.0.1 for a run in this workspace.
incode reviewA read-only review of the current change.
incode mcp list | add | remove | loginManage the MCP servers Incode starts.
incode remote runRun a task on GitHub Actions.
incode updateInstall the latest release.
-p <mode>Permission mode: read-only, workspace-write, danger-full-access, prompt or allow.

In a session: /roles, /model, /plan, /act, /review, /undo, /rewind, /diff, /cost, /mcp and /pr.

MCP

Incode is both an MCP client and a server.

As a client it starts the servers in a project's .mcp.json and in ~/.incode/mcp.json, over stdio or Streamable HTTP, and offers their tools as mcp__<server>__<tool> through the same permission gate as its own. A project's servers must be approved before they first run.

As a server it hands its own toolbox to the CLI it launched: Read, Write, Edit, ApplyPatch, Bash, Glob, Grep, Outline, WebFetch, WebSearch, Agent, verify, the memory tools and the team tools. Workers can message each other with team_ask, team_tell, team_answer and team_read.

The same repo ships two standalone MCP servers: insbx for sandboxes and incu for computer use. Each has its own page.

SDKs and editors

  • PYTHON: incode_sdk, with run_task() for one-shot runs and Session / AsyncSession for interactive ones. Install from the repo: pip install ./sdk/python.
  • TYPESCRIPT: @incord/incode-sdk, with runTask() and Session.
  • Both drive incode -t --output-format json or incode --acp, and answer permission requests through a callback that rejects by default.
  • VS CODE: a chat view that runs incode --acp (installed from a local .vsix).
  • ZED AND JETBRAINS: a config entry that runs incode --acp.

How it connects to Watchman

  • Watchman runs Incode as an agent provider over ACP.
  • Incode talks to the Inmem engine at 127.0.0.1:9180 over HTTP and fires its hooks itself: session-start, user-prompt, pre-tool, permission-request, code-edit, capture, session-end.
  • Before repeating a step, it asks the recorder with watchman_lookup.
  • Memory is optional and Incode keeps working without it, except the owner channel: if the owner cannot be asked, the action does not run.
  • Inbrowse is its built-in headless browser tool.

Other docs

How every service reaches Watchman, in one place: How it connects.