/agent-collab-workspace:agent-context-budgetfrom agent-collab-workspace
Manages context budget when launching parallel subagents or handling large handoffs. Caps return sizes, picks cheap model tiers for mechanical work, records durable decisions as proposals, and checkpoints before context runs out.
Ships in agent-collab-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Keep the primary session small while lanes do the reading and writing. There
is no second budget source: native mode follows the host's limits and the caps
written into each brief; harness mode takes every number from the policy
referenced by the current TaskCheckpoint. The "roughly 2 KB" in the
description says when to use this skill; it is not a limit.
Do not use this skill to summarize away unresolved failures, human decisions, raw scientific evidence, or security findings.
file:line references, not file
dumps. Name exact files and line ranges in the brief.Host mechanics (parallel calls, background runs, per-lane model, return schemas) are in native lanes.
Only decision-relevant material:
Keep raw logs and complete artifacts at their paths. Include a short failure excerpt only when the next action needs it.
Write a fresh-session primer: goal, current state, decisions and who made them, open questions, evidence paths, next step. Keep unresolved failures, human decisions, and security findings visible. Compaction changes the active context, not cumulative usage or failure history.
Memory output is proposal-only. Repository state, current evidence, and
recorded human decisions outrank memory; recall systems are optional caches.
Native mode may write a proposal file and nothing else under .coord/;
applying an approved proposal needs the signed approval of harness mode.
.coord/memory-proposals/<proposal-id>.json with an
immutable action (operation, target_ref, summary, evidence_refs).target_ref. A proposal
with no evidence refs stays pending..coord/memory.yml.
It never edits an existing event; a resolution, correction, or
supersession is a new append-only event.Full schema and apply rules: references/coord_memory_schema.md.
Applies when AGENT_COLLAB_POLICY is configured, or a round spans sessions or
tools, runs unattended, or must resume.
Validate:
agent-collab policy validate --policy <policy-ref> --json
agent-collab checkpoint validate --checkpoint <checkpoint-ref> --json
Record the observed metrics in the checkpoint. Never estimate a lower number to fit the policy.
Before each child spawn and after each returned result, run:
agent-collab policy evaluate \
--policy <policy-ref> \
--checkpoint <checkpoint-ref> \
--json
Obey the decision:
continue with spawn_allowed=true: build the bounded packet.checkpoint: write the checkpoint and primer. A v2 slice with
auto_continue advances atomically under the same goal; v1 returns
control. For a v2 action-scope context_compaction_required, do local
context maintenance without asking for renewed approval: keep full
artifacts, acceptance evidence, failures, and authorization; build a
smaller linked packet or use native compaction; record measured sizes;
re-evaluate. Do not spawn or advance a slice while this gate is pending.stop or spawn_allowed=false: do not spawn. Respect the v2 scope; an
exhausted action still allows safe primary-agent diagnosis.A configured but unreadable policy stops the run. If the harness package is unavailable, do not start an autonomous loop; prepare packets for human-controlled execution instead.
Multi-cycle loop rules (retry counting, failure identity, no-progress cycles) are in references/harness-loop.md.
Outputs (scratch by default): .coord/context_<NNN>.md (shape in
references/harness-loop.md),
.coord/session_primer.md, and the updated checkpoint. Promote a checkpoint
snapshot only when the repository needs it for resume, shipping, or
acceptance evidence. Agent boundaries do not imply commits.
null result remains non-success.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wenyuchiou/agent-collab-skills --plugin agent-collab-workspace7 skills in this plugin
/agent-acceptance-gateUse when about to commit or push a diff that touches two or more locale variants of one file stem, adds catalog or listing entries, states benchmark numbers, release dates, or licenses for named frontier models, or merges output from any subagent or delegate. Reconciles the lane results, runs the matching preset, and returns PASS, CONDITIONAL PASS, or FAIL with evidence./agent-debateUse when a consequential decision has two plausible, materially different options and you are about to pick one. Runs two opposed reviewers on the same evidence with a stated round cap, then hands the human a synthesis that names the deciding evidence./agent-output-reconcilerOther plugins' skills for the same job