Command Reference - djvolz/coda-code-assistant GitHub Wiki
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 # 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 listAliases: /t
Toggle debug mode for verbose output.
/debug on
/debug off
/debugShow session statistics including token usage and costs.
/statsManage 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 toolsExample 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 categoriesAvailable 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)
Manage agent mode for tool-assisted conversations.
/agent on # Enable agent mode with tools
/agent off # Disable agent mode
/agent status # Check agent mode statusWhen agent mode is enabled, the AI can automatically use tools to help answer your questions and perform tasks.
Most 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