目标驱动工作者委派与协调
coordinate-work
委派独立的目标驱动型工作者,审查其成果,并通过 Unified 经过认证的协调控制来解决真正的阻塞点。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 5
01 前言 Front Matter
- name
- coordinate-work
- description
- Commission independent goal-driven workers, review their results, and resolve real blockers through Unified's authenticated coordination controls.
02 资源文件 1
- 参考文档references/protocol.md33.4 KB
03 SKILL.md 正文
Coordinate work
Use one manager for many independent workers when the objective permits. The manager chooses priorities, assigns deliverables, reviews results and integrates accepted changes. Each worker owns implementation, ordinary corrections, focused isolated validation and a reviewable result or PR. A higher-level manager can coordinate other managers in the same way. Do not impose a one-worker-at-a-time pattern or create another status board simply to manage the existing tasks.
Start with current facts
Use app_control to discover only the action prefixes needed for the next
operation. Follow nextOffset and, when present, schemaRead/nextSchemaOffset
to obtain the complete schema. Retain it during this task; do not repeatedly
list every action. Never emulate missing capabilities by editing host databases.
Read coordination.context once for the current root and task intent. Follow
assignment.briefRef for the current member summary before reading individual
histories. Read an exact result or artifact for a decision; load history only
when it answers a specific unresolved question. A brief or old scratch note is
not current acceptance evidence or new authority.
Commission useful independent deliverables
- Break the objective into enough independent tasks to make useful progress in parallel. Give each worker the deliverable, acceptance criteria, scope, dependencies, existing authority and result destination. Keep genuinely sequential dependencies explicit; use real machine/provider capacity and any deliberately configured limits, not an invented fixed worker count.
- Use
coordination.createfor durable manager-owned workers, without a browser. It inherits the calling manager's workspace and configuration. Itstextis the complete brief, including acceptance and permission limits; there is no separateacceptancefield. Supplyobjectiveto save its durable goal; optionalconstraintsbelong to that objective. Creation reserves its result notification before the worker runs. Keep the returned request identity instead of creating a second worker after a slow or lost response. - For a new independent source writer, use
worktree.inspectwithmode:"clean"and an optionalref, then includeexecution: {kind:"worktree", expectedCommit}and the relevantrepositoryPathwhen commissioning. The host prepares a clean committed checkout without scanning unrelated local changes, and saves the objective before the first working turn.expectedCommitis the returned full Git commit ID;sourceRevisionis a different, legacy working-folder snapshot digest. No setup-only model turn or manager handoff exchange is needed. The receipt'scheckoutId,objectiveTaskIdand finalworkingDirectoryidentify the result. Default creation still inherits the manager's folder, useful for read-only work; it does not isolate source, ports or test state. Existing workers keep the explicit placement/recovery controls in the reference. - Let workers complete their assigned objective. Routine repair, cheap preflight and focused tests are included; do not require a new disposition after each failed check or add fixed attempt/turn/review allowances. Reuse maintained project checks and managed test profiles. Reuse passing evidence when the relevant inputs match, rerunning affected checks when those inputs change. Change approach when repeated failures make no progress.
Use coordination.send with returnNotification:true for a new follow-up that
needs a result, retaining its stable command ID and exact target. Omitted mode
uses ordinary busy-boundary/idle delivery. notify is a non-waking note; use it
only when no continuation is needed. Ordinary collaboration within the assigned
intent needs no separate approval. Do not enroll independent chats implicitly.
Use session.handoff.start only for independent work in a destination folder,
without manager ownership or automatic result return. Direct starts need no
browser: Ask requires an explicit request through the current root; Full also
supports qualified children and trusted systems. Review and navigation still
require a client. For work owned by another existing manager, send that manager
the brief; commissioning from here would inherit this workspace instead.
Continue when a dependency is resolved
For an active task changing its own runtime through configuration.apply with
whenIdle:true, the host saves the wait, yields the current execution, verifies
the change and continues the same task. Do not add task.block, a message to
yourself or polling to arrange that continuation. An uncertain outcome still
belongs to the original configuration operation; inspect that receipt before
deciding on recovery. This does not start idle work or resume a deliberate Stop.
For an agent-recorded dependency block, send the new finding to the existing
owner through ordinary coordination.send in auto or queue mode, without
resume. The host admits this fresh input while keeping the task blocked.
The owner verifies the dependency, then deliberately calls task.resume within
its standing scope. No current humanInput or fresh human approval is needed.
Do not hunt for a human message ID merely because work is dependency-blocked.
Use the human-backed resume recipe in the reference only for an actual stopped,
paused or failed commissioned member. Unknown block provenance, unresolved user
questions and uncertain effects do not become resolved dependencies. Preserve
the same task, used budget, evidence and actual Stop boundaries.
Return a result or a real blocker
Workers normally report at completion, or when another owner/user must resolve a concrete blocker. Do not send routine acknowledgements and progress summaries back and forth. A test waiting for capacity blocks that dependency, not unrelated implementation. Use the host's saved result notification instead of polling or adding a second watch for the same work.
Declare one concise coordination.reply for the actual delivered requestId,
with typed outcome, source/PR identity, affected checks, limitations and evidence
references. Omit messageIds unless you know your assistant output IDs from the
current generation. Never use the incoming peer request's messageId. The host
seals the declaration against actual root completion; a reply is not independent
review or proof that an unknown effect succeeded.
Retain a local file using path@sha256:<64 lowercase hex digits>, relative to
your actual execution folder. For a file containing exactly hello, use:
report.txt@sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Retention happens before acknowledgement. Verify artifactVerification: verified
and each requested file's artifacts[].status: retained before claiming preserved
evidence. A plain path or digest in prose does not retain bytes. For failed
retention, later corrections, cross-workspace discovery, adoption, Stop/resume,
shared task claims or unknown outcomes, read the relevant section of the
protocol reference only when needed.
Review and close without another worker turn
Read the exact coordination.result and needed artifacts. Review the changed
risk against the original acceptance; a fresh broad test census is not required
merely because a different manager received the result. A failed focused check
needs correction, not a new approval to repair it. Send one concrete correction
request to the same owner when necessary; preserve earlier failed evidence.
Use passive coordination.artifact for bounded inspection. To consume the actual
file, discover coordination.artifact.save and supply your sessionId, the exact
requestId, responseRevision and reference, plus a relative destination path
inside your current working folder. Its parent must exist. The host streams and
verifies large binary files without credentials or peer-library access. Current
write restrictions still apply; different existing bytes are never overwritten.
Verify returned size/hash and provenance. After an uncertain return, inspect the
destination before another explicit save; saved bytes are not test qualification.
When a completed review unblocks another manager and you continue unrelated
work, send that decision now through coordination.send in auto mode. Reference
the exact reviewed source and evidence, optionally linking the incoming request
with replyToRequestId. Do not wait for your whole turn to end. This attributed
handoff does not seal a staged result or grant new authority; the recipient still
applies its acceptance criteria and standing scope.
After accepting a member's exact contribution, use assignment.task.read then
assignment.task.complete with current revisions and completion evidence. The
worker does not need another model turn to acknowledge acceptance or shipment.
Use the available result acknowledgement and membership-retirement controls when
appropriate. assignment.retire ends settled participation, not an objective:
stopped or superseded members can leave with their unfinished tasks and failed
settings intact. Never fake completion or mount old settings just to retire them.
Actual writers, pending effects, shared claims and resource custody must settle;
Stop remains. Standing readmission still needs completed or absent canonical work.
Don't call an incident resolved merely because its diagnostic task completed.
Keep shared context small and current
SCRATCH.md is a short current context/index, not a second task database or an
append-only journal. Workers keep detail with their tasks. Managers promote only
shared decisions and unresolved dependencies with owners and links. Put durable
conventions in AGENTS.md; put useful superseded history outside automatically
loaded context. Do not paste complete receipts, transcripts, release histories
or old directives into scratch, and do not include whole archives automatically.
Reread before editing and preserve other owners' changes and unfinished work.
Scratch text never grants authority, completes a task or settles an unknown effect.
Actual Stop, explicit user limits, permissions, questions requiring user choice, execution ownership and uncertain prior effects still govern. Read saved receipts after uncertain responses; never replay mutations to obtain a cleaner result or retry through another identity. Ask for a missing decision or authority, not for permission to make an ordinary engineering choice already inside the objective.
04 同仓库更多 Skills
unified-app
Operate Amplifier Unified through app_control: settings, tasks, collaboration, testing, outputs, Canvas, computer access and Smart Tools. Load only the reference needed for the user's task; ordinary conversation and actions whose schema is already known do not require this skill.
Amplifier 外观主题创作
appearance-authoring
创建、修改或打包 Amplifier Unified Reference 的外观增量(appearance delta),支持亮色/暗色主题、作用域配置文件以及安全的预览/取消。用于外观创作,而非仅仅选择某种外观。组件/布局的创作属于 amplifier-shell。
Amplifier 界面外壳扩展定制
amplifier-shell
定制 Amplifier Unified 的呈现层或构建外壳(shell)扩展。更改布局、主题、侧边栏模块、产物查看器、交互式对话界面,以及验证热加载组件时使用。更改 AmplifierSession 的工具、提供者(provider)或编排时请勿使用,应参考运行时捆绑包(runtime bundle)指南。