What is Interactive Mode?
Forge’s interactive mode is a powerful terminal interface that allows you to interact with AI agents through natural language and commands. When you runforge without arguments, you enter interactive mode where you can:
- Chat with AI agents using natural language
- Execute slash commands for system operations
- Run shell commands directly with the
!prefix - Switch between different AI agents and models
- Manage conversations and view usage statistics
Types of Input
Forge supports three types of input in interactive mode:1. Natural Language Messages
Any text that doesn’t start with/ or ! is treated as a message to the AI agent:
2. Slash Commands
Commands that start with/ are system commands that control Forge’s behavior:
3. Shell Commands
Commands that start with! are executed directly in your shell:
Agent Modes
Forge includes several built-in agents, each optimized for different tasks:Forge Agent (/forge or /act)
Implementation mode - Makes code changes and executes operations:
Muse Agent (/muse or /plan)
Planning mode - Analyzes and plans without making changes:
Sage Agent (/sage)
Research mode - Systematic codebase exploration and analysis:
Help Agent (/help)
Tool assistance - Answers questions about Forge itself:
Interactive Features
Tab Completion
PressTab to autocomplete commands, file paths, and agent names. If multiple options are available, a completion menu will appear.
Command History
Forge maintains a history of your commands:- Press
Ctrl+Rto search through command history - Use arrow keys to navigate through previous commands
- History is stored in your system config directory
Multi-line Input
PressAlt+Enter to insert a newline without submitting:
Context Management
Forge automatically manages conversation context:- Use
/compactto compress context when approaching limits - Use
/newto start fresh while preserving history - Use
/conversationto switch between conversations
Custom Commands
You can define custom commands in yourforge.yaml file:
Agent Commands
When you have custom agents configured, Forge automatically generates commands for switching to them:/agent to interactively select from available agents.
Workflow Commands
Workflow commands defined in your workflow configuration appear with a ⚙ prefix:Next Steps
- Slash Commands Reference - Complete list of all slash commands
- Keyboard Shortcuts - Keyboard shortcuts for efficient navigation