Core Commands
Conversation Management
/new (alias: n)
Start a new conversation while preserving history.
/conversation.
/conversation or /conversations (alias: c)
List and switch between all conversations for the active workspace.
/compact
Compact the conversation context to reduce token usage.
Agent Switching
/forge or /act
Switch to Forge agent (implementation mode) with code changes enabled.
/muse or /plan
Switch to Muse agent (planning mode) without code changes.
/sage
Switch to Sage agent for systematic codebase exploration and analysis.
/help
Switch to Help agent for questions about Forge itself.
/agent (alias: a)
Interactively select and switch between available agents.
Configuration
/model (alias: m)
Switch to a different AI model.
/provider (alias: p)
Switch to a different AI provider.
/login
Configure provider credentials interactively.
/logout
Remove provider credentials.
Information Commands
/info (alias: i)
Display system and session information.
/env (alias: e)
Display environment configuration.
/usage
Display usage statistics including tokens and requests.
/tools (alias: t)
List all available tools with descriptions and schema.
Git Operations
/commit
Generate an AI commit message and commit changes.
Forge analyzes your git diff to generate contextual commit messages. Make sure you have changes staged with
git add before using this command./retry (alias: r)
Retry the last command without modifying context.
Export and Debugging
/dump (alias: d)
Save the current conversation to a file.
JSON format (default):
Workspace Management
/index
Index the current workspace for semantic code search.
Application Control
/update
Update Forge to the latest compatible version.
/exit
Exit Forge and return to your shell.
Ctrl+D to exit.
Shell Commands
Commands starting with! are executed directly in your shell:
Shell commands run in your current working directory and have access to your full shell environment.
Custom Commands
Custom commands can be defined in yourforge.yaml:
Agent Commands
When you configure custom agents, Forge generates commands automatically:Workflow Commands
Workflow commands appear with the β prefix:Command Aliases
Many commands have shorter aliases for faster typing:| Command | Alias |
|---|---|
/new | n |
/info | i |
/env | e |
/model | m |
/provider | p |
/conversation | c |
/tools | t |
/dump | d |
/retry | r |
/agent | a |
Command Completion
PressTab after typing / to see all available commands with descriptions. The completion menu shows:
- Built-in system commands
- Custom commands from
forge.yaml - Agent switching commands
- Workflow commands
Tips
- Use
/infoto check your current configuration before making changes - Use
/compactwhen you see warnings about context length - Combine shell commands with natural language: run
!npm testthen ask βwhat failed?β - Use
/dump htmlto save important conversations for documentation - Set up custom commands for frequently used prompts
Next Steps
- Keyboard Shortcuts - Learn keyboard shortcuts for efficiency
- Overview - Understand interactive mode concepts