Documentation Index
Fetch the complete documentation index at: https://mintlify.com/antinomyhq/forge/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Forge provides powerful conversation management features that allow you to track, resume, analyze, and optimize your AI interactions. Each conversation maintains its own context, history, and state.Conversation Basics
Automatic Conversation Creation
By default, Forge creates a new conversation for each session:Explicit Conversation ID
You can specify a conversation ID to continue an existing conversation:Conversation Commands
List Conversations
View all conversations in the current workspace:- Conversation ID
- Title (generated from content)
- Last updated time
- Message count
- Token usage
Create New Conversation
Explicitly start a fresh conversation:Resume Conversation
Continue an existing conversation in interactive mode:- Loads the full conversation history
- Switches to interactive mode
- Allows you to continue the conversation naturally
Show Conversation
Display the last assistant message from a conversation:- Reviewing what was last discussed
- Getting quick reminders
- Extracting information from past conversations
Conversation Info
Get detailed information about a conversation:- Conversation metadata
- Creation and update timestamps
- Model used
- Configuration settings
- Related conversations
Conversation Statistics
View usage statistics for a conversation:- Total messages (user and assistant)
- Input tokens used
- Output tokens generated
- Total cost
- Cache performance (hits/misses)
Advanced Features
Dump Conversation
Export conversation data for archival or analysis:- All messages with full content
- Tool calls and results
- Metadata and timestamps
- Token usage per message
- Human-readable conversation view
- Syntax highlighting for code
- Formatted markdown rendering
Compact Conversation
Reduce token usage by compacting conversation history:- Summarizes older messages
- Preserves recent context
- Reduces token count
- Maintains conversation coherence
Clone Conversation
Create a copy of a conversation with a new ID:- Branching from a specific point
- Creating templates
- Experimenting with different approaches
- A/B testing prompts
Retry Last Message
Retry the last assistant turn without modifying context:- Keeps the same conversation context
- Generates a new response
- Useful when the previous response was incomplete or unsatisfactory
Delete Conversation
Permanently remove a conversation:Programmatic Usage
Generate Conversation ID
Generate a new conversation ID without creating a conversation:- Pre-allocate IDs for workflows
- Create ID references before starting
- Integrate with external systems
Run with Conversation ID
Start Forge with a specific conversation:Conversation Workflows
Long-Running Project Workflow
# Day 1
forge --conversation-id <id> "Implement phase 1 of the plan"
# Day 2
forge --conversation-id <id> "Continue with phase 2"
# Day 3
forge conversation show <id> # Review progress
forge --conversation-id <id> "Complete final phase"
Experimentation Workflow
# Clone for approach A
forge conversation clone abc123
# Returns: def456
forge --conversation-id def456 "Use REST architecture"
# Clone for approach B
forge conversation clone abc123
# Returns: ghi789
forge --conversation-id ghi789 "Use GraphQL architecture"
Cost Optimization Workflow
# If token count is high, compact
forge conversation dump <id> > backup.json
forge conversation compact <id>
Context Management
Understanding Context Windows
Forge automatically manages context:- Recent messages are always included
- Older messages are summarized when necessary
- Tool results are managed for relevance
- Context window adapts to model limits
Manual Context Control
Control context size through compaction:Context Preservation
Important context is preserved through:- Automatic summarization
- Smart message selection
- Tool result caching
- Conversation metadata
Integration with Other Features
With Sandboxes
With Custom Agents
With Data Processing
Configuration
Maximum Conversations
Control how many conversations are shown in lists:Conversation Storage
Conversations are stored in:- Local workspace:
.forge/conversations/ - User directory:
~/.config/forge/conversations/
- SQLite database for metadata
- JSON files for message history
Best Practices
Naming and Organization
While conversation IDs are auto-generated, you can organize through:- Consistent commit messages
- Clear initial prompts (used for title generation)
- Regular cleanup of unused conversations
When to Start New Conversations
Create a new conversation when:- Starting a completely different task
- Context from previous conversation isn’t relevant
- Token usage is too high
- You want to try a different approach
When to Continue Conversations
Resume an existing conversation when:- Building on previous work
- Context is still relevant
- Following a multi-step plan
- Iterating on a solution
Regular Maintenance
Troubleshooting
”Conversation not found”
Check that:- Conversation ID is correct
- You’re in the right workspace
- Conversation wasn’t deleted
High Token Usage
Reduce token consumption:Lost Conversation
Find conversations:Performance Optimization
Cache Usage
Forge uses caching to reduce costs:- Conversation metadata is cached
- Tool results are cached when applicable
- Model responses use prompt caching when available
Token Reduction Strategies
- Regular compaction: Compact long conversations
- Focused prompts: Be specific to reduce back-and-forth
- Tool usage: Let tools provide context instead of long explanations
- New conversations: Start fresh when context shifts