CodePanel

Coding agents with an independent review gate

Run local coding agents in isolated git worktrees inside an OS sandbox, routed by measured record, with every pull request reviewed by a panel of models.

Updated

CodePanel runs coding agents on your machine inside isolated git worktrees and an OS sandbox, routes model calls through a key-holding proxy with spend caps, and sends every pull request the agent opens to an independent panel of reviewer models. Run them locally in the desktop app, or in the cloud when your laptop is shut.

Why an agent should not judge its own pull request

Most coding agent tools stop when a branch is pushed or a test command exits zero. In practice, a passing test suite still lets subtle races, missing auth checks, and stale generated files through, and an agent grading its own work shares the blind spots that produced the bug.

CodePanel closes the loop by keeping the writer and the reviewers separate:

Stage Who runs it What it enforces
Task and worktree Local runner on your machine Creates a dedicated git worktree and branch (codepanel/run-<runId>), installs dependencies, and leaves your main checkout untouched.
Sandbox and permissions OS sandbox (sandbox-exec on macOS, bwrap on Linux) Confines writes to the run worktree and its own git ref; blocks reads of ~/.ssh, ~/.codepanel, keychains, and sibling worktrees.
Model calls CodePanel model proxy Keeps provider API keys off your laptop, enforces per-task, per-ticket, and daily caps, and charges tokens at provider list price with no markup.
Publish Local runner (with hooks off) Pushes only the run branch (never the default branch, never forced) and opens a pull request with your git and gh, or a repository run contract.
Review and merge gate Independent multi-model panel Reviews the pull request in parallel, adjudicates disputes against the code, and holds the CodePanel commit status until blocking findings are answered.

Local runs and cloud runs

A local run executes on your own machine through CodePanel for macOS, Linux, and Windows. Each connected machine registers its own runner, claims queued tasks for repositories it has cloned, and streams every step, command, and diff back to one inbox. Running locally gives the agent your own toolchains, private caches, and test suites.

A cloud run works the task on CodePanel instead, so it goes on with your laptop shut. It reads and edits the repository through GitHub's API, opens a pull request, and relies on your CI and the review panel to check it, since it runs no shell commands. Start one by picking the Cloud host for a new thread, with /cloud in a thread, from the CLI or API, or with a /fix comment on a pull request. Both kinds share the same task queue, model proxy, spend caps, autopilot rules, and review panel.

Bring your own coding CLI or use CodePanel's loop

You can run CodePanel's built-in agent loop or drive external coding CLIs through the same local runner, git worktree, OS sandbox, and model proxy:

  • CodePanel loop: Supports multi-agent teams, per-task-class routing tables (routing.json), permission interrupts in the inbox, and model switching mid-run.
  • Claude Code, Codex, Gemini CLI, and OpenCode: Launched headless in the run's worktree with a scrubbed environment and a short-lived run token pointed at CodePanel's model proxy, so no provider API key ever sits on disk.
  • Any coding agent on the review side: If you already run Claude Code, Codex, Cursor, or another client directly, you do not need the desktop app to use AI code review; connect over MCP, the CLI, or the agent pages.

Routing tasks by measured record

Teams in CodePanel can hold several agents across different models and roles. Rather than guessing which model to assign, CodePanel tracks each agent's outcomes per repository and routes tasks by measured track record or by a repository's routing.json table:

  • Cheap models first where they hold up: Routine classes (search_summary, docs_copy, tests, light_code) start on fast, low-cost models.
  • Automatic escalation: When a check fails, a review blocks, or a run stalls, the subtask escalates to a stronger model on the team.
  • Data boundaries and protected paths: Runs holding production read tools stay restricted to approved zero-retention providers, and edits touching protected paths (such as billing or auth) stop instead of falling back to a cheaper model when a spend limit hits.

See Benchmarks and Models for how models compare on bug recall, false positives, and API cost.

Driven by people and by agents

Every action in the desktop app is also an MCP tool, a CLI command, and an HTTP API endpoint:

Action MCP tool CLI command
Start a thread start_task codepanel task start <owner/name> --title <t> <prompt>
Wait for a run wait_for_run codepanel run wait <runId>
Inspect its diff get_run_diff codepanel run diff <runId>
Answer an interrupt answer_interrupt codepanel run answer <runId>
List online runners list_runners codepanel runners

Start from the desktop app guide, configure event-driven triggers in Autopilot, or review the security model and pricing.

setup prompt46 lines

Set it up with one prompt

Paste it into Claude Code, Codex, Cursor or any coding agent in your repository. It connects everything and runs the first review, stopping only for your sign-in and provider key.

Read the prompt