Skip to main content

AutoCode

AutoCode runs your coding agent through planning, approval, implementation and independent validation. It saves progress and checks evidence before reporting completion. Start with a request in a committed Git project; approve the plan before implementation begins.

Documentation

Read the documentation site. New here? The quickstart goes from install to a first reviewed change in about ten minutes. Then read these five guides: install AutoCode, run your first task, understand a pause, read completion evidence, and review the plan in a pull request. The site has search, deeper guides and a version selector; latest follows master.

Install and start

Requires Python 3.11+, Git and pipx. Linux provides kernel-enforced provider process ownership. macOS uses portable supervision with reduced cleanup guarantees; Windows uses WSL. See the host and installation guide before the first task.

Install once, then use AutoCode from any project:

pipx install autocode-supervisor
pipx ensurepath
# Open a new terminal after ensurepath.
autocode --version
autocode demo

Or install the published release with Homebrew:

brew install charlieanna/tap/autocode

The demo uses no account or model spend. It shows rejected evidence, a completion refusal and a verified result. PyPI and Homebrew install the latest tagged release (changelog), while this documentation follows master. For fixes merged after that tag, use the master or development-checkout installation. See the release verification record for what was checked and the limits of that evidence.

Run autocode setup once: it checks Claude Code, Codex, OpenCode and Kilo, installs OpenCode if you have no hub yet, offers each one's own sign-in, and says which one your tasks will use. Then choose an engine you have connected, or pass none. For example, with a logged-in Codex CLI:

cd /path/to/your/committed-git-project
autocode doctor --engine codex
autocode "Fix the incorrect result when submitting an order" --engine codex

Answer the questions, read the plan and its exclusions, then approve it. AutoCode builds and checks the change, and stops when it needs your decision. Reopen the same project with autocode resume; use autocode --status to see what it needs.

For Claude Code use --engine claude. Without an explicit choice, the existing configured/default route applies: OpenCode when it is installed; otherwise the first connected of Claude Code, Codex and Kilo, which the run names as Engine for this run: …. API keys go in OpenCode (opencode auth login) or Kilo (kilo auth login); AutoCode's own direct API-key connection is retired. The installation guide covers sign-in, a new Git project, route checks and common setup errors.

From Claude Code or Codex

Already working in Claude Code or Codex? Drive AutoCode from there: it shows you AutoCode's questions and plan in the chat and passes on only your answers and approval (AutoCode inside your coding agent).

/plugin install autocode --marketplace charlieanna/autocode    # in Claude Code
codex mcp add autocode -- autocode mcp                         # for Codex, from a shell

Then ask, in a Git repository: "Use AutoCode to fix the incorrect result when submitting an order."

Stage models and dynamic reasoning effort

Choose each stage's model and reasoning ceiling once per backend (claude, codex, opencode, kilocode); AutoCode keeps the choices in ~/.config/autocode/stages.toml and checks cross-model verifier independence so producers never grade their own work (autocode stages choose or autocode stages list).

Inside those saved ceilings, AutoCode dynamically scales reasoning effort per stage (low → medium → high → xhigh → max) across only the variants each model offers:

  • Builder 3-rung per-task cascade: on a bounded leaf task (1..4 non-sensitive files, including parallel milestone workers), Attempt 1 steps one offered level below your saved ceiling (high → low on glm-5.3, high → medium on codex and claude); Attempt 2 after Tester feedback restores your saved ceiling; Attempt 3+ or hard tasks (6+ files or sensitive-paths) climb one level above (max or xhigh).
  • Review, planning and recovery sizing: Tester and Completion Reviewer step down one level on small, clear tasks; Planner and Plan Reviewer step up one level on hard plans; JSON report-format repairs run at low; and struggling stages climb their own model's offered levels before switching routes or pausing. Explicit CLI --<role>-reasoning-effort flags always stay exact.

Recommended stage profiles (autocode stages set):

# 1. Cross-vendor subscription hybrid (Kilo / OpenCode — $0 marginal spend):
#    GLM-5.3 produces fast; OpenAI GPT-6-sol / GPT-6-astra verify independently.
autocode stages set --backend kilocode \
  --stage requirements zai-coding-plan/glm-5.3 low \
  --stage planner zai-coding-plan/glm-5.3 high \
  --stage plan_reviewer openai/gpt-6-sol high \
  --stage builder zai-coding-plan/glm-5.3 high \
  --stage tester openai/gpt-6-sol high \
  --stage completion openai/gpt-6-sol high \
  --stage task_planner openai/gpt-6-astra high

# 2. Pure native Codex (--engine codex — $0 ChatGPT subscription):
autocode stages set --backend codex \
  --stage requirements gpt-5.6-sol low \
  --stage planner gpt-5.6-sol medium \
  --stage plan_reviewer gpt-6-astra high \
  --stage builder gpt-5.6-terra high \
  --stage tester gpt-5.6-sol high \
  --stage completion gpt-6-astra high \
  --stage task_planner gpt-6-astra high

# 3. Role-tiered Claude Code (--engine claude — fastest wall-clock, reserve for high-stakes tasks):
#    Keep Sonnet/Opus on planning and review; use Haiku only on Builder.
autocode stages set --backend claude \
  --stage requirements claude-sonnet-5-5 low \
  --stage planner claude-sonnet-5-5 medium \
  --stage plan_reviewer claude-opus-5-5 medium \
  --stage builder claude-haiku-4-5-20251001 high \
  --stage tester claude-sonnet-5-5 high \
  --stage completion claude-opus-5-5 high \
  --stage task_planner claude-opus-5-5 high

See choosing each stage's model and default models and escalation for details.

