cli-worker
Installation
SKILL.md
CLI Worker Skill (Kimi CLI)
When to use
- User asks to delegate a coding task to Kimi or a CLI worker
- Isolated coding task that should run in its own worktree (no git conflicts)
- Parallel work: run multiple tasks without blocking the main agent
- Headless task: run Kimi CLI non-interactively from OpenClaw
Delegation: prefer CLI over sessions_spawn
For a single coding task, use the CLI so the task actually runs:
- Do:
cli-worker execute "Your task prompt"(and optionally--constraint/--success). This runs Kimi CLI in a worktree and returns output. - Avoid: Using
sessions_spawnto delegate to a "sub-agent" for the same kind of task. Spawn is known to sometimes create a session that never processes (0 messages). Usesessions_spawnonly when you need an ongoing sub-agent conversation with multiple back-and-forth orsessions_send.
After any spawn, verify within ~30s: sessions_list with kinds: ["subagent"] and/or sessions_history on the child session; if messages stay 0, treat as failed and retry with cli-worker execute instead.