Skip to content

Command Reference

Danny Volz edited this page Jul 5, 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
/theme monokai
/theme solarized
/theme minimal

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 (MCP)

/tools

Manage Model Context Protocol (MCP) tools.

/tools list        # List available tools
/tools enable      # Enable specific tools
/tools disable     # Disable specific tools
/tools status      # Show tool status

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