CG Worker CLI
SkillDev toolsUse 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.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the CG Worker CLI skill
What this skill tells your AI
The instructions your AI receives, as published by intelligent-internet/commonground in .agents/skills/cg-worker/SKILL.md and read by ahel’s review.
Use cg worker for deterministic worker and companion lifecycle operations. Do not use curl for these flows when cg worker covers the operation.
Rules
- Use
cg worker claim nextto acquire work. - When automation needs a reusable claim token file, pass
--claim-out-file. --claim-fileaccepts either a bare claim JSON object or a full CLI envelope containingresult.claim.- Use
cg worker claim renewwhile the claim remains active. - Use
cg worker claim appendfor progress records. - Use
cg worker claim finishfor terminal close. - Use
cg worker claim suspendwhen the turn must pause for approval, orchestration, or external input. - Use
cg worker claim dispatch-childto dispatch a child turn from an active parent claim.
Commands
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
Signals
- GitHub stars
- 149
- Forks
- 21
- Last commit
- May 2026
Advanced
- Catalog kind
- skill
- Gateway key
cg-worker- Source
- github.com/intelligent-internet/commonground