# Documentation

URL: https://codepanel.ai/docs

Every CodePanel docs page, grouped by topic.

## Get started

- [Quickstart](https://codepanel.ai/docs/quickstart.md): Get started with CodePanel: connect a repository, add a key or credits, and either launch the desktop app or connect your coding agent.
- [How it works](https://codepanel.ai/docs/how-it-works.md): How CodePanel combines coding agents, Autopilot, and a multi-model pull request review panel into one loop from task to merge.
- [Integrations](https://codepanel.ai/docs/integrations.md): Every connection CodePanel supports: GitHub, model providers, coding agents and chat apps, CI and the merge gate, the API and CLI.

## Agent app

- [Desktop app](https://codepanel.ai/docs/desktop-app.md): Run coding agents on macOS, Linux, or Windows: install, connect a runner, add checkouts, steer threads, rewind checkpoints, and publish PRs.
- [Autopilot rules](https://codepanel.ai/docs/autopilot.md): Rules that start agent tasks on their own from CI failures, stalled pull requests, Dependabot, issue labels and schedules, with caps and Stop everything.
- [Run control](https://codepanel.ai/docs/run-control.md): Steer agent runs from the Inbox: permissions, mid-run steering, checkpoints and rewind, pause and resume, model switching, and budget recovery.
- [Teams and Fleet](https://codepanel.ai/docs/teams-and-fleet.md): Configure coding agents, multi-agent teams with hard tree caps, record-based Auto routing, bulk Fleet controls, and MCP connections.
- [Decisions](https://codepanel.ai/docs/decisions.md): Resolve technical forks with CodePanel's 3-tier Decision Maker: fast checks, multi-model panel votes, human escalation, overrides, and learnings.
- [Cloud runs](https://codepanel.ai/docs/cloud-runs.md): Run a coding agent task on CodePanel instead of your machine: start it from the app, the CLI, the API or /fix, with the same billing, caps and review.
- [Local sandbox](https://codepanel.ai/docs/local-sandbox.md): How CodePanel isolates local coding agent commands with macOS sandbox-exec and Linux bwrap, offline autopilot installs, and git ref protection.
- [External coding CLIs](https://codepanel.ai/docs/external-agents.md): Run Claude Code, OpenAI Codex, Gemini CLI, and OpenCode inside CodePanel's worktrees, OS sandbox, and key-holding model proxy.
- [Teams and routing](https://codepanel.ai/docs/teams-and-routing.md): Group coding agents into teams and route subtasks by measured track record or a routing.json task-class table with automatic escalation.
- [MCP connections for runs](https://codepanel.ai/docs/mcp-connections.md): Connect external stdio and HTTP MCP servers to coding agent runs with SHA-256 tool pinning, owner-marked read-only tools, and data boundaries.

## Connect an agent

- [Connect your agent](https://codepanel.ai/docs/coding-agents.md): Connect Claude Code, Codex, Cursor, VS Code, or any MCP client to CodePanel's review loop, or run agents directly in the desktop app.
- [Install in one command](https://codepanel.ai/docs/install.md): One command per client connects Claude Code, Codex, Cursor, Gemini CLI, or VS Code to CodePanel's hosted MCP server with GitHub sign-in.
- [Claude Code](https://codepanel.ai/docs/claude-code.md): Install the CodePanel plugin for Claude Code in one command for the terminal, IDE extensions, and desktop app.
- [Codex](https://codepanel.ai/docs/codex.md): Connect OpenAI Codex (CLI, IDE extension and app) to CodePanel with one config.toml entry, a sign-in and the review-loop skills.
- [Cursor](https://codepanel.ai/docs/cursor.md): Connect Cursor to CodePanel: add the MCP server to mcp.json, sign in with GitHub, and install the review-loop skills.
- [VS Code and GitHub Copilot](https://codepanel.ai/docs/vs-code.md): Connect GitHub Copilot in VS Code to CodePanel's MCP server with one command, and share it with your team in .vscode/mcp.json.
- [Other MCP clients](https://codepanel.ai/docs/other-agents.md): Connect Gemini CLI, OpenCode, Amp, Junie, Kiro, Cline, Zed, Copilot's cloud agent, Devin or any MCP client to CodePanel's remote MCP server.
- [Claude and ChatGPT apps](https://codepanel.ai/docs/claude-and-chatgpt.md): Add CodePanel to Claude or ChatGPT on the web and desktop as a custom connector, and manage what connected apps can do.
- [Foreign-repo prompt & rules](https://codepanel.ai/docs/agent-playbook.md): A copy-paste setup prompt and drop-in rules block so any AI agent in any repository can use CodePanel for reviews, decisions, and permission diagnostics.

## Review loop

- [Repository setup](https://codepanel.ai/docs/agent-setup.md): A prompt that has your coding agent write .codepanel/rules.md and teach the repository's agents the review loop, plus handoffs for reviewers.
- [The review loop](https://codepanel.ai/docs/agents.md): How a coding agent works through a CodePanel review: wait, read, check, fix or rebut, rate every finding, and stop. With the call for each step.
- [Findings](https://codepanel.ai/docs/findings.md): What a finding contains: severity, location, evidence, its F-ref and status across rounds, and how to dismiss, reopen or apply one.
- [Feedback and disputes](https://codepanel.ai/docs/feedback.md): Rate findings, dispute the wrong ones and ask the reviewer about them. How each answer affects the finding, the merge gate and later reviews.
- [Merge gate](https://codepanel.ai/docs/merge-gate.md): Block merges while findings are unanswered: the CodePanel commit status, gate levels, and a GitHub Actions alternative with a CI token.
- [Triggering reviews](https://codepanel.ai/docs/triggering-reviews.md): When CodePanel reviews a pull request: automatic triggers, drafts, bots and forks, /review, round limits, and why a review did not run.

## Configure

- [Providers and API keys](https://codepanel.ai/docs/providers-and-keys.md): Bring your own Anthropic, OpenAI, Google, DeepSeek, Groq, xAI, Moonshot, Mistral, Workers AI or custom key. How keys are checked and stored.
- [Use your ChatGPT plan](https://codepanel.ai/docs/chatgpt-plan.md): Link a ChatGPT Plus or Pro plan as a reviewer instead of an OpenAI API key: connecting, cost, usage limits and admin controls.
- [Reviewers and panels](https://codepanel.ai/docs/reviewers.md): Configure the review panel: reviewer roles, the starter panel, the orchestrator, reasoning effort, custom instructions and per-repository panels.
- [Models and cost](https://codepanel.ai/docs/choosing-models.md): The economy, balanced and frontier tiers, what a review round costs and what drives it, and how unpriced models affect limits.
- [Repo context and rules](https://codepanel.ai/docs/repo-context.md): Give reviewers your conventions: .codepanel/rules.md, review rules, notes, learnings and verdict memory, and how they fit the context budget.
- [Budgets and limits](https://codepanel.ai/docs/budgets-and-limits.md): Cap what reviews cost: the monthly account budget, repository caps, the per-pull-request limit, and the Spend & budget tab.

## Reference

- [MCP server](https://codepanel.ai/docs/mcp-server.md): Install and use CodePanel's MCP server: every client, the review loop and other use cases, sign-in and scopes, and every tool.
- [CLI](https://codepanel.ai/docs/cli.md): Reference for the codepanel command-line tool: sign-in, configuration, and every command for repositories, panels, reviews and findings.
- [HTTP API](https://codepanel.ai/docs/api.md): Reference for the /api/v1 HTTP API: authentication, scopes, limits, errors, every endpoint with its parameters and response, and the review payload.
- [Review switches](https://codepanel.ai/docs/review-switches.md): The optional review behaviours a repository can turn on or off for itself: what each switch does, its default, and how to set it from MCP, the CLI or the API.
- [Pull request commands](https://codepanel.ai/docs/commands.md): Every comment command CodePanel reads on a pull request: /review, /feedback, /ask, /rounds and /remember, with syntax and who can use them.

## Account and security

- [Billing and credits](https://codepanel.ai/docs/billing.md): The Solo, Team and Scale plans every review needs, starter and prepaid credits for CodePanel's keys, refunds, and refusal codes.
- [Security and data](https://codepanel.ai/docs/security.md): How CodePanel protects API keys and tokens, verifies GitHub webhooks, scopes GitHub access, and what code goes to which AI provider.
- [Troubleshooting](https://codepanel.ai/docs/troubleshooting.md): Fixes by symptom: reviews that did not run or failed, spending refusals, key and connection errors, API and MCP errors, and the merge gate.
- [FAQ](https://codepanel.ai/docs/faq.md): Short answers to common questions: subscriptions and keys, the desktop app, cost, skipped or failed reviews, wrong findings, privacy and source code.

## MCP tools: Account and repositories

- [whoami](https://codepanel.ai/docs/mcp-server/whoami.md): The CodePanel MCP tool that shows your GitHub account, token scopes and subscription state, so an agent knows what it may do and whether reviews can run.
- [list_repos](https://codepanel.ai/docs/mcp-server/list_repos.md): The CodePanel MCP tool that lists connected repositories with their review settings, so an agent can check a repository is active before it reviews.
- [list_connectable_repos](https://codepanel.ai/docs/mcp-server/list_connectable_repos.md): The CodePanel MCP tool that lists GitHub repositories you can push to and whether you have the admin right that connecting one needs.
- [connect_repo](https://codepanel.ai/docs/mcp-server/connect_repo.md): The CodePanel MCP tool that connects a GitHub repository and installs the webhook that starts a review on each new pull request.
- [disconnect_repo](https://codepanel.ai/docs/mcp-server/disconnect_repo.md): The CodePanel MCP tool that stops reviewing a repository and keeps its past reviews, settings and webhook. Safe to call twice.
- [update_repo_settings](https://codepanel.ai/docs/mcp-server/update_repo_settings.md): The CodePanel MCP tool that sets a repository's auto-review, round limits, merge gate, review switches and who to escalate to.
- [get_review_switches](https://codepanel.ai/docs/mcp-server/get_review_switches.md): The CodePanel MCP tool that shows each review switch a repository can set: the deployment's value, its own override and what its next round uses.
- [get_budget](https://codepanel.ai/docs/mcp-server/get_budget.md): The CodePanel MCP tool that reads your monthly budget and a repository's cap: own-key spend, holds, what is left and what the next round meets.
- [set_budget](https://codepanel.ai/docs/mcp-server/set_budget.md): The CodePanel MCP tool that sets your account's monthly budget or a repository's cap, on own-key spend, and returns the limits before and after.
- [get_auto_reload](https://codepanel.ai/docs/mcp-server/get_auto_reload.md): The CodePanel MCP tool that reads credits auto-reload: its status, threshold, pack and monthly cap, and why it turned itself off.
- [set_auto_reload](https://codepanel.ai/docs/mcp-server/set_auto_reload.md): The CodePanel MCP tool that turns credits auto-reload on or off or changes its threshold, pack and monthly cap, and returns the settings before and after.
- [get_credits_first](https://codepanel.ai/docs/mcp-server/get_credits_first.md): The CodePanel MCP tool that says whether review rounds spend your CodePanel credits before your own provider keys.
- [set_credits_first](https://codepanel.ai/docs/mcp-server/set_credits_first.md): The CodePanel MCP tool that turns credits-first on, off or back to its default, changing whether credits or your own keys pay for reviewers.

## MCP tools: Panel and keys

- [get_panel](https://codepanel.ai/docs/mcp-server/get_panel.md): The CodePanel MCP tool that lists your review panels with reviewers, orchestrator, key health and whether each panel can run.
- [get_reviewer_tools](https://codepanel.ai/docs/mcp-server/get_reviewer_tools.md): The CodePanel MCP tool that shows whether reviewers can read and search files at the head commit, which tools they get and their limits.
- [list_models](https://codepanel.ai/docs/mcp-server/list_models.md): The CodePanel MCP tool that lists the models your panel members can use, with prices per million tokens, typical call cost and cost tiers.
- [list_roles](https://codepanel.ai/docs/mcp-server/list_roles.md): The CodePanel MCP tool that lists reviewer roles with their cost tier and suggested effort, for add_reviewer and panel recommendations.
- [add_reviewer](https://codepanel.ai/docs/mcp-server/add_reviewer.md): The CodePanel MCP tool that adds a reviewer to a panel from a role or a model you choose, and returns its agentId and saved member.
- [remove_reviewer](https://codepanel.ai/docs/mcp-server/remove_reviewer.md): The CodePanel MCP tool that takes a reviewer off a panel. A panel keeps at least one reviewer, and the orchestrator is not removable here.
- [update_panel_member](https://codepanel.ai/docs/mcp-server/update_panel_member.md): The CodePanel MCP tool that changes a panel member's model, effort, name, instructions or tier following, atomically, keeping its id and history.
- [set_orchestrator](https://codepanel.ai/docs/mcp-server/set_orchestrator.md): The CodePanel MCP tool that sets the model and reasoning effort of the orchestrator that merges reviews and posts them to GitHub.
- [update_panel](https://codepanel.ai/docs/mcp-server/update_panel.md): The CodePanel MCP tool that renames a review panel or sets its per-pull-request spending limit in dollars, or turns the limit off.
- [get_panel_recommendation](https://codepanel.ai/docs/mcp-server/get_panel_recommendation.md): The CodePanel MCP tool that previews the reviewers and orchestrator for a cost and quality goal, with estimated cost. It changes nothing.
- [apply_panel](https://codepanel.ai/docs/mcp-server/apply_panel.md): The CodePanel MCP tool that builds and writes the panel for a cost and quality goal, to one repository's own panel with repo, and returns an undo.
- [restore_panel](https://codepanel.ai/docs/mcp-server/restore_panel.md): The CodePanel MCP tool that undoes apply_panel: it puts a panel's earlier reviewers, orchestrator model and per-pull-request limit back.
- [get_key_status](https://codepanel.ai/docs/mcp-server/get_key_status.md): The CodePanel MCP tool that shows which AI providers have a working API key on your account, without ever returning a key.

## MCP tools: Knowledge and learnings

- [get_knowledge](https://codepanel.ai/docs/mcp-server/get_knowledge.md): The CodePanel MCP tool that returns a repository's review rules, notes, verdicts and learnings as one Markdown document with a version.
- [replace_knowledge](https://codepanel.ai/docs/mcp-server/replace_knowledge.md): The CodePanel MCP tool that replaces a repository's review rules and notes from an edited document, and refuses a stale copy.
- [list_learnings](https://codepanel.ai/docs/mcp-server/list_learnings.md): The CodePanel MCP tool that lists a repository's learnings with their state: active, candidate, off or expired, and what confirms a candidate.
- [add_learning](https://codepanel.ai/docs/mcp-server/add_learning.md): The CodePanel MCP tool that records a short fact about a repository for reviewers. An agent's learning stays a candidate until confirmed.
- [rate_learning](https://codepanel.ai/docs/mcp-server/rate_learning.md): The CodePanel MCP tool that confirms or turns off a learning by its ref. Any down turns it off at once; an agent's up needs a second identity.

## MCP tools: Tracked plans

- [list_plans](https://codepanel.ai/docs/mcp-server/list_plans.md): The CodePanel MCP tool that lists your saved plans, newest first, with each plan's status, repository and step counts, so a new session can find its work.
- [get_plan](https://codepanel.ai/docs/mcp-server/get_plan.md): The CodePanel MCP tool that returns one saved plan in full: its steps, history and the nextAction that says which step to work on, even inside a sub-plan.
- [create_plan](https://codepanel.ai/docs/mcp-server/create_plan.md): The CodePanel MCP tool that saves a plan with numbered steps, or a sub-plan under one step, so an agent can work through it across sessions.
- [add_plan_steps](https://codepanel.ai/docs/mcp-server/add_plan_steps.md): The CodePanel MCP tool that adds steps to a saved plan after a named step or at the end, keeping every existing step ref (S1, S2) unchanged.
- [update_plan_step](https://codepanel.ai/docs/mcp-server/update_plan_step.md): The CodePanel MCP tool that moves a plan step to in_progress, done, blocked or skipped, and asks for a reason or evidence when its rules require one.
- [update_plan](https://codepanel.ai/docs/mcp-server/update_plan.md): The CodePanel MCP tool that renames a saved plan, edits its goal, abandons it with a reason, or makes an abandoned plan active again.

## MCP tools: Agent presence

- [list_peers](https://codepanel.ai/docs/mcp-server/list_peers.md): The CodePanel MCP tool that lists the other agents working in a repository now, with their branch, intent and the files you both change.
- [report_activity](https://codepanel.ai/docs/mcp-server/report_activity.md): The CodePanel MCP tool that tells other agents in a repository what you are working on: an intent line, your branch and changed files.

## MCP tools: Reviews

- [trigger_review](https://codepanel.ai/docs/mcp-server/trigger_review.md): The CodePanel MCP tool that starts a review round on a pull request now. It spends your provider credits and counts as a round against the limit.
- [wait_for_review](https://codepanel.ai/docs/mcp-server/wait_for_review.md): The CodePanel MCP tool that blocks until a pull request's review finishes: its inputs, each status it returns, and real responses.
- [get_review](https://codepanel.ai/docs/mcp-server/get_review.md): The CodePanel MCP tool that returns a pull request's current review: findings, merge gate, round limit and the nextAction your agent should take.
- [get_review_brief](https://codepanel.ai/docs/mcp-server/get_review_brief.md): The CodePanel MCP tool that returns a brief for reviewing your own change before you push: each reviewer seat's prompt, the gate and learnings. Free.
- [submit_local_review](https://codepanel.ai/docs/mcp-server/submit_local_review.md): The CodePanel MCP tool that records what your own pre-push review found, stored against a commit as your claim. The gate and reviewers never read it.
- [submit_handoff](https://codepanel.ai/docs/mcp-server/submit_handoff.md): The CodePanel MCP tool that tells the reviewers what your pull request changes, what you tested, what you are unsure of and what you left out.
- [set_review_rounds](https://codepanel.ai/docs/mcp-server/set_review_rounds.md): The CodePanel MCP tool that sets how many automatic review rounds one pull request gets, to extend or end the fix-and-review loop.
- [list_sessions](https://codepanel.ai/docs/mcp-server/list_sessions.md): The CodePanel MCP tool that lists your recent review sessions, newest first, with each one's status and any failure reason.
- [get_session](https://codepanel.ai/docs/mcp-server/get_session.md): The CodePanel MCP tool that returns one review session with each panel reviewer's status and error, to see which reviewer is slow or failing.

## MCP tools: Spend and quality

- [get_spend](https://codepanel.ai/docs/mcp-server/get_spend.md): The CodePanel MCP tool that shows a repository's model spend this month by role and model, and the account's last 30 days by day.
- [get_quality](https://codepanel.ai/docs/mcp-server/get_quality.md): The CodePanel MCP tool that reports a repository's verified review precision per model and role, and how many rounds its pull requests take.
- [get_optimization](https://codepanel.ai/docs/mcp-server/get_optimization.md): The CodePanel MCP tool that combines a repository's spend, verified quality and two alternative panels into one read-only report on what to change.
- [list_escapes](https://codepanel.ai/docs/mcp-server/list_escapes.md): The CodePanel MCP tool that lists what a repository's reviews missed: reviewed lines a later fix or revert commit changed, and the rate.
- [mark_escape](https://codepanel.ai/docs/mcp-server/mark_escape.md): The CodePanel MCP tool that marks a recorded review escape as not an escape, so it is kept and no longer counted, or takes the mark back.

## MCP tools: Coding agents

- [list_coding_agents](https://codepanel.ai/docs/mcp-server/list_coding_agents.md): The CodePanel MCP tool that lists the agent app's coding agents with their model, role, mode ceiling, rules, budget and whether a key reaches the model.
- [create_coding_agent](https://codepanel.ai/docs/mcp-server/create_coding_agent.md): The CodePanel MCP tool that creates a coding agent from a name, role and model, with a mode ceiling, rules preset, effort, instructions and budget.
- [update_coding_agent](https://codepanel.ai/docs/mcp-server/update_coding_agent.md): The CodePanel MCP tool that changes a coding agent's model, role, mode ceiling, rules or budget and returns it before and after, so a second call undoes it.
- [duplicate_coding_agent](https://codepanel.ai/docs/mcp-server/duplicate_coding_agent.md): The CodePanel MCP tool that copies a coding agent with all its settings, to try another model or mode without losing the original.
- [remove_coding_agent](https://codepanel.ai/docs/mcp-server/remove_coding_agent.md): The CodePanel MCP tool that removes a coding agent and returns it as it was, so create_coding_agent can bring it back.
- [list_teams](https://codepanel.ai/docs/mcp-server/list_teams.md): The CodePanel MCP tool that lists the agent app's teams: each orchestrator, the agents it hands work to, its rules, caps, and what would stop a run.
- [create_team](https://codepanel.ai/docs/mcp-server/create_team.md): The CodePanel MCP tool that makes a team: an orchestrator, the agents it may hand subtasks to, delegation rules, and caps every run is held to.
- [update_team](https://codepanel.ai/docs/mcp-server/update_team.md): The CodePanel MCP tool that changes a team's agents, rules, caps or repository and returns it before and after, so a second call undoes it.
- [set_team_routing](https://codepanel.ai/docs/mcp-server/set_team_routing.md): The CodePanel MCP tool that overrides how a team picks a subtask's member: routing by record on or off, and members pinned per role.
- [remove_team](https://codepanel.ai/docs/mcp-server/remove_team.md): The CodePanel MCP tool that removes a team, keeping its agents, and returns it as it was so create_team can bring it back.
- [set_key_order](https://codepanel.ai/docs/mcp-server/set_key_order.md): The CodePanel MCP tool that sets which of a provider's two keys agent runs try first. Keys are entered in the browser only, never here.
- [list_connections](https://codepanel.ai/docs/mcp-server/list_connections.md): The CodePanel MCP tool that lists the MCP servers agent app runs may call, with each approved tool's pinned hash and read-only mark.
- [add_connection](https://codepanel.ai/docs/mcp-server/add_connection.md): The CodePanel MCP tool that approves an MCP server for agent app runs, pinning each allowed tool by the hash of its definition.
- [remove_connection](https://codepanel.ai/docs/mcp-server/remove_connection.md): The CodePanel MCP tool that removes an MCP connection and returns it as it was, so add_connection can bring it back.
- [get_model_gateway](https://codepanel.ai/docs/mcp-server/get_model_gateway.md): The CodePanel MCP tool that says whether agent runs' model calls go through the account's Cloudflare AI Gateway, without its token.
- [set_model_gateway](https://codepanel.ai/docs/mcp-server/set_model_gateway.md): The CodePanel MCP tool that sets the account's Cloudflare AI Gateway (account id, name, on or off) for agent runs' model calls.
- [get_setup_status](https://codepanel.ai/docs/mcp-server/get_setup_status.md): The CodePanel MCP tool that test-calls every piece an agent run needs and returns each line green or red with its fix, never a key.
- [confirm_setup_check](https://codepanel.ai/docs/mcp-server/confirm_setup_check.md): The CodePanel MCP tool that withdraws the owner's confirmation of OpenAI zero data retention, a setup check no API can test.
- [get_agents_pause](https://codepanel.ai/docs/mcp-server/get_agents_pause.md): The CodePanel MCP tool that says whether the owner paused every agent on the account, since when, by whom and why.
- [pause_agents](https://codepanel.ai/docs/mcp-server/pause_agents.md): The CodePanel MCP tool that stops every agent at once: runs in progress stop, and no task, run or model call starts until resumed.
- [get_agent_day_cap](https://codepanel.ai/docs/mcp-server/get_agent_day_cap.md): The CodePanel MCP tool that reads the account's day cap: what every agent run together may spend through the model proxy in a UTC day.
- [set_agent_day_cap](https://codepanel.ai/docs/mcp-server/set_agent_day_cap.md): The CodePanel MCP tool that sets the account's day cap on agent spend, up to $1,000, or puts it back to the $25 default.
- [resume_agents](https://codepanel.ai/docs/mcp-server/resume_agents.md): The CodePanel MCP tool that lifts pause_agents, so queued tasks are claimed and model calls are taken again.
- [get_account_mode](https://codepanel.ai/docs/mcp-server/get_account_mode.md): The CodePanel MCP tool that reads the account's current permission mode (ask, auto, autopilot, or full_access).
- [set_account_mode](https://codepanel.ai/docs/mcp-server/set_account_mode.md): The CodePanel MCP tool that sets the account's permission mode (ask, auto, autopilot, or full_access), with owner-confirmed agents:write.
- [list_permission_rules](https://codepanel.ai/docs/mcp-server/list_permission_rules.md): The CodePanel MCP tool that lists the commands always allowed per repository, so you know what agents run without asking.
- [always_allow](https://codepanel.ai/docs/mcp-server/always_allow.md): The CodePanel MCP tool that keeps one exact command as always allowed in a repository. Needs rules:write, which no token gets by default.
- [remove_permission_rule](https://codepanel.ai/docs/mcp-server/remove_permission_rule.md): The CodePanel MCP tool that takes back a standing allow, so the command asks again on every run.
- [get_agent_defaults](https://codepanel.ai/docs/mcp-server/get_agent_defaults.md): The CodePanel MCP tool that reads the account's default agent or team per role: new threads, swarm workers, planner, fallback.
- [set_agent_defaults](https://codepanel.ai/docs/mcp-server/set_agent_defaults.md): The CodePanel MCP tool that sets the account's default agent or team for new threads, swarm workers, planner or fallback.
- [list_rules](https://codepanel.ai/docs/mcp-server/list_rules.md): The CodePanel MCP tool that lists the autopilot rules that start tasks on their own, with each one's trigger, caps and whether it is on.
- [create_rule](https://codepanel.ai/docs/mcp-server/create_rule.md): The CodePanel MCP tool that creates an autopilot rule for CI failures, blocking reviews, stalled PRs, Dependabot, labels, schedules, or incoming webhooks.
- [update_rule](https://codepanel.ai/docs/mcp-server/update_rule.md): The CodePanel MCP tool that changes an autopilot rule or turns it on or off in one call, answering with the rule before and after.
- [rotate_rule_secret](https://codepanel.ai/docs/mcp-server/rotate_rule_secret.md): The CodePanel MCP tool that rotates the incoming webhook bearer token of a webhook autopilot rule, invalidating the previous token immediately.
- [delete_rule](https://codepanel.ai/docs/mcp-server/delete_rule.md): The CodePanel MCP tool that deletes an autopilot rule; the tasks it started stay.
- [get_environment](https://codepanel.ai/docs/mcp-server/get_environment.md): The CodePanel MCP tool that reads a repository's setup command, verify commands, startup services, default host, and available Zero-Trust secret names.
- [set_environment](https://codepanel.ai/docs/mcp-server/set_environment.md): The CodePanel MCP tool that configures a repository's setup command, verify commands, startup services, and default local or cloud host.
- [list_secrets](https://codepanel.ai/docs/mcp-server/list_secrets.md): The CodePanel MCP tool that lists Zero-Trust environment secret names and scopes without ever exposing plaintext values.
- [delete_secret](https://codepanel.ai/docs/mcp-server/delete_secret.md): The CodePanel MCP tool that removes an account-wide or repository-scoped Zero-Trust environment secret by name.
- [list_runners](https://codepanel.ai/docs/mcp-server/list_runners.md): The CodePanel MCP tool that lists the account's local runners, one per machine: online or offline, last check-in, and the repositories each can work.
- [list_local_models](https://codepanel.ai/docs/mcp-server/list_local_models.md): The CodePanel MCP tool that lists the free models on the owner's machine (Ollama, LM Studio, llama.cpp, MLX) a coding agent can run on.
- [get_agent_records](https://codepanel.ai/docs/mcp-server/get_agent_records.md): The CodePanel MCP tool that returns each coding agent's record over 30 or 90 days: findings fixed and disputed, rounds to green, merges, spend.
- [get_route_preview](https://codepanel.ai/docs/mcp-server/get_route_preview.md): The CodePanel MCP tool that shows which agent a task on a repository routes to now and why, with each agent's record and cost range there.

## MCP tools: Tasks

- [list_tasks](https://codepanel.ai/docs/mcp-server/list_tasks.md): The CodePanel MCP tool that lists the agent app's tasks with their status, agent, repository, runs, cost and time.
- [get_task](https://codepanel.ai/docs/mcp-server/get_task.md): The CodePanel MCP tool that returns one task with each run's model, status, outcome, tokens, cost, checks and pull request.
- [cancel_task](https://codepanel.ai/docs/mcp-server/cancel_task.md): The CodePanel MCP tool that stops a task that has not ended and returns it before and after; its runs keep their records.
- [retry_task](https://codepanel.ai/docs/mcp-server/retry_task.md): The CodePanel MCP tool that queues a failed or stopped agent app task again and wakes the local runner to claim it.
- [start_task](https://codepanel.ai/docs/mcp-server/start_task.md): The CodePanel MCP tool that hands a coding agent a task on a connected repository and wakes the local runner to claim it.
- [get_run](https://codepanel.ai/docs/mcp-server/get_run.md): The CodePanel MCP tool that returns one agent app run with its status, measures, the interrupts waiting on you and its diff summary.
- [wait_for_run](https://codepanel.ai/docs/mcp-server/wait_for_run.md): The CodePanel MCP tool that waits until an agent app run ends or needs you, following the run's events on this machine's runner.
- [answer_interrupt](https://codepanel.ai/docs/mcp-server/answer_interrupt.md): The CodePanel MCP tool that allows or denies what an agent app run is waiting on.
- [get_run_diff](https://codepanel.ai/docs/mcp-server/get_run_diff.md): The CodePanel MCP tool that returns what an agent app run changed: its branch, commits, diffstat and patch.
- [stop_run](https://codepanel.ai/docs/mcp-server/stop_run.md): The CodePanel MCP tool that stops an agent app run and keeps its task, so it can run again.
- [switch_model](https://codepanel.ai/docs/mcp-server/switch_model.md): The CodePanel MCP tool that moves an agent app run to another model, or a cheaper one, at its next turn, keeping its history.
- [recover_budget_stop](https://codepanel.ai/docs/mcp-server/recover_budget_stop.md): The CodePanel MCP tool that raises the cap a run stopped at, or moves its task to a cheaper model, and queues it again.
- [pause_run](https://codepanel.ai/docs/mcp-server/pause_run.md): The CodePanel MCP tool that holds an agent app run between turns, a swarm's children too, keeping its place and worktree.
- [resume_run](https://codepanel.ai/docs/mcp-server/resume_run.md): The CodePanel MCP tool that lets a paused agent app run go on from the history it holds.
- [send_run_message](https://codepanel.ai/docs/mcp-server/send_run_message.md): The CodePanel MCP tool that sends a mid-run steering or queued message into a live agent app run.
- [get_inbox](https://codepanel.ai/docs/mcp-server/get_inbox.md): The CodePanel MCP tool that reads everything across your agent app runs that waits on you, most blocking first, with fleet stats.
- [answer_batch](https://codepanel.ai/docs/mcp-server/answer_batch.md): The CodePanel MCP tool that allows or denies many agent app interrupts in one call, each answered on its own.
- [dismiss_inbox_item](https://codepanel.ai/docs/mcp-server/dismiss_inbox_item.md): The CodePanel MCP tool that takes an ended agent app run's item out of the owner's inbox, or puts it back.
- [list_swarms](https://codepanel.ai/docs/mcp-server/list_swarms.md): The CodePanel MCP tool that lists team runs as swarms, with subtask progress and spend against the team's cap.
- [start_cloud_swarm](https://codepanel.ai/docs/mcp-server/start_cloud_swarm.md): The CodePanel MCP tool that fans out up to 50 items across parallel cheap-model workers with a maxUsd cap and optional digest.
- [list_cloud_swarms](https://codepanel.ai/docs/mcp-server/list_cloud_swarms.md): The CodePanel MCP tool that lists recent parallel cheap-model cloud swarms for the account, newest first.
- [get_cloud_swarm](https://codepanel.ai/docs/mcp-server/get_cloud_swarm.md): The CodePanel MCP tool that reads one cloud swarm's summary, coordinator digest, and per-item results.
- [bulk_tasks](https://codepanel.ai/docs/mcp-server/bulk_tasks.md): The CodePanel MCP tool that stops or retries up to 100 agent app tasks in one call, each on its own.

## MCP tools: Findings

- [list_findings](https://codepanel.ai/docs/mcp-server/list_findings.md): The CodePanel MCP tool that lists a pull request's findings with refs, ids, state and answered status, without the rest of the review.
- [rate_finding](https://codepanel.ai/docs/mcp-server/rate_finding.md): The CodePanel MCP tool that rates a review finding, disputes a wrong one, or rates up to 50 at once: inputs, results and real responses.
- [dismiss_finding](https://codepanel.ai/docs/mcp-server/dismiss_finding.md): The CodePanel MCP tool that says a finding is wrong or deferred. From an agent it disputes the finding; deferred closes it. Not for fixed findings.
- [reopen_finding](https://codepanel.ai/docs/mcp-server/reopen_finding.md): The CodePanel MCP tool that reopens a dismissed finding, including one a later round reported again and left closed, and clears its dispute.
- [ask_reviewer](https://codepanel.ai/docs/mcp-server/ask_reviewer.md): The CodePanel MCP tool that asks the review's orchestrator a question about a finding before you dispute it. Never starts a review; counts toward budget.
- [ask_decision](https://codepanel.ai/docs/mcp-server/ask_decision.md): The CodePanel MCP tool that analyzes a technical or design question against a repository and returns a structured decision via a 3-tier cascade.
- [list_decisions](https://codepanel.ai/docs/mcp-server/list_decisions.md): The CodePanel MCP tool that lists decisions CodePanel has made or escalated for a repository or across your account.
- [get_decision](https://codepanel.ai/docs/mcp-server/get_decision.md): The CodePanel MCP tool that fetches a single decision by id or short ref (D4), including rationale, citations and panel votes.
- [override_decision](https://codepanel.ai/docs/mcp-server/override_decision.md): The CodePanel MCP tool that overrides a CodePanel decision (or answers an escalated one) and optionally promotes it into a repository learning.

## MCP tools: Feedback to CodePanel

- [send_feedback_to_codepanel](https://codepanel.ai/docs/mcp-server/send_feedback_to_codepanel.md): The CodePanel MCP tool that tells the CodePanel team what got in your agent's way. It needs no particular scope and is limited to 10 an hour.
