PanCode
Systems software for coding agents.
The coding agent I write and maintain on my own, for code that has to be right. PanCode drives the models you have, keeps each context window in bounds, admits workers against real capacity, sandboxes commands, and checks finished work against what ran.
Why I built it
Scientific software has an execution environment, a history, and standards that matter beyond the next plausible patch. A simulation kernel may depend on a compiler at a laboratory. A numerical change may need comparison with a reference result. A repository may not be allowed to send its contents to an arbitrary provider.
PanCode is systems software for coding agents, and it is where I work on the runtime around that problem. You run it in your own repository. Panos, its orchestrator, reads the code, makes the change or dispatches bounded workers, runs the project’s checks, and reports what passed, what failed, and what was never checked.
The road here
I began exploring this line in December 2023. Early wrappers around Claude Code helped me study the workflow. Warpio, a Gemini CLI fork, explored scientific personas and context handover. AWOC explored agent orchestration and shared memory. In April 2026 I consolidated the lessons into the present PanCode repository.
- Aug 2025
Warpio
Scientific personas and context handover inside an agent, first as extensions for Claude Code and Gemini CLI, then as Warpio CLI.
- Sep 2025
AWOC
The fleet model. Coding agents as bounded workers to direct with typed intent, rather than a library to call.
- Mar 2026
PanCode
Systems software for coding agents: the models you have, bounded context, admitted workers, sandboxed commands, and sealed records.
The repository’s age is not the age of the idea. Those earlier systems exposed what the harness needs to own: how context reaches a model, which tools a task can use, how work is handed off, and what remains after a run.
Five jobs
PanCode does five jobs, and each one is a subsystem a person can inspect. It connects to each model provider on its own wire and keeps the prompt cache warm. It sustains a context window by moving old tool output to exact records before any paid summary. It delegates by admitting each worker against real endpoint capacity and grading what comes back. It contains every command in an operating-system sandbox, behind a floor that no autonomy level removes. It verifies a finished task by checking the claim against what ran and sealing the record.
The model is a choice
The model is the user’s choice: a local or self-hosted server such as Ollama, vLLM, or llama.cpp, a lab gateway, Argonne ALCF through Globus, a cloud API, or a subscription. A 32K local model and a frontier API get the same tools, rules, and checks, and the conversation and its workers can use different connections. Other coding agents, such as Claude Code and Codex, can run as workers.
Code that has to be right
A change to research code is done only when the checks say so. A check can compare results with a reference within a relative, absolute, or ULP tolerance, repeat a seeded run, or reproduce an analysis from inputs pinned by hash. pancode run performs one task without a screen and prints one versioned result with an outcome and typed causes, so a script or a CI job can read it.
PanCode installs under a home directory on a cluster login node without root, reads HDF5, NetCDF, Parquet, and Zarr, and reviews each Slurm, PBS, LSF, or Flux command before it runs. It needs no account and sends nothing home.
Where it stands
PanCode is pre-1.0 and source-available under the PanCode License 1.0, free for individuals, small organizations, and noncommercial research and teaching. The terminal is the primary interface; scripts, editors over the Agent Client Protocol, and a desktop app in alpha share the same runtime. Commands and settings can change between minor releases, and neither a passing check nor a sealed record proves scientific correctness.
I write and maintain PanCode. It builds on the Pi agent framework from Earendil Works, the Agent Client Protocol, the Model Context Protocol, and herdr.
Code, releases, papers, and records
- website
pancode.dev
The home of PanCode, where the installer, guides, and research pages are published.
- writing
Why PanCode, a five-part series
Models and machines, typed tools, handoffs, bounded workers, and decisions as records.
- tutorial
PanCode on your own GPU
Serving a local model and connecting it to PanCode on one workstation.
Related notes
- 7 min
Run PanCode against a model on your own GPU
Install PanCode, point it at a local llama.cpp or LM Studio server, run one headless turn, and read the evidence it seals for that run.
- 8 min
Why PanCode, part 1 of 5: your models, your machines
PanCode resolves every turn through a target you configured: a local server, an institutional gateway, a cloud API, or a subscription sign-in. With no target there is no session, because the harness has no hosted model of its own to fall back on.
- 11 min
Why PanCode, part 5 of 5: decisions without prose
A coding harness makes hundreds of small decisions per turn, and a chat model is the wrong instrument for them. PanCode v0.5.3 binds four decision sites to a System One model that returns a calibrated distribution over a closed answer shape, and adds a diffusion runtime for the latency-sensitive slot beside it.
- 6 min
Shipping a coding agent in public
PanCode reached v0.5.0 on September 20, 2026. Measuring that launch against the definition of shipped I wrote in August: what had to be true before public was the right word, what was labelled an early preview, and what is still not true.
- 5 min
An accountable agent says what it is waiting on
Across the PanCode 0.6 line, from v0.6.0 on October 3 to v0.6.9 on November 6, accountability narrowed to two statements an agent should be able to make at any moment: under whose authority it acts, and what it is waiting on.
- 5 min
A capable model in a capable harness
Claude 3.5 Sonnet brought me back to writing code. A capable model still needs a harness that makes its progress checkable and its cost visible, and PanCode is the one I built around models that many people can afford to use.
- 12 min
A closed loop for AI-assisted research writing
Install WTF-P and CiteNexus into a coding agent on Linux and run a first supervised writing session: the agent keeps the bookkeeping, every citation stays traceable to its source, and the author keeps the judgment.
- 7 min
Vibe Coding Fridays
Twelve Fridays, three hours each, teaching a research group to work with coding agents: the frame that stuck, the bake-off at week five, the checklist, and what I would change.