context-engineering

Solid

Context window monitoring and budget management. Keeps orchestrator at 15-30% context usage while subagents get full 200k tokens. Provides warnings at thresholds, context-aware summarization triggers, and wave-level budget planning.

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# context-engineering You are **context-engineering** - the skill that monitors and manages context window usage across GSD orchestration. Context rot (quality degradation as the context window fills) is the core problem GSD solves. This skill implements the monitoring and mitigation strategies. ## Overview The original GSD system includes a `gsd-context-monitor.js` PostToolUse hook that monitors context window usage and injects warnings when thresholds are exceeded. The key architectural principle is: - **Orchestrator**: Target 15-30% context usage. Stays lean by delegating to subagents. - **Subagents**: Get full 200k tokens of fresh context per spawn. - **Context budget**: Plan how much context each wave of execution will consume. This skill provides: - Context window usage estimation for the current session - Warning injection at configurable thresholds (70%, 85%, 95%) - Orchestrator budget enforcement - Subagent context allocation recommendations - Context-aware summarization triggers - Stale context detection and pruning suggestions - Wave-level context budget planning ## Capabilities ### 1. Context Usage Estimation Estimate current context window usage based on conversation history size: ``` Tokens used: ~45,000 / 200,000 Usage: 22.5% Status: HEALTHY Next threshold: 70% (warning) at ~140,000 tokens ``` Estimation methods: - Character count / 4 (rough approximation) - Tool output tracking (each tool call adds to context) - File read accu...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

context-window

Use when allocating context-window budget across system, skill-injection, working, and output zones; monitoring context health; deciding when to compact; preserving state before compaction; recovering after compaction; or choosing strategies for 1M, 200K, or 128K context windows. Covers zone budgets, practical model-budget tables, the 80% compaction rule, pre/post-compact protocols, persistence hierarchy, operation token costs, and token-reduction techniques. Do NOT use for deciding what information belongs in the working set (use `context-management`), prompt design (use `prompt-craft`), graph architecture (use `context-graph`), or memory curation.

0 Updated 6 days ago
jacob-balslev
AI & Automation Listed

context-window

Use when allocating context-window budget across system, skill-injection, working, and output zones; monitoring context health; deciding when to compact; preserving state before compaction; recovering after compaction; or choosing strategies for 1M, 200K, or 128K context windows. Covers zone budgets, practical model-budget tables, the 80% compaction rule, pre/post-compact protocols, persistence hierarchy, operation token costs, and token-reduction techniques. Do NOT use for deciding what information belongs in the working set (use `context-management`), prompt design (use `prompt-craft`), graph architecture (use `context-graph`), or memory curation.

0 Updated 6 days ago
jacob-balslev
AI & Automation Solid

context-fundamentals

This skill should be used when the user asks to "understand context", "explain context windows", "design agent architecture", "debug context issues", "optimize context usage", or discusses context components, attention mechanics, progressive disclosure, or context budgeting. Provides foundational understanding of context engineering for AI agent systems.

2,210 Updated 1 weeks ago
foryourhealth111-pixel
AI & Automation Listed

context-fundamentals

This skill should be used when the user asks to "understand context", "explain context windows", "design agent architecture", "debug context issues", "optimize context usage", or discusses context components, attention mechanics, progressive disclosure, or context budgeting. Provides foundational understanding of context engineering for AI agent systems.

335 Updated today
aiskillstore
AI & Automation Listed

context-fundamentals

This skill should be used when the user asks to "understand context", "explain context windows", "design agent architecture", "debug context issues", "optimize context usage", or discusses context components, attention mechanics, progressive disclosure, or context budgeting. Provides foundational understanding of context engineering for AI agent systems.

3 Updated today
Kalyanikhandare29