Context Usage Estimation Command
Analyzes current session context usage and provides optimization recommendations for efficiency.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Action Steps:
MANDATORY: Execute Built-in /context Command First
/context COMMAND DIRECTLY - Use Claude Code's built-in context analysis/context output (not estimated)/context command output/context command dataAction Steps: Pattern Recognition & Optimization Detection
Action Steps: Tailored Optimization Guidance
Action Steps:
Action Steps:
MANDATORY: Execute /context Command First
/context COMMAND - Get actual context data from Claude Code CLI/context output - Extract real token counts, percentages, breakdowns/context command data/context output/contextAction Steps: Strategic Analysis Based on Phase 1 Results
Action Steps: Actionable Recommendations Delivery
Action Steps:
When /contexte is invoked, MUST EXECUTE ALL THREE PHASES SEQUENTIALLY:
Action Steps:
๐ฏ EXECUTE BUILT-IN `/context` COMMAND:
1. ALWAYS call `/context` command first to get actual data
2. Extract real token counts from `/context` output
3. Parse actual breakdown (Messages, MCP tools, Memory files, etc.)
4. Use real percentages and usage metrics from `/context`
5. Never estimate or calculate - only use `/context` command data
6. Display actual context status based on `/context` output
Action Steps:
Analyze Phase 1 results for optimization opportunities:
1. Identify specific context-heavy operations from session
2. Suggest context-efficient alternatives for current patterns
3. Recommend Serena MCP opportunities where applicable
4. Provide strategic checkpoint guidance based on usage
5. Offer workflow improvement suggestions tailored to session
Action Steps:
Deliver immediate actionable advice:
1. Specific optimization actions for current session
2. Tool selection hierarchy improvements
3. Session management strategies
4. Future workflow enhancements
5. Next steps for context efficiency
Usage: /contexte or /con
Purpose: First run context estimation, then provide comprehensive analysis with optimization recommendations for Claude Code CLI conversations.
CRITICAL: This command uses Universal Composition - it MUST call the built-in /context command first to get actual data, then provide strategic analysis based on that real data.
โ NEVER estimate context usage
โ
ALWAYS call /context command first
โ
ALWAYS use actual data from /context output
Execution Method: Three-phase sequential analysis workflow
๐ CONTEXT USAGE ESTIMATION
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐น Estimated Tokens Used: ~15,400 / 500,000 (3.1%)
๐น Session Complexity: Medium (Score: 34/100)
๐น Tools Used: 8 operations (4 types)
๐น Context Status: โ
HEALTHY
๐ก Quick Tip: Consider /checkpoint if planning complex analysis
/contexte # Execute all three phases: Context Estimation โ Strategic Analysis โ Actionable Recommendations
/con # Alias for /contexte