Skip to Content

Slash commands

Every command you can type inside an interactive zerd session, grouped by what it does.

Type /help in a session to see the same list. Tab completes command names. A /name zerd doesn't know is looked up in your own prompt templates and skills (see the end of this page).

Session

CommandWhat it doesExample
/helpLists commands and input shortcuts
/clearClears the conversation and the screen
/saveSaves this session
/sessionsLists saved sessions, marking the ones from this folder
/resume [id]Resumes a saved session. With no id it takes the latest one for this folder/resume
/checkpointCreates a checkpoint and prints its id
/restore <id>Restores a checkpoint into the session/restore followed by the id from /checkpoint
/exitQuits. /quit does the same

Model and cost

CommandWhat it doesExample
/model [id]Shows the current model, or switches to a known one. Unknown ids get a "did you mean" list. Tab completes ids/model
/connect <provider>Connects a model API directly: asks for the key, saves it and lists its models/connect groq
/effort [low|medium|high|auto]Sets how hard the model thinks. Only Codex models use it/effort high
/costCalls, input and output tokens, cache hit rate, cache misses and estimated cost
/statsSession statistics
/contextHow full the context window is: system prompt, summary and messages by role
/compactSummarizes older messages now to free context

Costs and compaction are covered in Context and cost. Models are in Models.

Approvals and permissions

CommandWhat it doesExample
/approval [mode]Shows or sets the approval mode: on-request, on-failure, auto, auto-edit, never, yolo, plan/approval auto-edit
/planToggles plan mode. zerd reads and searches but changes nothing, then presents a plan. Run it again to go back to the previous mode
/permissionsLists allow, deny and ask rules. /permissions <allow|deny|ask> <rule> adds one and /permissions remove <rule> drops one/permissions deny Read(.env*)

Rules are saved in .zerd/permissions.json. When rules overlap, deny beats ask, and ask beats allow. See Safety and Permissions.

Checks, undo and learning

CommandWhat it doesExample
/verifyRuns the checks (tests, lint, types) on the files the last request changed
/diff [full]Shows git diff --stat for the working tree, or the whole patch with full/diff full
/undoPuts back the files the last request changed, after you confirm. New files it created are removed
/rewind [n]Lists the requests that changed files. With a number, puts files back to how they were before request n (1 is the latest)/rewind 2
/challenge <idea>A second model argues against your idea or plan/challenge move auth into middleware
/learn <rule>Teaches zerd a rule for this repo. It is saved to AGENTS.md and applies from the next session/learn run cargo fmt before committing
/lessonsLists what zerd has learned here, numbered
/forget <n>Removes a lesson by its number from /lessons/forget 2

See Memory and undo, Verification and Reviews.

Tools, agents and background work

CommandWhat it doesExample
/toolsLists the tools available in this session
/skillsLists project playbooks, marking the always-on ones
/agentsLists sub-agents, including running background ones. /agents stop <id> stops one/agents stop 3
/mcpStatus of MCP servers and how many tools each has
/hooksLists the configured hooks
/jobsLists background commands. /jobs <id> shows output and /jobs kill <id> stops one/jobs kill 1

See Tools, Skills and agents and Extending.

Display

CommandWhat it doesExample
/verboseSwitches between quiet output (the default) and full tool output
/expand [n]Shows the full output of the last tool call, or /expand 2 for the one before/expand 2
/layoutShows or hides parts of the full-screen layout: side, agents, read, written, commands, hints. /layout reset restores everything/layout read off
/copy [all]Copies the last reply to the clipboard, or the whole conversation with all/copy all
/configShows model, temperature, approval mode, working directory, max turns and whether hooks are on

F3 flips the side panel.

Input shortcuts

InputWhat it does
@pathAttaches a file. Tab completes
!cmdRuns a shell command and shows the output to the model
!!cmdRuns a shell command privately
Ctrl+JInserts a newline
Ctrl+CInterrupts the agent

Your own commands

Any other /name is looked up in your prompt templates (.zerd/commands, .claude/commands) first, then in your skills. A template expands with the words you type after it. A skill is loaded for that request, so /code-review the auth change runs that playbook on those words. With no words, zerd applies the skill to the whole project. If nothing matches, you get Unknown command. See Extending.

On this page