Skip to content
FunCoding

context-budget

Keep the agent's context lean so accuracy doesn't collapse. Use on long sessions, big files, or when the agent starts hallucinating.

Star
759
License
MIT
Last commit
Jul 15, 2026

skills/context-budget/SKILL.md

View on GitHub

Context Budget

More context is not better. Past a threshold, accuracy falls off a cliff (context rot).

  • Don't dump whole files — read the relevant function/section, not the 2000-line module.
  • Summarize, don't accumulate — replace a 200K-token transcript with a 4K recap of the load-bearing facts.
  • Drop dead context — once a sub-task is done, its detail leaves the window. Keep the decision, drop the trace.
  • State on disk, not in context — progress goes to a file the next turn re-reads, not into an ever-growing prompt. A bloated standing context (CLAUDE.md) taxes every single turn. Trim weekly. If the agent is confidently wrong, suspect the context before the model.

Similar Skills

ask-matt

MAmattpocock/skills336k4,217 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills336k4,217 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills336k4,217 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k5,030 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

agent-eval

AFaffaan-m/ECC314k3,503 new stars in the last 7 days