Terminal-native AI coding agent with background jobs, parallel worktrees, forkable sessions, and multi-model support
pcode is a terminal-native coding agent built for long-running and parallel work. Background commands wake the agent when they finish, every session can use its own git worktree, conversations can be rewound and forked, and every tool call stays inspectable.
It runs on any model Pydantic AI supports, or on your Claude or ChatGPT subscription.
brew tap cruxwell/pcode https://github.com/cruxwell/pcode.git brew install cruxwell/pcode/pcode Or from PyPI with uv:
uv tool install 'pcode[claude]' brew install --HEAD tracks master instead of the latest release.
codex login # or /login [claude|openai-codex] inside pcode, or export a provider API key pcode -m openai-codex:gpt-5.6-luna # interactive; /model (Ctrl+L) saves a default pcode # reuses the saved model, or opens the offline preview pcode -C /path/to/repo "Summarize the open TODOs" git diff | pcode -p --no-save # non-interactive: reply to stdout pcode --continue # resume this directory's newest session pcode --theme-preview # offline sample output and the style gallery Live mode edits files and runs shell commands with your permissions and no approval prompt. Read tool permissions before pointing it at anything you care about.
The same pages build into a browsable site with make docs-serve; make docs checks every page and anchor link.
Bugs: open an issue. Security problems: see SECURITY.md. Setup and checks are in CONTRIBUTING.md.
make test # fast suite; real-tmux regressions skipped make test-all # everything, before touching layout, streaming, the editor, or the prompt AGENTS.md has the worktree workflow and the traps worth knowing before editing. Contributor notes (architecture, dependencies, profiling, prompt caching, provider design) live in dev/, outside the published docs.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.




