Skip to content

Context Management

Fresh

Manage AI context windows effectively to maintain conversation quality.

Context Warnings

LevelThresholdAction
Yellow60% (configurable)Consider compacting
Red80% (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:

ActionDescription
Copy Session IDGet the unique session identifier
Star SessionPin for quick access
Rename TabCustom name for organization
Mark as UnreadFlag for later review
Export as HTMLThemed export with metadata
Context: CopyCopy full context to clipboard
Context: CompactTrigger manual compaction
Context: Merge IntoCombine with another session
Context: Send to AgentTransfer to a different provider
Context: Publish as GistShare 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

Built with VitePress + RAG Chat