Guard the Context Window
Why: Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.
Pattern:
- Size phases and cap scope. Limit files per phase, set turn budgets, account for mechanism costs.
Principle guard the context window is an AI agent skill from the GitHub repository jiangkoumo/pi-pstack. Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents; keep summaries in the main thread, not raw payloads.
.claude/skills/principle-guard-the-context-window/SKILL.md.cursor/rules/principle-guard-the-context-window.md.agents/skills/principle-guard-the-context-window/SKILL.mdWhy: Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.
Pattern: