Documentation/Reference

Command reference

CLI flags, slash commands, and keyboard shortcuts.

Use agent --help for the installed build's flags and /help for interactive commands, including discovered project commands.

Startup and output

bash
agent
agent --cwd ./project --mode plan
agent --model openrouter/your-model
agent -p "Explain this repository"
agent --json -p "List entry points"
agent --rpc
FlagPurpose
-p, --printRun a prompt and print the answer
--jsonEmit events as JSON lines
--rpcRead and write JSON-line requests/events
--modelSelect a provider/model reference
--cwdSelect the working directory
--modeask, auto-edit, plan, or yolo
--allow, --deny, --askAdd permission rules
--continueContinue the last project session
--resume [id]Resume a named session or open the picker
--log, --no-logSet or disable session logging
-v, --verboseInclude tool activity where supported
-h, --helpShow usage

Interactive commands

CommandPurpose
/modelSearch and select models
/permissionsInspect and change access
/loginConfigure provider authentication
/inspectOpen latest tool or supplied thinking
/compactSummarize older context
/new, /clearStart a new saved conversation
/resume, /renameOpen or name a saved session
/fork, /treeBranch and inspect session ancestry
/undoRestore a file checkpoint where available
/agentsShow available delegation roles
/tasks, /subagentsInspect and control workers
/reviewRun read-only review of a captured diff
/diffInspect working-tree changes
/helpCommands and shortcuts

Keyboard shortcuts

ShortcutAction
EscBack from a dialog; interrupt active work
Shift+TabCycle Ask, Auto-edit, Plan
Alt+ILatest thinking/tool detail
Ctrl+OFull display transcript
Ctrl+BWorker controls
Ctrl+RSearch prompt history
Shift+Enter or Ctrl+JInsert a newline
@ then TabFile completion
?Shortcut help

Ctrl+T is not used for inspection. If your IDE captures Alt+I, use /inspect. Focused dialogs own their input; close the dialog before using a main-screen shortcut.

Shell commands

Prefix an interactive prompt with ! to request a shell command:

text
!git status

The command uses the current tool permission policy. Plan mode does not run shell commands. Use commands supported by the shell on your platform; a Unix command shown in an example is not automatically portable to PowerShell.

Improve this pageSource-backed guides · MDX