-
Notifications
You must be signed in to change notification settings - Fork 0
Command Reference
This page provides a comprehensive reference for all commands available in Coda's interactive mode.
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.,
/sfor/session)
Display available commands and their descriptions.
/helpExit the Coda interactive session.
/exit
# or
/quitClear the current conversation history.
/clearSwitch 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
Manage conversation sessions. See Session Management for detailed documentation.
/session save [name]
/s save "Project Discussion"/session load <name|id>
/s load "Project Discussion"
/s load abc123/session last/session list
/s ls/session branch [name]
/s b "Alternative Approach"/session delete <name|id>
/s rm abc123/session info [name|id]
/s i/session search <query>
/session search "python decorators"/session rename [id] <new_name>
/session rename "Better Name"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 HTMLAliases: /e, markdown → md, txt → text
Files are saved to: ~/Documents/coda_exports/
Switch to a different AI provider during the session.
/provider openai
/provider ollama
/provider oci_genai
/provider anthropicAliases: /p
Switch to a different model within the current provider.
/model gpt-4
/model llama3.1
/model claude-3-opus-20240229Manage Coda configuration.
/config show # Display current configuration
/config edit # Open configuration in editor
/config reload # Reload configuration from fileChange the color theme.
/theme default
/theme monokai
/theme solarized
/theme minimalToggle debug mode for verbose output.
/debug on
/debug off
/debugShow session statistics including token usage and costs.
/statsManage Model Context Protocol (MCP) tools.
/tools list # List available tools
/tools enable # Enable specific tools
/tools disable # Disable specific tools
/tools status # Show tool statusMost commands have shorter aliases:
-
/session→/s -
/export→/e -
/mode→/m -
/provider→/p
Coda supports tab completion for:
- Command names
- Subcommands
- File paths
- Session names (coming soon)
- Use ↑/↓ arrow keys to navigate command history
- History is persisted between sessions
- Search history with Ctrl+R
Commands and arguments support partial matching:
/ses sav "My Session" # Matches /session save
/exp md # Matches /export markdownSome commands can be chained for efficiency:
# Save and exit
/session save "Final Version" && /exitIf a command fails, Coda will:
- Display a clear error message
- Suggest the correct syntax
- Offer similar commands if there's a typo
Example:
Unknown command: /sesion
Did you mean: /session?
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
- Getting Started - Basic Coda usage
- Session Management - Detailed session features
- AI Modes - Understanding AI personalities
- Configuration - Advanced configuration options