Manages context window state using pi-dcp tools and native compaction. Use after compaction events, at subtask boundaries, when context window is filling up, or when resuming prior work.
Ships in agent-meta. 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.
None: SKILL.md is the whole skill.
Manages context via the pi-dcp tools (dcp_prune, dcp_distill, dcp_compress) and pi's native compaction. No context-manager MCP is required.
Call at subtask boundaries, before expensive operations, or when 3+ key decisions have accumulated. Replaces verbose tool outputs with concise summaries that preserve key facts, paths, and evidence.
Call when a subtask is done. Removes tool outputs no longer needed (old file reads superseded by edits, resolved errors, redundant listings). Completed-subtask context is the #1 compaction target — be aggressive.
Call before /compact or at phase boundaries. Compresses a range of conversation (tool calls + messages) into a single summary, removing the originals.
pi's native compaction (settings.json: compaction.enabled, reserveTokens, keepRecentTokens) handles the window. dcp summaries persist through compaction. Read the active plan file (pi-plan-auto) for state — it is the canonical record across compaction events.
[PRESERVE] in your text output — these survive compaction.dcp_prune aggressively on completed-subtask outputs — the #1 compaction target.grep with specific patterns instead of full re-readdcp_distill the current state so it survives.dcp_compress a completed range, then continue. If still tight, let pi's native compaction run.Self-apply these output truncation rules based on context pressure:
| Output Type | OK (<65%) | ADVISORY (65-75%) | WARNING (75-85%) | CRITICAL (>85%) |
|---|---|---|---|---|
| File >100 lines | Full | Full | Error context + 30 lines | First 20 + last 10 |
| Command success | Full | Full | Exit code + key metrics | Exit code only |
| Command error | Full | Full | Full | Full (always keep) |
| Test results | Full | All failures + stacks | Pass/fail + first 3 failures | Pass/fail counts only |
| Build logs | Full | Full | Final 10 lines | Final 5 lines |
Apply proactively — do not wait to be asked.
When summarizing or preparing for compaction, apply this priority ordering:
Always keep:
[PRESERVE] or captured in the plan fileSafe to compress:
Never discard:
dcp_compress a completed range with aggressive scope to maximize reclamation before native compaction.What SKILL.md sets; muted values are Claude Code's defaults
/agent-meta:context-managementfrom agent-meta
npx claudepluginhub dxta/claude-code-skills --plugin agent-meta4 skills in this plugin
/find-skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill./skill-discoveryProactively find and load the skills a task needs. Run at the start of each new task, at each phase change (plan, implement, debug, review, done), and when a domain term appears that no visible skill covers. Searches the skill index cheaply; never loads the whole index./skill-evolutionAfter solving a non-trivial problem, detect generalizable learnings and propose skill updates so future interactions benefit automatically. Always active — applies to every interaction.Other plugins' skills for the same job