Skip to content

Quick Start

This guide walks you through launching PanCode, understanding the interface, and running your first dispatch. Total time: about 5 minutes.

Terminal window
pancode

This creates a tmux session and starts the PanCode orchestrator. The session name is derived from your working directory (e.g., pancode-a3f2b1).

To start with a specific preset:

Terminal window
pancode --preset local # Local inference engines
pancode --preset openai # OpenAI models
pancode --preset hybrid # Local orchestrator, remote workers

Presets are defined in ~/.pancode/panpresets.yaml and configure the orchestrator model, worker model, reasoning level, and safety mode in one command.

On startup, PanCode displays a welcome screen showing:

  • The active model and provider
  • Current orchestrator mode (default: Build)
  • Safety level (default: auto-edit)
  • Reasoning preference (default: medium)
  • Number of registered agents and runtimes
  • Available slash commands

PanCode has four orchestrator modes that control what the system does with your input. Modes are orthogonal to safety levels.

Analyze and plan without executing. Shadow agents explore the codebase. No dispatch, no file mutations. Reasoning level: high.

Full dispatch capability. Workers implement, test, and review. File mutations allowed. Reasoning level: medium.

Quality checks and code review. Only readonly agents can be dispatched. No file mutations. Reasoning level: xhigh.

Full system management, configuration, and diagnostic dispatch. Safety escalates to full-auto, reasoning to xhigh. File mutations remain disabled. Toggle with Alt+A.

Switch modes with:

  • Shift+Tab: Cycle through Plan, Build, and Review
  • Alt+A: Toggle Admin mode
  • /modes admin|plan|build|review: Switch by name
ShortcutAction
Shift+TabCycle modes (Plan, Build, Review)
Alt+AToggle Admin (God Mode)
Ctrl+YCycle safety level
Ctrl+DExit PanCode
Ctrl+OExpand tool output
Ctrl+TToggle thinking visibility

PanCode enforces three safety levels that control what actions are allowed:

LevelBehavior
suggestRead-only tools only. Model suggests changes but cannot execute them.
auto-editFile reads and edits allowed. Destructive operations require confirmation.
full-autoAll operations allowed without confirmation.

Cycle with Ctrl+Y or use /safety.

Try these commands to explore PanCode:

/help Show all available commands
/agents List the 7-agent fleet
/models List discovered models
/doctor Run diagnostic health checks
/budget Show dispatch budget status
/dashboard Open the session dashboard
/session Show session info and coordination state
/runtimes List discovered agent runtimes
/workers Show the worker pool with scores

In Build mode, ask PanCode to perform a task. The orchestrator decides whether to handle it directly or dispatch a worker.

For tasks that benefit from delegation, the orchestrator uses the dispatch_agent tool:

You: "Review the code in src/core/config.ts for potential issues"

PanCode may dispatch a reviewer agent to analyze the file. The worker runs as a separate subprocess with its own context window and returns results to the orchestrator.

You can also be explicit:

You: "Dispatch the scout agent to explore the test directory structure"

While workers are running, the footer shows active dispatch status. After completion:

/runs View dispatch history
/cost See per-run cost breakdown
/metrics View aggregate statistics
/receipt List reproducibility receipts

PanCode sessions persist in tmux. You can detach and reattach freely.

Terminal window
pancode sessions # List running sessions
pancode up # Attach to most recent session
pancode up pancode-a3f2b1 # Attach to specific session
pancode down # Stop most recent session
pancode down --all # Stop all sessions
/exit Exit the current session
/session Show session info
/checkpoint label Save a session checkpoint
/reset Reset coordination state

PanCode uses conversational configuration. Ask the orchestrator to change settings:

You: "Set the budget ceiling to $20"
You: "Switch to the openai preset"
You: "Change reasoning to high"

In Admin mode, you can modify administrative parameters:

You: "Set dispatch timeout to 5 minutes"
You: "Set max dispatch depth to 3"

Quick toggles via keyboard shortcuts handle the most common changes (mode, safety, reasoning).

Run /dashboard to see a visual summary:

  • Mode badge and safety level
  • Active dispatches with progress
  • Session statistics (runs, cost, tokens)
  • Context window usage bar
  • Budget status