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
/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
/contextContext window usage and auto-compact threshold
/compactFree context by clearing stale tool results
/model [name]Show or switch the active model (interactive picker)
/verboseToggle verbose output (shows token counts)

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

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)

Editing

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