Context Management
FreshManage AI context windows effectively to maintain conversation quality.
Context Warnings
| Level | Threshold | Action |
|---|---|---|
| Yellow | 60% (configurable) | Consider compacting |
| Red | 80% (configurable) | Compact immediately |
Configure thresholds in Settings → Display.
Compact and Continue
Triggers when: context >= 25%, OR conversation >= 2,000 tokens, OR >= 8 meaningful messages.
Progress indicator: "Summarizing chunk 1/4..." → "Consolidation pass 1/3..." → "Finalizing..."
Up to 3 consolidation passes if the result is still over 40k tokens.
Tab Menu Actions
Hover any tab for the context menu:
| Action | Description |
|---|---|
| Copy Session ID | Get the unique session identifier |
| Star Session | Pin for quick access |
| Rename Tab | Custom name for organization |
| Mark as Unread | Flag for later review |
| Export as HTML | Themed export with metadata |
| Context: Copy | Copy full context to clipboard |
| Context: Compact | Trigger manual compaction |
| Context: Merge Into | Combine with another session |
| Context: Send to Agent | Transfer to a different provider |
| Context: Publish as Gist | Share via GitHub Gist (requires gh) |
Close operations: Close, Close Others, Close Left, Close Right. All respect Unread Filter. Up to 25 recently closed tabs restorable with Ctrl+Shift+T.
Merge Sessions
Combine context from multiple sessions/tabs:
- Shows token estimate before merging
- "Clean context" option removes duplicates and reduces size
- Works within same agent or across different agents
Send to Another Agent
Transfer context between different AI providers (e.g., Claude Code → Codex). Context cleaning enabled by default for verbatim transfers.
Best Practice
Compact before reaching 70% context — don't wait for the red warning. Use session tabs to separate distinct conversations.
See Also
- UI Layout — Tab management
- Context Transfer Workflow — End-to-end transfer guide