From polis
Use throughout any coding session to keep the orchestrator's context window lean and protect model accuracy. Activates when context grows, when the Polis monitor reports WARNING/HIGH/CRITICAL, when deciding whether to spawn a subagent vs. work inline, and when deciding to pause. Governs the <40% orchestrator budget rule, the auto-compact reserve, and the pause/resume reflex.
How this skill is triggered — by the user, by Claude, or both
Slash command
/polis:context-mgmtThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context is the scarcest resource in an agent session. As the window fills,
Context is the scarcest resource in an agent session. As the window fills, model accuracy degrades — not gracefully, but noticeably. Polis treats context as a budget to be spent deliberately, not a container to be filled until it overflows.
The main session (the "orchestrator") coordinates work. It should not do the heavy lifting of reading large files, running long test suites, or writing big chunks of code directly. That work belongs in subagents with fresh context.
Why 40%? Around ~40% of the usable window, model accuracy on long, precise tasks starts to suffer. Polis keeps the orchestrator under 40% so there's headroom for clear thinking and clean handoffs, and the first WARNING fires exactly when that ceiling is crossed. When you notice the orchestrator approaching that line, the answer is almost never "push through" — it's "delegate to a subagent" or "pause and compact."
Claude Code reserves roughly 16.5% of the window for auto-compact. Polis reports the percentage of the usable remainder (~83.5%), so a Polis reading of "40%" means 40% of the working budget, not 40% of the raw window. This is intentional: the thresholds should track real headroom.
Polis reads the real context usage from the runtime (Claude Code exposes it directly — see references/context-budget.md), so the numbers are ground truth, not a guess. It reports a threshold:
/polis:pause-work, then /compact (or a
fresh session), then /polis:resume-work.The thresholds are judged on the raw used% — the same figure /context
shows — so CRITICAL fires when you'd actually expect it. The statusline bar may
color up slightly earlier because it renders the normalized value, which is an
intentional early nudge toward action. Trust the CRITICAL; treat the bar's color
as a lean-early prompt.
Claude Code reports usage directly. On a runtime or hook context that doesn't (some Cursor/Codex paths), the monitor stays silent rather than fabricating a number — so fall back to judgment: if you've read several large files, run a big test suite, or had a long back-and-forth, assume you're higher than it looks and lean toward delegating or pausing.
npx claudepluginhub ilry-polis/polis --plugin polisGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.