/conserve:context-optimizationfrom conserve
Optimizes context window usage via MECW principles and memory tiering. Activates when context exceeds 30% or before complex multi-step tasks to manage token budgets and coordinate subagent workflows.
Ships in conserve. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
def select_optimal_modules(context_situation, task_complexity):
if context_situation == "CRITICAL":
return ["mecw-assessment", "subagent-coordination"]
elif task_complexity == "high":
return ["mecw-principles", "subagent-coordination"]
else:
return ["mecw-assessment"]
| Utilization | Status | Action |
|---|---|---|
| < 30% | LOW | Continue normally |
| 30-50% | MODERATE | Monitor, apply principles |
| > 50% | CRITICAL | Immediate optimization required |
Behavior Change: Large bash command and tool outputs are saved to disk instead of being truncated, and file references are provided for access.
| Scenario | Before 2.1.2 | After 2.1.2 |
|---|---|---|
| Large test output | Truncated, partial data | Full output via file reference |
| Verbose build logs | Lost after 30K chars | Complete, accessible on-demand |
| Context pressure | Less from truncation | Same - only loaded when read |
head, tail, or grep on file references.modules/mecw-principles.md for core concepts, the 50% rule, and quick-start code examples.modules/mecw-assessment.md for risk identification.modules/subagent-coordination.md for decomposition patterns.modules/context-waiting.md for deferred loading strategies.modules/cache-aligned-prefixes.md for ordering context so provider KV caches hit (stable prefix first, volatile last).modules/compression-strategies.md to pick one
of /clear and /catchup, a continuation agent, archive and summarize, or
delegation, with savings and risk.modules/reversible-compression.md for
archiving an oversized output to a retrievable handle.modules/log-debugging-hygiene.md for filtering a log
before any compression. /filter-log anchors on it.If context usage remains high after optimization, check for large files that were read entirely rather than selectively. If MECW assessments fail, ensure that your environment provides accurate token count metadata. For permission errors when writing output logs to /tmp, verify that the project's temporary directory is writable.
modules/cache-aligned-prefixes.md (stable first, volatile last)modules/belief-clarity.md (opens in a new tab)modules/cache-aligned-prefixes.md (opens in a new tab)modules/compression-strategies.md (opens in a new tab)modules/context-waiting.md (opens in a new tab)modules/findings-format.md (opens in a new tab)modules/log-debugging-hygiene.md (opens in a new tab)modules/mecw-assessment.md (opens in a new tab)modules/mecw-principles.md (opens in a new tab)modules/memory-tiers.md (opens in a new tab)modules/reversible-compression.md (opens in a new tab)modules/session-routing.md (opens in a new tab)modules/subagent-coordination.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/action-first-outputShapes turns action-first: action leads, steps numbered, state restated. Use for ADHD-friendly output. Do not use to trim tokens; use response-compression./agent-expenditureTracks per-agent token usage and flags waste in parallel dispatch. Use when evaluating parallel agent efficiency or after a multi-agent run./bloat-detectorDetects codebase bloat via dead code, duplication, complexity, and doc bloat scans. Use when codebase feels large or before a release./clear-contextManages context overflow by handing off to a fresh subagent at 80% usage. Use when context pressure is critical and work must continue uninterrupted./code-quality-principlesApplies KISS, YAGNI, and SOLID principles for clean code with reduced complexity. Use when refactoring or reviewing code for over-engineering./cpu-gpu-performanceEstablishes CPU/GPU baselines before resource-intensive operations. Use before builds, training runs, or any task that pins cores or GPUs for over a minute.npx claudepluginhub athola/claude-night-market --plugin conserveOther plugins' skills for the same job