✓ Verified
💻 Development
✓ Enhanced Data
Cli Worker
Delegates coding tasks to Kimi CLI agents in isolated git worktrees.
- Rating
- 4.6 (361 reviews)
- Downloads
- 47,641 downloads
- Version
- 1.0.0
Overview
Delegates coding tasks to Kimi CLI agents in isolated git worktrees.
Complete Documentation
View Source →
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.
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.Prerequisites
You must install and authenticate the CLI yourself before using this skill. This skill does not store or use any credentials.
- Kimi CLI installed (
uv tool install kimi-clior install script from code.kimi.com) - Authenticated: run
kimithen/loginin the REPL (user must complete OAuth; cannot be automated)
cli-worker verifyHow to invoke
bash
# Run a single task (creates worktree if in a git repo)
cli-worker execute "Your task prompt"
# With context
cli-worker execute "Create hello.py" --constraint "Python 3.11" --success "Tests pass"
# To get full plain-text output for the agent (not only the final answer)
cli-worker execute "Your task" --output-format text
# Check task status (after Kimi writes report)
cli-worker status <taskId>
# List / remove worktrees
cli-worker worktree list
cli-worker worktree remove <taskId>
# Cleanup old worktrees
cli-worker cleanup --older-than 24
Merge and cleanup
After a task completes, decide whether to keep or discard the work:
- To keep the work: From the main repo (e.g., on
main), run:
bash
git merge openclaw/<taskId>
cli-worker worktree remove <taskId>
- To discard: Run
cli-worker worktree removedirectly, or rely oncli-worker cleanup --older-than N.
Install
- CLI (required for execute/verify): Must be on PATH where the agent runs. From the repo:
npm install && npm run build && npm link. (From npm:npm install -g @sqncr/openclaw-cli-agent-skill.) If the agent gets "command not found", runnpm linkfrom the repo and restart the gateway. - Skill discovery: From the repo run
npm run install-skillto symlink into~/.openclaw/skills/cli-worker. Restart gateway or new session after that.
OpenClaw integration
- Symlink or copy
skills/cli-worker/to~/.openclaw/skills/cli-worker/so agents can discover it - Optional config:
~/.openclaw/openclaw.jsonwithworktree.basePathfor worktree location
Installation
Terminal bash
openclaw install cli-worker
Copied!
💻Code Examples
cli-worker cleanup --older-than 24
cli-worker-cleanup---older-than-24.txt
## Merge and cleanup
After a task completes, decide whether to keep or discard the work:
- **To keep the work:** From the **main repo** (e.g., on `main`), run:example.sh
# Run a single task (creates worktree if in a git repo)
cli-worker execute "Your task prompt"
# With context
cli-worker execute "Create hello.py" --constraint "Python 3.11" --success "Tests pass"
# To get full plain-text output for the agent (not only the final answer)
cli-worker execute "Your task" --output-format text
# Check task status (after Kimi writes report)
cli-worker status <taskId>
# List / remove worktrees
cli-worker worktree list
cli-worker worktree remove <taskId>
# Cleanup old worktrees
cli-worker cleanup --older-than 24Tags
#coding_agents-and-ides
#cli
#git
Quick Info
Category Development
Model Claude 3.5
Complexity Multi-Agent
Author quratus
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install cli-worker
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0