Kiro CLI Cheatsheet: Slash Commands
Slash commands are used inside an active kiro-cli chat session. They start with / and provide quick access to session controls, context management, agents, tools, and more.
kiro-cli chat # Start interactive session first, then use commands below
Session & Navigation
| Command | Description |
|---|---|
/help |
Switch to Help Agent |
/help How do I configure MCP? |
Ask Help Agent a question |
/help --legacy |
Show classic help text |
/help --legacy /context |
Show help for a specific command |
/quit |
Exit the session |
/exit or /q |
Aliases for /quit |
/clear |
Clear conversation display (not saved history) |
/changelog |
View Kiro CLI recent changes |
Chat Session Management
/chat resume # Interactive picker to resume a previous session
/chat save /path/file.json # Save current session to a file
/chat load /path/file.json # Load session from a file
# Custom storage scripts
/chat save-via-script ./scripts/save-to-git.sh # Script receives JSON via stdin
/chat load-via-script ./scripts/load-from-git.sh # Script outputs JSON to stdout
Sessions are auto-saved on every turn. Sessions are per-directory.
Context Management
/context show # Show context rules and matched files
/context add src/app.js # Add a specific file
/context add "*.py" # Add via glob pattern
/context add "src/**/*.js" # Recursive glob
/context remove src/app.js # Remove a rule
/context clear # Remove all rules
Context changes are not persisted between sessions. Edit the agent config file to make permanent changes.
Model Selection
/model # Open interactive model picker
/model claude-opus-4.6 # Select a model directly
/model clau<Tab> # Tab-complete model names
/model set-current-as-default # Save current model as default
Default saved to
~/.kiro/settings/cli.json.
Agent Management
/agent list # List all available agents
/agent create my-agent # Create a new agent
/agent edit # Edit the current agent
/agent edit my-agent # Edit a specific agent
/agent edit --path /abs/path.json # Edit by file path
/agent generate # AI-generate an agent config
/agent schema # Show agent config JSON schema
/agent set-default my-agent # Set default agent for future sessions
/agent swap code-reviewer # Swap to a different agent mid-session
Built-in agents (
kiro_default,kiro_help,kiro_planner) cannot be edited.
Tools & Permissions
/tools # View all tools, token counts, and permissions
/tools schema # Show input schema for all tools
/tools trust write # Trust a tool for this session (no confirmation)
/tools untrust write # Revert tool to per-request confirmation
/tools trust-all # Trust all tools
/tools reset # Reset all tools to default permission levels
Permission levels: Trusted | Ask | Allowed
Prompts
/prompts list # List all available prompts
/prompts details code-review # Show prompt details
/prompts get code-review [arg] # Retrieve a prompt
@code-review [arg] # Shorthand for /prompts get
/prompts create my-prompt # Create a local prompt
/prompts edit my-prompt # Edit a local prompt
/prompts remove my-prompt # Delete a local prompt
Code Intelligence (LSP)
/code init # Initialize LSP-powered code intelligence
/code init -f # Force reinitialize (restarts LSP servers)
/code overview # Get workspace structure overview
/code overview --silent # Cleaner output
/code status # Show LSP server + workspace status
# Log viewing
/code logs # Last 20 ERROR logs
/code logs -l INFO # INFO level and above
/code logs -n 50 # Last 50 entries
/code logs -l DEBUG -n 100 # Last 100 DEBUG+ logs
/code logs -p ./lsp-logs.json # Export logs to JSON
To-Dos
/todos # View todo list (alias: /todo)
/todo add "Fix authentication bug"
/todo complete 1
MCP & Integrations
/mcp # Show currently active MCP servers
/hooks # Display active context hooks for the session
Conversation Utilities
/compact # Summarise conversation to free up context window space
/paste # Paste an image from clipboard into the conversation
/editor # Open $EDITOR to compose a long prompt
/reply # Open editor with last AI response quoted for reply
/usage # Show billing and credits information
Exploration & Experiments
/experiment # Toggle experimental features on/off
/tangent # Enter/exit tangent mode (isolated side conversation)
# Keyboard shortcut: Ctrl+T (when tangent mode is enabled)
Support & Diagnostics
/issue # Create a GitHub issue or feature request
/logdump # Create a zip of logs for support investigation
Keyboard Shortcuts (In Chat)
| Shortcut | Action |
|---|---|
Ctrl+C |
Cancel current input |
Ctrl+J |
Insert newline (multi-line prompt) |
Ctrl+S |
Fuzzy search commands and context files |
Ctrl+T |
Toggle tangent mode (if enabled) |
↑ / ↓ |
Navigate command history |