principle-guard-the-context-window · git:20261013.058a348 · 2026-10-13 · sha256 6db84b7d5e67fb4e

principle-guard-the-context-window git:20261013.058a348A

Immutable. This exact content never changes and is served at /api/v1/blob/6db84b7d5e67fb4e.

---
name: principle-guard-the-context-window
description: "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."
user-invocable: false
---

# 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.