Reduce always-loaded agent instruction weight while preserving every binding invariant through progressive disclosure and precise context pointers. Use when AGENTS.md, CLAUDE.md, repository rules, or skill descriptions have accumulated duplicated rationale or exceed an enforced context budget.
Resources
1Install
npx skillscat add tvproductions/gz-skills/gzs-agent-context-diet Install via the SkillsCat registry.
GovZero Agent Context Diet
Reduce per-turn context load without relaxing policy. The operation is a
delivery refactor: binding decisions remain reachable and generated surfaces
remain coherent.
Discovery and fallback
Prefer, in order:
- The repository's own context-budget check and the tool that owns mirror
regeneration. - A documented synchronization command, run after editing authored sources.
- Direct measurement of each always-loaded file in bytes and lines, with edits
confined to authored sources.
The third rung is the floor and needs only a file reader. Its limit is real and
must be stated rather than worked around: with no owning tool, generated
mirrors cannot be regenerated. Report them as unsynchronized and name the
command a maintainer must run. Never hand-edit a mirror to close the gap.
Workflow
Identify authored sources and generated mirrors before editing. Read the
repository's synchronization commands and context-budget checks.Measure each always-loaded surface by bytes and lines. Inventory every
binding rule, trigger pointer, repeated rationale, embedded example, and
duplicated command list.Classify content:
- keep immediate actions, hard guardrails, and frequently needed invariants
in the always-loaded file; - move conditional procedure and substantial rationale behind a one-line
pointer that names the exact condition for reading it; - remove duplicates, stale caches of discoverable configuration, and
instructions that add no behavior beyond the agent default; - preserve one authoritative home for each meaning.
- keep immediate actions, hard guardrails, and frequently needed invariants
Edit authored sources only. Regenerate mirrors through the repository's
owning tool.Verify every moved rule remains reachable through a discriminating pointer,
every relative link resolves, every generated mirror matches its source, and
no binding invariant disappeared or weakened.Rerun budget and repository documentation checks. Compare before and after
measurements and review the semantic diff, not only the byte reduction.
Evidence
Report authored and generated surfaces, bytes and lines before/after, content
moved or deleted by category, new pointers and their trigger conditions,
invariant-retention evidence, mirror validation, and unresolved budget pressure.