clade-control
Start, stop, or manage Clade autonomous coding loops remotely
- License 许可
- MIT
- 所属仓库
- shenxingy/Clade
- 最近更新
- 2026-11-13
- Stars
- ★ 10
- Forks
- 6
01 前言 Front Matter
- name
- clade-control
- tags
- [ "claude-code", "orchestrator", "automation", "devtools", "coding-automation" ]
- author
- alexshen
- version
- 1.0.0
- requires
- { "env": [ "CLADE_BASE_URL", "CLADE_API_KEY" ] }
- description
- Start, stop, or manage Clade autonomous coding loops remotely
02 资源文件 1
- 参考文档plan-document-reviewer-prompt.md1.6 KB
03 SKILL.md 正文
Clade — Control
Start, stop, or manage autonomous coding loops on a remote machine.
When to use
User wants to:
- Start a new coding loop with a goal
- Stop a running loop
- Clear blockers so a loop can resume
API
Endpoint: POST {CLADE_BASE_URL}/control
Headers:
Authorization: Bearer {CLADE_API_KEY}
Content-Type: application/json
Action: start
Start a new autonomous coding loop with a goal.
Request:
{
"project": "/home/user/myproject",
"action": "start",
"goal": "Fix all failing tests and ensure 100% pass rate",
"max_iter": 5,
"max_workers": 4,
"model": "sonnet"
}
Translating user intent to parameters:
- "run 3 times" / "跑3次" →
max_iter: 3 - "use opus" / "用opus" →
model: "opus" - "2 workers" / "2个worker" →
max_workers: 2 - "quick run" →
max_iter: 3, model: "haiku" - "thorough run" →
max_iter: 10, model: "opus" - If user doesn't specify: default to
max_iter: 10, max_workers: 4, model: "sonnet"
The goal can be:
- A natural language description:
"Fix the login page CSS on mobile" - A file path on the server:
"/home/user/myproject/goals/feature-x.md"
Response:
{
"ok": true,
"action": "start",
"pid": 12345,
"goal": "/home/user/myproject/.claude/monitor-goal.md",
"max_iter": 5
}
Action: stop
Stop the currently running loop gracefully.
Request:
{
"project": "/home/user/myproject",
"action": "stop"
}
Response:
{"ok": true, "action": "stop", "sentinel": "/home/user/myproject/.claude/stop-start"}
Action: clear-blockers
Clear blockers so the loop can be restarted.
Request:
{
"project": "/home/user/myproject",
"action": "clear-blockers"
}
How to format the response
On start:
? Loop started!
? Goal: {goal summary, first 80 chars}
⚙️ Config: {max_iter} iterations, {max_workers} workers, {model}
? PID: {pid}
Use "status" to check progress.
On stop:
? Stop signal sent. The loop will finish its current task and exit gracefully.
On clear-blockers:
? Blockers cleared. You can now restart the loop.
Error handling
- Connection refused: "Monitor is not running."
- 401 Unauthorized: "Check your CLADE_API_KEY."
- 400 "goal is required": Ask the user what they want the AI to work on.
- 500 "start.sh not found": "Clade is not installed on the server. Run ./install.sh first."
04 同仓库更多 Skills
worktree
Create or inspect runtime-adaptive isolated Git workspaces with explicit ownership and delivery routing
web-search
Route online research and URL reading to native tools or TinyFish MCP/API; prepare targeted requests, handle progress and failures, and check returned evidence. Applies to web search, fetching, and bulk collection; excludes repository/file search.
verify
Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in /verify (which runs the app to observe a single change working) — this one walks the AGENTS.md "Features (Behavior Anchors)" list.
tasks
Coordinate dependency-aware project tasks across independent Codex, Codex, Kimi and human sessions using Beads. Use for shared plans, claiming work, task handoffs, acceptance and agent monitoring snapshots.
sync
End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run /commit after to commit everything)
status
Show a provider-neutral, freshness-aware snapshot of active Agent work, Git delivery, execution identity, and usage limits. Use for “what's going on right now”, what is running, progress updates, active runtime/provider/model, or stuck-work checks.