💻 Commands Reference

All slash commands available in Code Puppy. Commands are organized by category for easy navigation.

💡 Tip

Type /help in Code Puppy to see all available commands. Use Tab for auto-completion!

🎨 Interactive TUI Commands

Many commands launch beautiful Terminal User Interfaces with arrow-key navigation, fuzzy search, and live previews:

  • /model – Interactive model picker
  • /agent – Interactive agent picker with descriptions
  • /add_model – Browse 65+ providers and 1000+ models
  • /mcp install – MCP server installer with registry search
  • /resume – Session browser with preview
  • /model_settings, /diff – Configuration wizards

🎯 Core Commands

Essential commands for everyday use.

/help
Show help information and list all available commands.
/exit, /quit
Exit Code Puppy. You can also use Ctrl+D.
/cd [path]
Change the working directory. Without arguments, shows current directory.
/tools
Show all tools available to the current agent.
/motd
Show the Message of the Day (MOTD) with tips and updates.
/agent <name>
Switch to a different agent. Example: /agent planning-agent
/model <name>
Change the active AI model. Example: /model gpt-5.1
/add_model
Browse and add models from the models.dev catalog.
/model_settings
Configure per-model settings (temperature, max tokens, etc.).
/generate-pr-description
Generate a pull request description based on git diff.

Learn more about core commands →

🔧 Configuration Commands

Customize Code Puppy's behavior.

/show [option]
Show current configuration values. Without arguments, shows all settings.
/set <option> <value>
Set a configuration value. Example: /set yolo_mode true
/reasoning <level>
Set reasoning effort level (low, medium, high).
/verbosity <level>
Set output verbosity (quiet, normal, verbose).
/pin_model <model>
Pin a specific model to the current agent.
/unpin
Unpin the model from the current agent.
/diff
Configure diff display colors and options.

Learn more about config commands →

💾 Session Commands

Manage conversation history and sessions.

/session
Manage autosave sessions (list, save, load, delete).
/compact
Summarize and compact conversation history to save tokens.
/truncate
Truncate conversation history to a specified number of messages.
/autosave_load, /resume
Load an autosaved session.
/dump_context
Save current conversation to a file.
/load_context
Load a previously saved conversation.

Learn more about session commands →

🤝 MCP Commands

Manage Model Context Protocol servers for extended functionality.

/mcp list
List all configured MCP servers and their status.
/mcp search <query>
Search the MCP server registry.
/mcp install <name>
Install an MCP server from the registry.
/mcp add
Add a custom MCP server configuration.
/mcp start <name>
Start an MCP server.
/mcp stop <name>
Stop an MCP server.
/mcp status
Show status of all MCP servers.
/mcp logs <name>
View logs from an MCP server.
/mcp remove <name>
Remove an MCP server configuration.

Learn more about MCP integration →

Quick Reference Table

Command Category Description
/helpCoreShow help
/exitCoreExit Code Puppy
/cdCoreChange directory
/toolsCoreShow tools
/agentCoreSwitch agent
/modelCoreSwitch model
/showConfigShow settings
/setConfigSet config value
/sessionSessionManage sessions
/compactSessionCompact history
/mcpMCPMCP server management