Skip to content

Quick reference

Everything the course teaches, in one place to look up rather than re-read.

CommandWhat it does
/clearStart a new conversation in the same process; the previous session remains resumable
/compactSummarize the thread to reclaim tokens without losing the plot
/contextShow what’s currently filling the context window
/usageShow token spend for this session
/rewindRestore or summarize an eligible checkpoint; it is not a Git replacement
/initGenerate a starter CLAUDE.md by scanning the project
/memoryView or edit the persistent memory file
/modelInspect or switch the active model by alias/full name
/permissionsView and manage allow/deny rules for this session
/btwAsk a side-question in an overlay that never enters context
/resumePick a previous session to continue
/branchCreate a new conversation branch from the current session
/effortSet supported reasoning effort levels
/fastToggle fast mode where supported
/recapSummarize the current session without compacting it
/keybindingsConfigure interactive keybindings
FlagWhat it does
--continueResume the most recent session in this directory
--resumePick a past session to resume from a list
-pRun a single prompt headlessly and exit (no REPL)
--output-formatControl headless output: text, json, stream-json
--max-turnsCap how many agentic turns a headless run may take
--bareSkip project auto-discovery such as CLAUDE.md, hooks, skills, plugins, and MCP
--modelSet the model for this invocation without /model
ShortcutWhat it does
Shift+TabCycle the modes available in the current configuration, normally default → acceptEdits → plan
EscapeInterrupt the agent mid-response
Ctrl+CCancel the current input or action
ModeBehaviour
defaultReads are free; every write or shell command asks for approval
acceptEditsFile edits auto-approve; shell commands still ask
autoAll actions auto-approve within configured allow rules
dontAskDeny calls that would otherwise prompt; useful for unattended runs
bypassPermissionsSkips normal permission checks; use only inside strong isolation
FilePurpose
CLAUDE.mdProject instructions loaded at session start (rules, conventions, context)
.claude/settings.jsonPer-project permission rules, allowed/denied tools and paths
.claude/skills/Reusable skill definitions the agent invokes by description match
.claude/agents/Custom subagent definitions with their own model and permissions