DGCDocs
Getting started/Slash commands

the full / command reference

Slash commands#

Type / on an empty composer to open the live command palette; filter as you type, ↑/↓ to select, Enter to run. This list is the complete full-screen TUI surface; classic and editor clients advertise only the commands they can execute.

  • /help — list every command. Aliases: /?, /commands.
  • /keys — keyboard shortcuts cheatsheet. Aliases: /shortcuts, /cheatsheet.
  • /docs — in-app how-to guides. Aliases: /doc, /guide.
  • /new — start a new session. Aliases: /session.
  • /resume — reopen a past session · ^D deletes one.
  • /history — search & recall a past prompt. Aliases: /hist.
  • /jump — jump the transcript to a past turn.
  • /rewind — restore code + conversation to a past turn.
  • /model [NAME] — switch the model.
  • /connect [ENGINE|PRESET|URL] — pick a subscription, a provider, or a custom host.
  • /subagent [SETTING…] — configure sub-agent model, host, transport, or inheritance.
  • /mode [MODE] — permission mode: default · acceptEdits · plan · auto.
  • /view-plan — reopen the plan saved in plan mode. Aliases: /plan-view, /viewplan.
  • /think [LEVEL] — how hard the model reasons: off · low · medium · high · xhigh.
  • /thoughts — show or hide the model's thinking in the transcript. Aliases: /reasoning, /reason.
  • /preserve-thinking [on|off] — keep prior-turn reasoning in context (compatible hosts). Aliases: /preserve-reasoning.
  • /code-action [on|off] — persistent python power tool: run code across calls. Aliases: /codeaction, /python-tool.
  • /autonomous-gate [CMD|off] — a check command a turn must pass (exit 0) before it may stop. Aliases: /auto-gate.
  • /expand — expand the last collapsed tool output.
  • /expandall — expand every collapsed tool output.
  • /copy — select & copy text — releases the mouse to your terminal. Aliases: /select, /selection.
  • /worktree [NAME] — list or switch to a named git worktree.
  • /tasks [ACTION…] — list, show, apply, or drop retained sub-agent work.
  • /sandbox — confine bash with the supported host OS boundary.
  • /bg — terminal background: auto · dark · inherit. Aliases: /background.
  • /theme [NAME] — colour theme: auto · dark · light.
  • /context — context-window usage.
  • /artifact [stop ID] — open / stop localhost artifact previews. Aliases: /artifacts.
  • /compact — summarise the older turns now.
  • /status — model · host · mode · context.
  • /dashboard — session roster — open, switch, start, or delete sessions. Aliases: /dash, /home.
  • /name [NAME] — name this session.
  • /goal [TEXT|STATE] — inspect, set, complete, pause, resume, or clear the objective.
  • /set [KEY [VALUE]] — tune a scalar setting live.
  • /settings — browse & edit all settings. Aliases: /config, /prefs, /preferences.
  • /handoff — generate a complete continuation handoff. Aliases: /handover.
  • /export-training [FILE] — export this project's sessions as scrubbed fine-tuning JSONL. Aliases: /export-jsonl.
  • /hooks — inspect configured lifecycle hooks. Aliases: /hook.
  • /mcp — inspect and manage MCP servers.
  • /agents — sub-agent configuration.
  • /skills — installed skills. Aliases: /extensions, /ext.
  • /memory [ACTION…] — show or add project/user memory.
  • /permissions [RULE…] — list or add allow · ask · deny rules.
  • /bug — report a bug / request a feature. Aliases: /feedback, /report, /issue.
  • /update — update DGC to the latest version.
  • /clear — clear the transcript.
  • /quit — exit dgc. Aliases: /exit, /q.

Project commands#

Add a custom prompt command at .dgc/commands/<name>.md (or ~/.dgc/commands/<name>.md). Use $ARGUMENTS or {{args}} in the template, then run /name optional arguments. Project commands override personal commands and appear in the classic/TUI/editor/ACP catalogs automatically. Names begin with a lowercase letter or digit, then use lowercase letters, digits, ., _, or - (1–64 characters). Built-in names and aliases are reserved. DGC bounds the catalog and each template, and rejects symlinked command directories or files.