Your First Session
Let’s start your first Forge session. Make sure you’ve completed the installation first.Start Forge
Open your terminal and run:If this is your first time, Forge will guide you through provider setup:
Ask a question
Once in interactive mode, try asking about your project:Forge will analyze your current directory and provide detailed information.
Core Commands
Forge offers powerful CLI commands for various workflows:Common Workflows
Code Exploration
Understand your codebase quickly:- Analyze your project structure
- Identify authentication-related files
- Explain the authentication flow
- Show relationships between components
Feature Development
Implement new features with AI guidance:Debugging
Get help diagnosing and fixing issues:Code Review
Get instant feedback on code quality:- Readability: Clear naming, structure, comments
- Performance: Optimization opportunities
- Security: Potential vulnerabilities
- Maintainability: Code smells, refactoring suggestions
Working with Agents
Forge includes specialized agents for different tasks:- forge (Default)
- sage
- muse
The general-purpose coding agent. Best for:
- Code understanding and explanation
- Feature implementation
- Debugging and problem-solving
- Refactoring
Use
forge list agent to see all available agents and their descriptions.Configuration Basics
Set Your Preferred Model
Manage Providers
View Configuration
Conversation Management
Forge maintains conversation context across sessions:Continuing Conversations
Exporting Conversations
Conversation Operations
Slash Commands
While in interactive mode, use slash commands for quick actions:/model
Switch models mid-conversation
/agent
Switch to different agent
/help
Show available commands
/clear
Clear conversation history
Tips for Better Results
Be Specific
Be Specific
Provide context and details for better responses:Good: “Refactor the user authentication in auth.js to use async/await instead of promises”Too vague: “Fix the auth code”
Use Project Context
Use Project Context
Forge understands your project structure. Reference files and directories:
Iterate and Refine
Iterate and Refine
Don’t expect perfection on the first try. Iterate:
Use the Right Agent
Use the Right Agent
Different agents have different strengths:
- forge: Implementation and coding
- sage: Architecture and design
- muse: Brainstorming and exploration
Leverage Conversation History
Leverage Conversation History
Resume conversations to maintain context:This preserves all previous context and decisions.
Advanced Features
Once you’re comfortable with the basics, explore these advanced features:Semantic Search
Index your codebase for intelligent semantic search
Model Context Protocol
Integrate external tools and services via MCP
Custom Agents
Create specialized agents for your workflow
Custom Commands
Define reusable command shortcuts
Shell Integration
Transform natural language to shell commands
Configuration File
Deep customization with forge.yaml
Next Steps
Join the Community
Connect with other Forge users on Discord and share your experience!
Getting Help
Discord
Join our community
GitHub
Report issues and contribute
Documentation
Explore full documentation