PanCode

v0.9.7 source-available What’s new in v0.9.7

The model is a choice.
The harness is what you keep.

PanCode is one harness for the models and coding agents you already use. It routes each task, runs commands inside limits you set, and checks finished work against what actually ran.

curl -fsSL https://pancode.dev/install.sh | sh
pancode · bookshelf-api

The last-page test fails. Find the cause, fix it, and run the test check.

▸ explored 1 search ✓

│ last page|last-page

$ checked test · 1.5KB ✗ failed

│ ℹ fail 1

▸ explored 2 files, 1 search ✓

⇢ chained 2 steps ✓

Fixed the last-page bug. src/paginate.ts:10 rounded 25 books at 10 per page down to 2 pages, so the guard at src/server.ts:36 returned 404 for page 3. Using Math.ceil counts the partial page. The test check passed: all 7 tests, including the last-page test.

✓ Done · 18:33

default · bookshelf-api · main* │ ✓ readyctx ▰▱▱▱▱▱ 6% · low · gpt-6.2-sol

A recorded session, PanCode 0.9.6 with GPT-6.2 Sol through GitHub Copilot.

What PanCode is

A harness for coding work,
in three steps.

PanCode runs in your terminal, with a desktop app in alpha. It works beside the coding agents you already use and replaces none of them.

  1. Step 1

    Install

    One command installs a verified bundle that carries its own Node.js. It needs no root and no account.

    Install commands
  2. Step 2

    Connect a model or an agent you already use

    pancode configure finds the model connections on this machine, or takes an API key, a subscription, a model server such as Ollama or vLLM, or a setup file from your lab. Claude Code, Codex, OpenCode, Pi and the Antigravity CLI join as workers.

    Connect a model
  3. Step 3

    Give it work

    Describe the task in the terminal or the desktop app. PanCode routes it, runs commands inside the limits you set, and checks the result against what ran.

    Your first session
PanCode desktop app, version 0.9.6, with the calibration-lab project in the sidebar. A finished task: the end of the command's test output (tests 7) and a note that the operator approved it once, then Panos reports that dist/ was deleted and rebuilt, the build produced dist/temperature.mjs and npm test passed all 7 tests, lists the three reference temperatures it took from the test names (freezing point, boiling point and absolute zero), and says the other four tests check round trips within 1e-10, TypeError for non-numeric and non-finite inputs and RangeError below absolute zero. The footer reads Done with the turn's time, its tokens and 1 tool call; the composer shows Default, claude-sonnet-5.5 and Thinking low.
The desktop app (alpha) after a finished task. Open it with pancode gui --open.

Around any agent, five things are decided. PanCode holds them:

  1. 1 / RouteWhich model gets the work
  2. 2 / VerifyWhether “done” is true
  3. 3 / ContainWhat a command may touch
  4. 4 / DelegateWho else takes part of the job
  5. 5 / RememberWhat survives the session

1 / Route

Use every model and agent
you already have.

PanCode connects a model server on your own GPU, a lab gateway, a cloud API or a subscription you already pay for. /model changes the model mid-session, and chat and workers can run on different models. A 32K local model gets the same tools, rules and checks as a frontier API.

default · bookshelf-api · main │ ✓ readyctx 272k · low · gpt-6-luna

default · bookshelf-api · main │ ✓ readyctx 200k · low · claude-sonnet-5.5

default · bookshelf-api · main │ ✓ readyctx 200k · low · gemini-4-argon

Three status rows from one recorded session: /model switched the model twice and the context size followed.

2 / Verify

“Done” is a claim,
checked against what ran.

Declared tests, builds and numerical comparisons run through verify and are recorded with their exit status. An edit after the last passing check reopens the claim. A turn that ends without a reply is failed, never Done. In a script, pancode run --verify "npm test" --fail-on-verify exits 1 when the check fails.

$ checked test · exit 0 · 22 lines ✓

│ … 20 earlier lines · /view

│ ℹ pass 9

│ ℹ fail 0

■ GET /books?year=1847 now returns only books published in 1847. The filter runs before pagination, so totals count only matching books. Added tests for filtering and invalid years. The test check passed all 9 tests.

✓ Done · 8 calls · in 63.7k · out 710 · cached 44.9k · cache write 4.2k · 18:26

From a recorded session that adds a year filter to an API: the check, its result and the turn’s totals.

3 / Contain

Let it work,
inside limits you set.

Shell commands run in an OS sandbox when the host has one, and files are snapshotted before they change. /rewind restores them. Hard blocks on protected paths stay, even in yolo. External agents and workers on fleet nodes run outside PanCode’s sandbox.

▌ Check that .env sets DATABASE_URL: run grep -c DATABASE_URL .env with bash and tell me exactly what happens. If it is blocked, name the rule.

