PanCode

Commands and shortcuts

Read the full guide
On this pageLaunch and inspect Everyday terminal commands A few keys to remember Related tutorials

Commands and shortcuts

Navigate the terminal, choose models, and control a session.

Launch and inspect

Command Use it to
pancode Open the terminal in your project
pancode gui --open Open the local desktop alpha
pancode configure Connect a model with Guided setup
pancode doctor Check installation and connections
pancode upgrade Update PanCode
pancode --help See installed commands; --help --all lists every command path
pancode --resume Pick an earlier session to reopen; --continue opens the latest
pancode session history List saved sessions from the shell
pancode config get <path> Read one setting; config set and config unset change it

For a single task without the interactive interface:

Shell

pancode run "Explain this project's test setup. Do not change files." --cwd /path/to/project

Add --output-format json for one machine-readable result, or --output-format stream-json for events as they happen. A request to avoid edits is task guidance. When execution must be constrained, add --read-only or limit tools with --allow-tools <names>.

Everyday terminal commands

Command What it opens or does
/help Commands and effective keybindings
/model Model picker; apply to this session or save for the project or globally
/settings Settings, grouped by area
/config Connections in Settings; Add a connection runs setup inside the session
/hub PanHub: skills, prompts, agents, playbooks, plugins, and extensions
/context Context usage and pending handoffs
/usage Session usage and supported subscription quotas
/rewind Preview and restore this session's file snapshots
/rename [name] Name the session so /resume can find it
/fork [name] Fork from an assistant turn into a new session, optionally named
/loop <interval> <task> Repeat a task on an interval as a bounded job; bare /loop lists jobs and /loop stop ends one
/reload Reload settings, PanHub packs, and extension runtimes
/restart Save the session and restart into it
/resume Previous conversations; /resume <id> reopens one directly
/tree Conversation history and branches
/new A fresh conversation
/view Artifacts and recorded results
/trust Review the project's own PanCode configuration and decide whether to activate it
/poll <n> <question> Ask 2 to 5 independent agents the same question and see how they vote
/report Draft a report for the maintainers; nothing is sent until you review it

Familiar names work as aliases: /clear is /new, /exit is /quit, /undo is /rewind, /cost and /status open /usage, /login opens connections, and /init writes a project handbook. A mistyped command names the closest one and keeps your draft.

A few keys to remember

Alt+letter runs a PanCode action, and Ctrl+G then the same letter runs it in any terminal, including ones that intercept Alt. The menu also lists a few actions with no Alt key; arrows and Enter work too, and Esc closes it. On an empty composer, ? shows the keys; /help shows every binding, custom ones included.

Default key Action
Enter Send; while running, queue the message for the next pause between tool calls
Ctrl+J Insert a newline
Alt+S Send now: interrupt the run and submit the draft
Alt+Q Open the queue to reorder, edit, or remove waiting messages; a puts them all back in the draft
Alt+M Open the model picker
Alt+L Open PanHub
Alt+O Cycle the output detail level
Alt+W Open Workers: the Fleet Runs board, or the workers dock in a session with panes
Alt+U Open or close the one-page dashboard

Ctrl+C closes an active overlay or cancels a running turn. When idle with no queued messages, two presses within 3 seconds exit; the first press keeps your draft.

For a course correction, type it in the composer and press Alt+S (or Ctrl+G s). Work already completed remains in the session record. In the queue, t switches a message between the next pause and the end of the turn.

A clean exit prints a summary of the session and the pancode --resume <id> line that reopens it. Inside the app, /resume does the same.