Slash Commands#

All commands start with /. Typing / in the input field shows autocomplete.

Getting Started (2)#

CommandDescription
/help [command]Help for a command or general help
/quickstartQuick start with examples

Sessions (8)#

CommandDescription
/model [name]Switch model (flash, pro, sonnet, opus, haiku)
/clearClear conversation history
/compactForce context compaction
/save [name]Save current session
/resume <id> [--force]Restore a saved session
/sessions [--all]List saved sessions
/statsSession statistics (tokens, cost, context)
/instructions [--source]Show loaded project instructions

Auth & Settings (9)#

CommandDescription
/login [provider] [key]Set provider API key
/logout [provider|all]Remove API key(s)
/oauth-loginLogin to Gemini via Google account (OAuth)
/oauth-logoutRemove OAuth credentials
/provider [name]Switch AI provider
/statusCurrent configuration status
/doctorEnvironment and configuration diagnostics
/configShow current settings
/update [install|backups|rollback]Check and install updates

Git (3)#

CommandDescription
/initInitialize GOKIN.md for the project
/commit [-m message]Create a git commit
/pr [--title title] [--draft] [--base branch]Create a pull request

Planning & Observability (10)#

CommandDescription
/planToggle planning mode
/resume-plan [list|<plan_id>]Resume a paused plan
/tree-statsTree planner statistics
/healthRuntime health and provider reliability
/policyPolicy engine and circuit breaker state
/ledgerCurrent plan run ledger
/journalRecent execution journal events
/recoveryLatest recovery snapshot
/observabilityCombined observability dashboard
/memory-governanceMemory and session governance state

Tools & Utilities (16)#

CommandDescription
/browse [path]Interactive file browser
/open <file>Open file in editor
/copy [--last|--all|--ascii] [text]Copy to clipboard
/pasteGet text from clipboard
/ql <file>Quick Look (macOS only)
/clear-todosClear all todo tasks
/permissions [on|off]Enable/disable permission prompts
/sandbox [on|off]Enable/disable bash sandbox
/theme [name]Switch UI theme
/semantic-statsSemantic index statistics
/semantic-reindexRebuild semantic index
/register-agent-type <name> "<desc>"Register a custom agent type
/list-agent-typesList all agent types
/unregister-agent-type <name>Remove a custom agent type

Options for /register-agent-type:

/register-agent-type explorer "Code explorer agent" --tools read,glob,grep --prompt "You are a code explorer"

Keyboard Shortcuts#

KeyAction
/ Navigate suggestions or history
Ctrl+BScroll up
Ctrl+FScroll down
Ctrl+UScroll half page up
Ctrl+DScroll half page down

Input & Editing#

KeyAction
EnterSend message
TabAutocomplete command / apply code
Ctrl+RReverse search input history
Ctrl+UClear input line
Ctrl+LClear screen / redraw
EscCancel / close modal

UI Controls#

KeyAction
Ctrl+PCommand palette (all actions)
Ctrl+GSelect mode (freeze + native text selection)
Ctrl+CQuit application
Ctrl+DQuit (alternative)
Shift+TabToggle planning mode
Shift+YCopy chat history
Option+C / Alt+CCopy last AI response

Code Actions#

KeyAction
TabApply code block
EnterAccept diff

Context Dialogs#

ContextKeys
Command paletteType to filter, ↑/↓ navigate, Enter select
File browser/ navigate, Enter select, Esc cancel
Permission dialogy Allow, a Always, n Deny, Esc Cancel
ShortcutsType to filter, ↑/↓ scroll, Esc close

Command Metadata#

Each command has metadata:

FieldDescription
CategoryCategory (Getting Started, Session, Auth, Git, Planning, Tools)
PrioritySort order within category
PlatformPlatform restriction (darwin, linux, windows)
RequiresGitRequires a git repository
RequiresAPIRequires a configured API key
AdvancedHidden by default, visible in search

On command name typos, Gokin suggests the closest match (Levenshtein distance).

GitHub MIT License © Gokin Contributors