Type / followed by a command name in the REPL. Unknown commands are passed to the agent as prompts. Skill names work as commands too.

Session

CommandDescription
/helpShow all commands and loaded skills
/exitExit the REPL
/clearReset conversation history
/resume <id>Restore a previous session by ID
/sessionsList recent saved sessions (shows labels from /rename)
/rename <name>Set a human-readable label on the current session (empty clears it)
/exportExport conversation to markdown file
/shareExport session as shareable markdown with metadata
/summaryAsk the agent to summarize the session
/versionShow agent-code version

Context

CommandDescription
/costToken usage and estimated session cost
/usagePer-turn token timeline (input / output / cache read / cache write)
/contextContext window usage and auto-compact threshold
/compactFree context by clearing stale tool results
/break-cacheForce the next request to skip the prompt cache
/add-dir <path>Track an additional directory alongside cwd (list / --remove <path> / --clear)
/model [name]Show or switch the active model (interactive picker)
/verboseToggle verbose output (shows token counts)
/thinkback [n]Show the model's thinking blocks from the nth most recent turn (1 = latest)

Git

CommandDescription
/diffShow current git changes
/statusShow git status
/commit [msg]Review diff and create a commit
/reviewAnalyze diff for bugs and issues
/branch [name]Show or switch git branch
/logShow recent git history
/pr-comments [n]Triage review comments on the current (or specified) PR
/autofix-pr [n]Check out a PR in a worktree, fix lint/test failures, push back
/perf-issue [scope]Audit the current diff (or named target) for perf regressions

Agent Control

CommandDescription
/planToggle plan mode (read-only)
/permissionsShow permission mode and rules
/agentsList available agent types
/tasksList background tasks

Configuration

CommandDescription
/initCreate .agent/settings.toml for this project
/doctorCheck environment health (tools, config, git)
/configShow current configuration
/mcpList connected MCP servers
/hooksShow hook configuration
/pluginsList loaded plugins
/memoryShow loaded memory context
/skillsList available skills
/themeShow and configure color theme
/color [name]Switch color theme mid-session
/featuresShow enabled feature flags

History

CommandDescription
/scrollScrollable view of conversation history
/transcriptShow conversation transcript with message indices
/rewindUndo the last assistant turn
/snip <range>Remove messages by index (e.g., /snip 3-7)
/forkBranch the conversation from this point

Diagnostics

CommandDescription
/statsSession statistics (turns, tools used, cost)
/filesList working directory contents
/release-notesShow release notes for the current version
/feedback <msg>Submit feedback or suggestions
/bugReport a bug (opens GitHub issues link)
/heapdumpWrite a process memory snapshot to disk (hidden from /help)
/effort [task]Rate task complexity XS / S / M / L / XL with risks

Memory

CommandDescription
/memoryShow loaded memory context
/btw <note>Append a quick note to user memory (creates a timestamped file)

Editing

CommandDescription
/vimSwitch to vi editing mode
/emacsSwitch to emacs editing mode