$ bash grep -c DATABASE_URL .env · runs a command ✗ blocked

│ … 4 earlier lines · /view

│ rule: secret_path_bash

│ This is a hard block; confirmation cannot override it.

■ The command did not run. PanCode blocked it under the secret_path_bash rule because .env matches a zero-access path. The block cannot be overridden in this run, so whether DATABASE_URL is set remains unverified.

✓ Done · 18:27

From a recorded session: a hard block names its rule.

4 / Delegate

Hand bounded tasks
to a graded fleet.

PanCode hands bounded tasks to workers: its own on any model you connected, or Claude Code, Codex, OpenCode, Pi and the Antigravity CLI, also a fleet connection. Each run takes a slot on its endpoint, and each role owes specific evidence. A worker that returns without it can be retried once on another model. pancode fleet land lands the branches a run kept.

Terminal Fleet Runs list opened with Alt+W after the poll: the council of 3 run done, and its participants p1 to p3 and the vote synthesis, each with its state, time, output tokens and answer. The capture ran inside tmux, where PanCode keeps workers in this in-app list instead of a Herdr dock beside the conversation.
Alt+W lists this session's workers. Inside tmux, as here, the list opens in PanCode rather than in a dock.

5 / Remember

Long tasks
keep what matters.

A context window fills. PanCode moves old tool output out to exact records before any paid summary runs, and a summary carries file hashes, the latest numeric results and your request word for word. A note tied to a command that succeeded becomes a lesson once other sessions demonstrate it or you approve it.

Terminal /context panel after one turn: 15.9k / 200k tokens in use (7.9%), split into system prompt, tool definitions, agent fleet, project context, messages, tool results and assistant output, with 144k free and a 40.0k autocompact reserve; autocompact runs at 80% with 13 active tools, and the next request has 151k of headroom.
/context: the window size, the tokens in use, and what fills them.

What it costs

Free for individuals, small organizations,
noncommercial research and teaching.

Free to use
Free for individuals, small organizations (fewer than 100 people and under $1M revenue), and noncommercial research and teaching.
Source on GitHub
The full source is available under the PanCode License 1.0, to read, build and file issues against.
No account
PanCode runs on your machine with your own model connections and sends nothing home.
Larger organizations
One person may evaluate PanCode for the organization for up to 32 consecutive days. After that, the organization needs a commercial license from PanStudio.

The license terms

Install

Install PanCode
and connect a model.

You need a model with tool calling. Linux, macOS and WSL are the primary platforms.

macOS, Linux and WSL

curl -fsSL https://pancode.dev/install.sh | sh

One verified bundle with its own Node.js, no root, x64 Linux with glibc as old as 2.17. On Linux it offers the desktop app at the end. The macOS sandbox-exec profile is not yet verified on a real Mac. Open a new terminal afterwards so pancode is on your PATH.

Windows PowerShell

irm https://pancode.dev/install.ps1 | iex

Native Windows is best effort and has no sandbox. The install has been run by hand on one x64 machine, so WSL remains the recommended route.

npm or bun

npm install -g @panstudio/pancode
bun add -g @panstudio/pancode

Needs Node.js 22.19 or newer on your PATH. An npm install updates with pancode upgrade. After a bun update, run pancode upgrade --post-install.

  1. Connect a model
    pancode configure
  2. Start the terminal
    pancode
  3. Or the desktop app · alpha
    pancode gui --open

Questions

Common questions.

Does PanCode replace my coding agent?

No. PanCode works beside it. Panos can hand a bounded task to Claude Code, Codex, OpenCode, Pi or the Antigravity CLI, and pancode interop adopt brings an agent’s skills and prompts in after you review them. External agents run outside PanCode’s sandbox.

Do I need a PanCode account?

No. PanCode runs locally with your own model connections. Your cloud provider may require credentials and charge for inference.

Can I use a local model?

Yes. Connect a supported server or compatible API endpoint. Choose a model that supports tool calling. The connection guide covers setup.

What can PanCode change on my machine?

PanCode can edit files and run commands. At default autonomy, your session’s bash and run_script calls and dispatched native workers run in an OS sandbox when available (bubblewrap on Linux, an unverified sandbox-exec profile on macOS). yolo keeps that sandbox by default. Without a sandbox backend, or at unconfined yolo, commands run with your user’s access. Review permissions and changes as you work.

Does it update itself?

Installer installs update in the background, at most once a day. On Linux and macOS, npm, pnpm, bun, and volta installs you own update after an interactive session quits. Set interface.autoUpdate: false to keep the notice and update by hand with pancode upgrade.

What is not finished?

PanCode is pre-1.0, so commands and settings can change between minor releases. The desktop app is in alpha. The macOS sandbox profile is not yet verified on a real Mac, and native Windows has no sandbox. On the research pages, every first experiment is proposed and not yet run.