agent-acceptance-gate
Use when about to commit or push a diff that touches two or more locale variants of one file stem, adds catalog or listing…
Use when launching parallel or background subagents, or when a handoff, log, or result would be more than a short summary (roughly 2 KB). Caps return sizes (summary in the reply, detail by path), picks a cheap model tier for mechanical lanes, records durable decisions as
Claude Code
$ npx -y skills add WenyuChiou/agent-collab-skills --skill agent-context-budget --agent claude-code
Codex
$ npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget -a codex -y
Cursor
$ npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget -a cursor -y
Gemini CLI
$ npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget -a gemini-cli -y
GitHub Copilot
$ npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget -a github-copilot -y
OpenCode
$ npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget -a opencode -y
Windsurf
$ npx skills add WenyuChiou/agent-collab-skills --skill agent-context-budget -a windsurf -y
name: agent-context-budget description: Use when launching parallel or background subagents, or when a handoff, log, or result would be more than a short summary (roughly 2 KB). Caps return sizes (summary in the reply, detail by path), picks a cheap model tier for mechanical lanes, records durable decisions as proposals, and checkpoints or primes a fresh session before context runs out.
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.
checks run, risks, blockers. Long output goes to a file and the lane returns the path. Raw logs, transcripts, and full diffs never come back inline.
dumps. Name exact files and line ranges in the brief.
edits, scaffolds, bulk reads), a strong tier for review, verdicts, root-cause analysis, security, and governance. Never switch a lane's model silently after a failure.
then; do not poll.
of starting a fresh one.
Host mechanics (parallel calls, background runs, per-lane model, return schemas) are in [native lanes](../../docs/native-lanes.md).
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.
immutable `action` (operation, target_ref, summary, evidence_refs).
with no evidence refs stays pending.
rationale, affected action hash, and trusted-host HMAC authorization, lets a proposal be applied. Decline, timeout, and revise are not approval.
It never edits an existing event; a resolution, correction, or supersession is a new append-only event.
executors never receive the signing key.
Full schema and apply rules: [references/coord_memory_schema.md](references/coord_memory_schema.md).
Applies when `AGENT_COLLAB_POLICY` is configured, or a round spans sessions or tools, runs unattended, or must resume.
1. Validate:
agent-collab policy validate --policy <policy-ref> --json agent-collab checkpoint validate --checkpoint <checkpoint-ref> --json
2. Record the observed metrics in the checkpoint. Never estimate a lower number to fit the policy. 3. Before each child spawn and after each returned result, run:
agent-collab policy evaluate \ --policy <policy-ref> \ --checkpoint <checkpoint-ref> \ --json
4. Obey the decision:
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.
exhausted action still allows safe primary-agent diagnosis. 5. 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](references/harness-loop.md).
Outputs (scratch by default): `.coord/context_<NNN>.md` (shape in [references/harness-loop.md](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.
and the host's native limit wins.
繁體中文 · Public harness contract · Native lanes · 0.6 migration · 0.5 goal-slice migration · 0.4 migration Provider-neutral collaboration skills plus an optional, standard-library-first Python harness for bounded, resumable, human-authorized agent work.
Use when about to commit or push a diff that touches two or more locale variants of one file stem, adds catalog or listing…
Use when a consequential decision has two plausible, materially different options and you are about to pick one. Runs two opposed…
Use when a plan, prompt, or doc still names agent-output-reconciler. Since 0.6.0 reconciliation is step 1 of…
Use when a plan, prompt, or doc still names agent-plan-act-reflect. Deprecated in 0.6.0; ordinary iterate-until-it-passes work…
Use when a plan, prompt, or doc still names agent-shared-memory. Since 0.6.0 proposal-only coordination memory is the Durable…
Use when about to run two or more subagents, workflow lanes, or delegated CLI executors on one goal. Gives each lane a role, a…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.