# Principle Guard The Context Window

Apply when context is filling up: large outputs, long files, repeated reads, fan-out...

- Repository: https://github.com/nightly-labs/openbot (4509 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nightly-labs/openbot --skill principle-guard-the-context-window -g -a claude-code -y`
Codex: `npx skills add nightly-labs/openbot --skill principle-guard-the-context-window -g -a codex -y`
Cursor: `npx skills add nightly-labs/openbot --skill principle-guard-the-context-window -g -a cursor -y`
Gemini CLI: `npx skills add nightly-labs/openbot --skill principle-guard-the-context-window -g -a gemini-cli -y`

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

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

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

