cg
免费Use when a local agent needs to dispatch work to CommonGround, inspect turn or agent state, wait for a turn to close, or resume a suspended turn through the `cg` CLI instead of calling the CG HTTP API directly.
中文简介正在准备中。当前显示原文说明。
Use when deterministic runtime code needs to execute CommonGround worker lifecycle steps through the local `cg worker` command namespace, including claim acquisition, renewal, progress append, terminal finish, child dispatch, and suspend flows.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Use cg worker for deterministic worker and companion lifecycle operations. Do not use curl for these flows when cg worker covers the operation.
cg worker claim next to acquire work.--claim-out-file.--claim-file accepts either a bare claim JSON object or a full CLI envelope containing result.claim.cg worker claim renew while the claim remains active.cg worker claim append for progress records.cg worker claim finish for terminal close.cg worker claim suspend when the turn must pause for approval, orchestration, or external input.cg worker claim dispatch-child to dispatch a child turn from an active parent claim.Claim work and persist the claim token:
cg worker claim next \
--project-id demo \
--agent-id worker \
--claim-out-file /tmp/cg-claim.json
Renew and progress:
cg worker claim renew --claim-file /tmp/cg-claim.json
cg worker claim append --claim-file /tmp/cg-claim.json --payload-file /tmp/progress.json --role progress
Finish, suspend, and child dispatch:
cg worker claim finish --claim-file /tmp/cg-claim.json --outcome succeeded --payload-file /tmp/final.json
cg worker claim suspend --claim-file /tmp/cg-claim.json --reason await_child --note "waiting on child"
cg worker claim dispatch-child \
--claim-file /tmp/cg-claim.json \
--requested-by worker \
--target-agent codex \
--payload-file /tmp/child-bootstrap.json \
--dispatch-key child-123
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Use when a local agent needs to dispatch work to CommonGround, inspect turn or agent state, wait for a turn to close, or resume a suspended turn through the `cg` CLI instead of calling the CG HTTP API directly.
中文简介正在准备中。当前显示原文说明。
Use when a local agent needs to submit a concise public work-memory report for its own completed local task through `cg report work-memory`.
中文简介正在准备中。当前显示原文说明。