A bug that turns out to span repositories

On a supported Linux host, open terminal chat. This flow needs current master, not the published 0.8.2 release, so use the master or development-checkout installation first:

cd /path/to/your/project
autocode chat

Use /connect to check your coding backend, and /repos /path/to/repository once for each local checkout AutoCode may use, then describe the bug. Grounded discoveries select unique catalog matches automatically and can lead to further repositories. AutoCode prepares isolated worktrees, shows the coordinated plans for approval, fixes the repositories, generates a joint regression and publishes linked PRs after independent verification. Missing access or ambiguous matches produce a question.

The joint regression must fail on the combined original code and pass on the exact candidate trees. Separate green repository tests cannot finish this flow. PRs are never merged automatically. See TUI setup and verification limits.

Reliability

AutoCode does not report completion without evidence. Live sweeps on the three-case portfolio (small new application, feature in an existing project, bug fix) are recorded in docs/reliability-table.md and RELIABILITY.md. Fake-provider rows are kept separate and never mixed with these. The table is generated, never edited by hand:

python tools/reliability_table.py docs/reliability-sweeps.json
Date Profile Runs Passed False completions
2026-11-24 claude-tiers 8 8 0
2026-11-23 claude-tiers 1 1 0
2026-11-23 claude-tiers 4 3 0
2026-10-08 glm53-mimo 3 2 0
2026-10-08 glm53-mimo 1 1 0
2026-10-07 glm53-openai 3 2 0
2026-10-04 claude-tiers 9 8 0
2026-10-01 glm53-openai 3 1 1
2026-10-01 glm53-openai 3 1 0
2026-10-10 native-glm53-latency 1 0 0

When a run stops for input, continue it from the project or its task worktree:

autocode --status    # what the run needs
autocode resume      # continue it, acknowledging a pause (no --resume-paused needed)

AutoCode acts on the only unfinished run there. With several, it lists them and changes nothing; name one with --run-dir, which works from any directory:

autocode --run-dir /path/to/run --status
autocode --run-dir /path/to/run --chat

The workflow guide explains questions, plan approval and review. The CLI reference covers answers, approvals and recovery.

For browser, Figma or strict test prerequisites, add --task-preflight qualification/preflight.json. The preflight guide covers worker permissions, design inputs, named collection and proof setup. Failed prerequisites pause before model dispatch; readiness never replaces verification.

Build from a Figma design

This path requires native Codex, ChatGPT login and the connected Figma plugin available to Codex CLI sessions.

# Design first, or implement an existing file:
autocode ui "Design a responsive team dashboard"
autocode "Build the supplied design" --workspace /path/to/project --engine codex \
  --figma-file "https://www.figma.com/design/FILEKEY/Project"

# Implement a completed, accepted AutoCode UI run:
autocode --workspace /path/to/project --engine codex \
  --ui-run /path/to/project/.autocode-ui/runs/ACCEPTED-RUN

See Figma design and implementation for design review, accepted handoffs and visual verification. Implementation reviews use current browser capture bundles: autocode visual-capture --config capture.json records the rendered implementation and its inputs before an independent reviewer judges the images.

Give one component its own design

For an architecture with components.json, dependency_trace.json and contracts/*.schema.json, add one of these fields to the relevant component:

Component field Input
"ui_run": "../.autocode-ui/runs/ACCEPTED-RUN" A completed, accepted UI run; relative paths resolve from the architecture directory.
"figma_file": "https://www.figma.com/design/FILEKEY/Project" An existing Figma reference; the URL alone does not establish an accepted UI run.

Choose one field per component. Only that component receives the design; components without either field use their text brief.

autocode components architecture --workspace /path/to/project \
  --options '--engine codex'

Design-bearing builds require native Codex. Plan approval and independent implementation review still apply. Repeating the command resumes saved work; a changed accepted handoff is rejected instead of silently changing the design for that build. See the complete component example for the architecture format, approvals and integration.

Role names

The terminal and VS Code use the same job names: Requirements, Planner, Plan Reviewer, Builder, Tester, Completion Reviewer and Resolver. A configured model can perform different jobs; the current step names the job being done. See roles and reviewer-routing modes.

Metadata

Release files for autocode-supervisor 0.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autocode-supervisor 0.11.1
File Size Uploaded Provenance Actions
autocode_supervisor-0.11.1.tar.gz 9.0 MB With provenance Details for autocode_supervisor-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autocode-supervisor 0.11.1
File Interpreter ABI Platform Actions
autocode_supervisor-0.11.1-py3-none-any.whl Python 3 none any Details for autocode_supervisor-0.11.1-py3-none-any.whl

Total release size: 13.7 MB

Release files / autocode_supervisor-0.11.1.tar.gz

Download URL autocode_supervisor-0.11.1.tar.gz
Size 9.0 MB
Tags Source
SHA-256 checksum
How to use checksums
d96206bed798a76ee64009ae869c82080f567478e354d357dbf373aa20f17b36
BLAKE2b-256 checksum
How to use checksums
f705b2205ed5486ee8dc3e90bc382f4d5cb604a3421244489f61c438c2865d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / autocode_supervisor-0.11.1-py3-none-any.whl

Download URL autocode_supervisor-0.11.1-py3-none-any.whl
Size 4.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e308605978da604c98323233dc79d7d846e47e34986516f9b6db300396f6c774
BLAKE2b-256 checksum
How to use checksums
d42e722f03ea0c3dc45f3df5db6e8f56da96d238d08154fab97a10a99fe4bc67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for autocode-supervisor 0.11.1

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for autocode_supervisor-0.11.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page