agent-context-budget

agent-context-budget is a skill for Claude Code from WenyuChiou/agent-collab-skills. It costs 38 tokens per session (1,022 once invoked), scanned A, original, MIT.

A context and task-size manager for work split across multiple coding agents or sessions. It keeps shared coordination files as the main record and passes agents compact summaries instead of all logs and memory.

In plain words
What is it for?
Use it when several agents are working together, when a task continues across sessions, or when Codex, Gemini, or Claude runs produce large plans, logs, or summaries.
Why use it?
It helps prevent context limits, oversized handoffs, noisy logs, and growing session memory from making multi-agent work harder to continue.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-collab-workspace plugin — 7 skills shipped together

Good fit Use it when several agents are working together, when a task continues across sessions, or when Codex, Gemini, or Claude runs produce large plans, logs, or summaries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wenyuchiou/agent-collab-skills/agent-context-budget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget
Clone the repo
git clone --depth 1 https://github.com/WenyuChiou/agent-collab-skills

Made for: Claude Code.

Or install agent-collab-workspace, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-context-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/wenyuchiou/agent-collab-skills/agent-context-budget/github.svg)](https://agentmods.dev/skills/wenyuchiou/agent-collab-skills/agent-context-budget)
Your own site
<a href="https://agentmods.dev/skills/wenyuchiou/agent-collab-skills/agent-context-budget"><img src="https://agentmods.dev/badge/skills/wenyuchiou/agent-collab-skills/agent-context-budget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-context-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/wenyuchiou/agent-collab-skills/agent-context-budget"><img src="https://agentmods.dev/badge/skills/wenyuchiou/agent-collab-skills/agent-context-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 56
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01022
Opus 5 $0.00019 $0.00511
Sonnet 5 $0.00008 $0.00204
Haiku 4.5 $0.00004 $0.00102

Measured 6d ago against content hash f879e133aaf4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

agent-context-budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-context-budget/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

agent-context-budget

Prepare bounded context for a task without inventing a second budget source. Numeric limits come from the policy referenced by the current TaskCheckpoint. The public contract and commands are documented in ../../docs/public-harness-contract.md.

Use this skill for

  • A task that may spawn a delegated executor or reviewer.
  • A transcript approaching its configured checkpoint boundary.
  • A fresh session that needs a compact, evidence-linked primer.
  • Results or logs that are too large for the primary-agent context.

Do not use it to summarize away unresolved failures, human decisions, raw scientific evidence, or security findings.

Inputs

  • Goal and task id.
  • Readable agent policy.
  • Current TaskCheckpoint.
  • Evidence and artifact paths needed by the next role.
  • Optional existing .coord/plan.yml and approved memory events.

If the policy is configured but unreadable, stop. If the optional agent-collab-harness package is unavailable, do not start an autonomous loop or child spawn; prepare the packet for human-controlled execution instead.

Workflow

  1. Validate policy and checkpoint:

    agent-collab policy validate --policy <policy-ref> --json
    agent-collab checkpoint validate --checkpoint <checkpoint-ref> --json
    
  2. Record current observed metrics in the checkpoint. Do not estimate a lower number to fit the policy.

  3. Run policy evaluation before a child spawn:

    agent-collab policy evaluate \
      --policy <policy-ref> \
      --checkpoint <checkpoint-ref> \
      --json
    
  4. Obey the result:

    • continue and spawn_allowed=true: create the bounded task packet.
    • checkpoint: write a checkpoint/primer. A v2 slice with auto_continue advances atomically and resumes under the same goal; v1 returns control. For v2 scope=action with context_compaction_required, perform local context maintenance without asking for renewed approval: preserve full artifacts, acceptance evidence, failures, and authorization; build a smaller linked packet or use native compaction, record measured sizes, then re-evaluate. Do not spawn or advance a slice while this context gate is pending.
    • stop or spawn_allowed=false: do not spawn. Respect v2 decision scope; exhaustion of one action does not prohibit safe primary-agent diagnosis.
  5. Put only decision-relevant material in the packet:

    • goal and acceptance contract
    • explicit files and tools in scope
    • direct evidence references
    • current recorded human decisions
    • relevant interfaces or schemas
  6. Keep raw logs and complete artifacts at paths. Include a short failure excerpt only when it is needed to diagnose the next action.

  7. After a result returns, update observed metrics and evaluate again.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +14 lines f879e133aaf4
  2. 7d ago Changed · -74 lines · +3 tokens per session 03c2af2e6dac
  3. 11d ago First seen · 190 lines · 35 tokens per session scan A 864e1deee593

Subscribe to this mod's changes

agent-context-budget is a skill published in the GitHub repository WenyuChiou/agent-collab-skills (26 stars, last pushed 6d ago), licensed MIT. It adds 38 tokens to every session and 1,022 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

material-organizer

Organize only the materials the user has already provided or explicitly pointed to. The job is to make messy inputs easier to scan, reuse, archive, or continue from later while preserving source traceability.

Orkas-AI/Orkas · 3 tokens

domain

When you want to brainstorm and check available .com domains for a new project — brand naming, aftermarket pricing (HugeDomains / Afternic / Sedo / Dan), USPTO trademark screening, and social handle availability. Built on Laura Roeder's "work backwards from availability, not from a name you fell in love with"…

coreyhaines31/makerskills · 232 tokens

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so Claude can answer questions on your team's behalf. Team-scope sibling to second-brain (which is personal-scope). Seven modes — capture (drop something into the right structured dir), compile (process into wiki…

coreyhaines31/makerskills · 322 tokens

slide-deck

When you want to draft, update, convert, or export a slide deck for a React/Next.js slide system (${SLIDEDECKREPO:-$HOME/code/your-slide-deck-site}/src/app/slides/). Writes TypeScript Slide[] arrays using your primitives (Eyebrow, Heading, Accent, Body, BulletList, Divider, TwoCol, GradientText), 12 cycling brand…

coreyhaines31/makerskills · 259 tokens

google-calendar

Interact with Google Calendar - list calendars, view events, create/update/delete events, and find free time. Use when user asks to: check calendar, schedule a meeting, create an event, find available time, list upcoming events, delete or update a calendar event, or respond to meeting invitations. Lightweight…

sanjay3290/ai-skills · 76 tokens

service-desk

Runs the IT service desk — intake, triage, prioritization, escalation, knowledge, and the metrics that improve service rather than distort it. Use this to set up or fix a service desk, design ticket priority and escalation, reduce repeat contacts, structure a knowledge base, or work out why a desk hitting its targets…

cbrock84/headcount · 73 tokens