# PanCode

https://akougkas.io/work/pancode/

Author: Anthony Kougkas

Updated: 2026-11-25

## 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.

1. Aug 2025
   
   
   
   ### [Warpio](https://github.com/akougkas/warpio-cli)
   
   
   
   Scientific personas and context handover inside an agent, first as extensions for Claude Code and Gemini CLI, then as Warpio CLI.
2. Sep 2025
   
   
   
   ### AWOC
   
   
   
   The fleet model. Coding agents as bounded workers to direct with typed intent, rather than a library to call.
3. Mar 2026
   
   
   
   ### [PanCode](https://akougkas.io/work/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.
