Skip to content

Slash Commands

Type / in the input to open the fuzzy command menu, or press Ctrl+P to open the command palette — a unified fuzzy finder across files, symbols, sessions, and commands.

Press Ctrl+P to open the command palette. It searches across four categories:

  • Files — project files (from git ls-files). Selecting attaches the file to your next message.
  • Symbols — workspace symbols via LSP. Type @query to search. Selecting attaches the symbol’s file.
  • Sessions — existing sessions. Type #query to prioritize. Selecting resumes the session.
  • Commands — slash commands. Type /query to prioritize. Selecting runs the command.

The palette uses fuzzy matching with scoring for consecutive matches, word boundaries, and camelCase. Results update as you type.

CommandDescription
/agentsOpen the agent picker
/modelsOpen the model picker
/sessionsBrowse session history
/paletteOpen command palette (Ctrl+P)
/theme [name]Apply a theme or open the theme picker
/connectProvider OAuth connection dialog
/newStart a new session
/helpHelp dialog
/exitExit kodacode (also /quit, /q)
CommandDescription
/search <query>Search in current session messages
/attach <path>Attach file to next message
/detach [number]Remove pending attachment (by number, or all)
/init [filename]Generate project instruction file (KODACODE.md, AGENTS.md, or CLAUDE.md)
/pin <instruction>Pin instruction that survives compaction
/pinsList pinned instructions
/unpin <number>Remove pinned instruction by number
/reloadCheck for externally modified files
/diff [args]Show current branch diff
/undo [file]Revert last file change
/costSession cost, tokens, and per-turn trace table
/trace <N>Step-level detail for turn N (token breakdown, tool timing)
/export [path]Export session as markdown
/replayNavigate session snapshots (requires snapshot: true)
/variantCycle thinking effort: low/high/max (reasoning models only)
/logs [clear]View or clear the log file
/heapDump memory profile and show top consumers
CommandDescription
/remember <text>Save a project memory
/memoriesList all saved memories
/forget <id>Remove a saved memory by ID

Invoke any agent directly as a slash command. These launch a subagent session:

CommandDescription
/explorer [question]Research codebase (read-only, uses utility model)
/insight [task]Extract learnings and persist to AGENTS.md
/polish [task]Clean up AI-generated code artifacts
/planner [task]Create structured implementation plan
/refactor [task]Restructure code without changing behavior
/explorer how does the authentication flow work?
/planner add rate limiting to the API endpoints
/polish src/handler.go
/refactor extract database queries into a repository layer
/insight

Custom agents you create are also available as slash commands using their filename (without .md).

All commands support fuzzy matching. Type /exp to match /explorer and /export. The menu filters as you type, showing up to 8 completions with prefix matches ranked first.