Analyzes conversation context and recommends compression strategies like /clear + /catchup, archiving, or spawning subagents when bloated or token quota burns fast.
From conservenpx claudepluginhub athola/claude-night-market --plugin conserveThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Analyze current context usage and recommend optimal compression strategies.
compression-strategy:analyze-contextcompression-strategy:recommend-strategycompression-strategy:estimate-savingsanalyze-context)Run /context to check current usage. Then estimate:
recommend-strategy)Based on analysis, recommend one of:
/clear + /catchupBest when:
Process:
.claude/session-state.md/clear/catchup to reload active filesBest when:
Process:
Skill(conserve:clear-context) to spawn continuation agentBest when:
Process:
.claude/context-archive/Best when:
Process:
Task toolestimate-savings)For the recommended strategy, estimate:
| Strategy | Typical Savings | Risk |
|---|---|---|
| /clear + /catchup | 70-90% | Low if state saved |
| Continuation agent | 80-95% | Low, state preserved |
| Archive + summarize | 20-40% | Very low |
| Delegate to subagent | 30-50% | Low, parallel work |
Preserved context is saved to:
.claude/context-archive/pre-compact-YYYYMMDD-HHMMSS-SESSIONID.md
This is automatically created by the pre_compact_preserve hook before
any /compact operation.
/compression-strategy
Output:
Context Analysis:
- Current usage: 52%
- Tool output: ~15KB (3 tool results)
- Stale content: ~40% (decisions from 8+ turns ago)
Recommendation: Option C - Archive + Summarize
- Archive old decisions to context-archive
- Keep active files and recent decisions
- Estimated savings: 25-35%
Commands:
1. Read .claude/context-archive/ to see what's preserved
2. Summarize completed work
3. Continue with leaner context