context-budget-discipline

Manage token budgets with SELECT, WRITE, COMPRESS, and ISOLATE operations.

14|Updated May 28, 2026
One-click install
npx skills add https://github.com/Redtropig/harness-anchor --skill context-budget-discipline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-budget-discipline
Source: https://github.com/Redtropig/harness-anchor/tree/main/skills/context-budget-discipline
Command: npx skills add https://github.com/Redtropig/harness-anchor --skill context-budget-discipline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context budgets in long-running sessions can swell, causing token inefficiency and cognitive drift. This skill enforces four disciplined operations to manage context: SELECT, WRITE, COMPRESS, and ISOLATE.

Core Features & Use Cases

  • SELECT: load context just-in-time to avoid reading everything.
  • WRITE: persist decisions and rationale to disk for durable handoffs.
  • COMPASS? -> no, it's COMPRESS: summarize older turns when the window tightens.
  • ISOLATE: delegate sub-work to child agents in fresh context to prevent contamination.

Quick Start

Instruct the agent to apply context-budget discipline during a long session by enabling just-in-time reads and persistent handoff writes.

Frequently Asked Questions about context-budget-discipline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage token budget in long-running AI sessions?

To manage context budget in long-running AI sessions, use four operations: SELECT to load context just-in-time, WRITE to persist decisions for durable handoffs, COMPRESS to summarize older turns, and ISOLATE to delegate sub-work to fresh subagents, preventing token inefficiency and context bleed.

Why does my agent lose track of decisions in long sessions?

Agents lose decisions in long sessions because context windows shift and drop earlier rationale. Persisting decisions and rationale to disk for durable handoffs ensures that critical context survives token compression and can be reloaded just-in-time when needed.

What is the best way to prevent context bleed between sub-tasks?

The best way to prevent context bleed between sub-tasks is to isolate them by delegating sub-work to child agents in fresh context windows. This ISOLATE operation prevents contamination from unrelated context, keeping sub-tasks focused and reliable.

How do I handle large files without exceeding the context window?

To handle large files without exceeding the context window, apply just-in-time reads by selectively loading context only when needed. This SELECT operation avoids reading everything at once, preserving the token budget for long-running sessions spanning many features.

When should I summarize older turns in a long AI session?

You should summarize older turns when the context window tightens and token inefficiency threatens session reliability. The COMPRESS operation summarizes older turns to free up context budget while retaining essential information for ongoing work.

Can I maintain context budget across sessions that span many features?

Yes, you can maintain context budget across sessions spanning many features by selectively loading context, persisting decisions, and isolating sub-tasks. This approach enables durable handoffs and fresh-context subagents to prevent context bleed under token constraints.