Skip to content

Command Reference

Danny Volz edited this page Jul 8, 2025 · 2 revisions

Command Reference

This page provides a comprehensive reference for all commands available in Coda's interactive mode.

Command Syntax

Commands in Coda start with a forward slash (/) and can have:

  • Subcommands: Additional actions (e.g., /session save)
  • Arguments: Values passed to commands (e.g., /mode code)
  • Aliases: Shorter versions for convenience (e.g., /s for /session)

Core Commands

/help

Display available commands and their descriptions.

/help

/exit or /quit

Exit the Coda interactive session.

/exit
# or
/quit

/clear

Clear the current conversation history.

/clear

AI Mode Commands

/mode <mode>

Switch between different AI personalities optimized for specific tasks.

/mode code      # Optimized for writing code
/mode debug     # Focus on debugging and error analysis
/mode explain   # Detailed explanations
/mode review    # Code review and security analysis
/mode refactor  # Code improvement suggestions
/mode plan      # Architecture and system design
/mode general   # General conversation (default)

Aliases: /m

Session Management Commands

/session or /s

Manage conversation sessions. See Session Management for detailed documentation.

Save Session

/session save [name]
/s save "Project Discussion"

Load Session

/session load <name|id>
/s load "Project Discussion"
/s load abc123

Load Last Session

/session last

List Sessions

/session list
/s ls

Branch Session

/session branch [name]
/s b "Alternative Approach"

Delete Session

/session delete <name|id>
/s rm abc123

Session Info

/session info [name|id]
/s i

Search Sessions

/session search <query>
/session search "python decorators"

Rename Session

/session rename [id] <new_name>
/session rename "Better Name"

Export Commands

/export <format>

Export the current conversation in various formats.

/export markdown    # Export as Markdown
/export json       # Export as JSON with metadata
/export txt        # Export as plain text
/export html       # Export as HTML

Aliases: /e, markdownmd, txttext

Files are saved to: ~/Documents/coda_exports/

Provider Commands

/provider <name>

Switch to a different AI provider during the session.

/provider openai
/provider ollama
/provider oci_genai
/provider anthropic

Aliases: /p

/model <name>

Switch to a different model within the current provider.

/model gpt-4
/model llama3.1
/model claude-3-opus-20240229

Configuration Commands

/config

Manage Coda configuration.

/config show       # Display current configuration
/config edit       # Open configuration in editor
/config reload     # Reload configuration from file

/theme <name>

Change the color theme.

/theme default       # Default balanced theme
/theme dark          # Dark mode optimized for low light
/theme light         # Light theme for bright environments
/theme minimal       # Minimal colors for focused work
/theme vibrant       # High contrast with vibrant colors
/theme monokai_dark  # Monokai color scheme - dark variant
/theme monokai_light # Monokai color scheme - light variant
/theme dracula_dark  # Dracula theme - dark variant
/theme dracula_light # Dracula theme - light variant
/theme gruvbox_dark  # Gruvbox retro groove - dark variant
/theme gruvbox_light # Gruvbox retro groove - light variant

# List all available themes
/theme list

Aliases: /t

Developer Commands

/debug

Toggle debug mode for verbose output.

/debug on
/debug off
/debug

/stats

Show session statistics including token usage and costs.

/stats

Tool Commands

/tools

Manage AI tools and capabilities.

/tools              # Show tools overview and status
/tools list         # List all available tools
/tools list <category>  # List tools by category (filesystem, git, web, system)
/tools info <tool>  # Show detailed information about a tool
/tools enable <tool>    # Enable a specific tool
/tools disable <tool>   # Disable a specific tool
/tools categories   # Show all tool categories
/tools status       # Show enabled/disabled status for all tools

Example usage:

/tools list filesystem    # Show file operation tools
/tools info read_file     # Get details about read_file tool
/tools disable exec       # Disable command execution
/tools categories         # See all categories

Available tool categories:

  • filesystem: File and directory operations (read, write, list, etc.)
  • git: Version control operations (status, diff, commit, etc.)
  • web: Internet tools (search, fetch content)
  • system: System operations (command execution, system info)

/agent

Manage agent mode for tool-assisted conversations.

/agent on           # Enable agent mode with tools
/agent off          # Disable agent mode
/agent status       # Check agent mode status

When agent mode is enabled, the AI can automatically use tools to help answer your questions and perform tasks.

Tips and Tricks

Command Shortcuts

Most commands have shorter aliases:

  • /session/s
  • /export/e
  • /mode/m
  • /provider/p

Tab Completion

Coda supports tab completion for:

  • Command names
  • Subcommands
  • File paths
  • Session names (coming soon)

Command History

  • Use ↑/↓ arrow keys to navigate command history
  • History is persisted between sessions
  • Search history with Ctrl+R

Partial Matching

Commands and arguments support partial matching:

/ses sav "My Session"    # Matches /session save
/exp md                  # Matches /export markdown

Chaining Commands

Some commands can be chained for efficiency:

# Save and exit
/session save "Final Version" && /exit

Error Handling

If a command fails, Coda will:

  1. Display a clear error message
  2. Suggest the correct syntax
  3. Offer similar commands if there's a typo

Example:

Unknown command: /sesion
Did you mean: /session?

Future Commands

Planned commands for upcoming releases:

  • /plugin - Manage plugins and extensions
  • /macro - Create command macros
  • /alias - Define custom command aliases
  • /workspace - Manage project workspaces
  • /share - Share sessions with others

Related Documentation

Clone this wiki locally