ワンクリックで
autopilot
Unified autonomous workflow from spec to validated code (Debate-First, all 5 phases)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Unified autonomous workflow from spec to validated code (Debate-First, all 5 phases)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Fast autonomous workflow — Plan + Execute only (no Debate planning, no Code Review). Aliases ulw/ultrawork.
Resource-efficient operation mode
Parallel agent execution with Claude Code's native Agent Teams
Browser automation and E2E testing
Frontend UI/UX development expert skill
Git expert skill. Commits, rebases, history search
| name | autopilot |
| description | Unified autonomous workflow from spec to validated code (Debate-First, all 5 phases) |
| invocation | user |
| allowed_tools | ["Task","TaskCreate","TaskUpdate","TaskList","TaskGet","TeamCreate","TeamDelete","SendMessage","Read","Glob","Grep","Bash","mcp__chronos__autopilot_*","mcp__chronos__ralph_*","mcp__chronos__boulder_*","mcp__chronos__ecomode_*","mcp__chronos__workmode_*","mcp__chronos__ui_verification_*","mcp__chronos__model_router_*","mcp__chronos__debate_*","mcp__chronos__chronos_status"] |
Execute a complete workflow from initial request to validated code. Uses a debate-first approach where 4 AI models collaboratively plan before execution.
For quick tasks (bug fixes, simple changes): use /autopilot-fast (alias: ulw, ultrawork) instead.
/autopilot "Add user authentication with JWT"
/autopilot --swarm 5 "Implement all API endpoints" # Parallel execution
/autopilot --ui "Build dashboard page" # With UI verification
/autopilot --no-qa "Quick prototype" # Skip QA
/autopilot --no-validation "Hotfix" # Skip code review
| Phase | Name | Agent | Gate Criteria |
|---|---|---|---|
| 0 | Debate Planning | Debate (4 models) | debate concluded with plan |
| 1 | Structuring | Planning Team: Prometheus + [Explore×2 research sub-team] → Metis loop | plan approved by Metis |
| 2 | Execution | Atlas → [sub-atlas × domains → Junior × N] OR flat Junior × N | all tasks done |
| 3 | QA | qa-orchestrator → [build → lint + test + ui in parallel] | build + lint + tests (+ ui) pass |
| 4 | Code Review | Debate (4 models) | debate APPROVED |
| Flag | Description |
|---|---|
--swarm N | Use N parallel agents in execution |
--ui | Enable Playwright + Gemini UI verification in QA |
--no-qa | Skip QA phase |
--no-validation | Skip code review phase |
When autopilot starts, workmode is automatically enabled:
To stop: /autopilot off or mcp__chronos__workmode_disable()
MANDATORY for all phase teams and inner teams.
NEVER terminate teammates via process-level commands:
tmux kill-session — FORBIDDENtmux kill-pane / tmux kill-window — FORBIDDENkill, kill -9, pkill — FORBIDDENALWAYS use tool calling to manage teammate lifecycle:
1. SendMessage(type="shutdown_request", recipient="{agent-name}", content="Done")
2. Wait for shutdown_response (or reasonable timeout)
3. TeamDelete()
Process-level killing leaves agents in a dirty state: agent limiter slots are not freed, chronos state is not cleaned up, and orphaned teams persist. Tool calling ensures proper cleanup.
Before advancing to the next phase, the CURRENT phase team MUST be fully cleaned up:
Phase N complete → cleanup sequence:
1. Verify inner agent reported completion via SendMessage
2. TeamDelete("ap-pN-{ts}") ← Delete phase team
3. mcp__chronos__autopilot_*() ← Update progress / set output
4. mcp__chronos__autopilot_advance() ← ONLY after cleanup is done
NEVER call autopilot_advance() before TeamDelete().
NEVER skip TeamDelete() — orphaned teams cause resource leaks and OOM.
1. Start autopilot with workmode:
mcp__chronos__autopilot_start(name, request, options)
→ Automatically enables workmode
2. Start Ralph Loop for continuity:
mcp__chronos__ralph_start(completion_promise, max_iterations)
1. Start debate in chronos (Sisyphus manages state — debate agent has no MCP):
mcp__chronos__debate_start({ topic: request, context: codebase_context, max_rounds: 20 })
2. Create phase team:
ts = Date.now()
TeamCreate(team_name="ap-p0-{ts}")
3. Spawn debate agent in phase team:
Task(
team_name="ap-p0-{ts}",
name="debate",
subagent_type="debate",
prompt="Run a planning debate for the following autopilot request.
Topic: {request}
Context: {codebase_context}
Purpose: Phase 0 planning — 4 models analyze the request and reach consensus on implementation approach.
Leader name: sisyphus
When complete, send DEBATE_RESULT via SendMessage to sisyphus with structured JSON between DEBATE_RESULT_START/END markers."
)
The debate agent will:
1. TeamCreate("debate-{ts}") → spawn opus-participant + gpt-relay + gemini-relay + glm-relay
2. Run independent analysis → debate rounds → consensus/voting
3. TeamDelete() → SendMessage(recipient="sisyphus", content="DEBATE_RESULT_START {...} DEBATE_RESULT_END", summary="Phase 0 complete")
4. Wait for SendMessage from debate agent (auto-delivered to sisyphus).
5. After receiving debate results (cleanup → advance):
Parse DEBATE_RESULT JSON from message.
mcp__chronos__debate_conclude({ summary, decision, method, details })
TeamDelete("ap-p0-{ts}") ← CLEANUP FIRST
mcp__chronos__autopilot_set_output(0, debate_id)
mcp__chronos__autopilot_advance() ← ADVANCE AFTER CLEANUP
1. Create phase team:
ts = Date.now()
TeamCreate(team_name="ap-p1-{ts}")
2. Spawn Prometheus in phase team:
Task(
team_name="ap-p1-{ts}",
name="prometheus",
subagent_type="prometheus",
prompt="Lead the planning phase for: {request}.
Debate conclusions: {debate_conclusions}
Steps:
1. Create research sub-team (plan-{ts}) with explore-impl + explore-test workers
→ Gather codebase context in parallel before writing plan
→ Clean up research team after
2. Write plan using debate conclusions + research findings
3. Write plan to .sisyphus/plans/{name}.md
4. Submit to Metis for review
5. Iterate until APPROVED
Leader name: sisyphus
When complete, report via SendMessage to sisyphus with:
- Plan path (.sisyphus/plans/{name}.md)
- Task count
- Brief plan summary"
)
Prometheus internal workflow:
a. Research sub-team:
- TeamCreate("plan-{ts}")
- Spawn explore-impl + explore-test (+ optional librarian) in parallel
- Wait for research reports via SendMessage
- TeamDelete("plan-{ts}")
b. Write plan using debate conclusions + research findings
c. Metis review loop:
- Prometheus submits plan to Metis (GPT-5.3-Codex xhigh)
- If NEEDS REVISION → revise plan
- Repeat until APPROVED
d. SendMessage(recipient="sisyphus", content="Plan approved...", summary="Plan approved by Metis")
3. Wait for SendMessage from Prometheus (auto-delivered to sisyphus).
4. After receiving plan results (cleanup → advance):
TeamDelete("ap-p1-{ts}") ← CLEANUP FIRST
mcp__chronos__autopilot_set_output(1, plan_path)
mcp__chronos__autopilot_advance() ← ADVANCE AFTER CLEANUP
1. Create phase team:
ts = Date.now()
TeamCreate(team_name="ap-p2-{ts}")
2. Spawn Atlas in phase team:
Task(
team_name="ap-p2-{ts}",
name="atlas",
subagent_type="atlas",
prompt="Execute Phase 2 of autopilot. Plan: {plan_path}
Use hierarchical domain execution when the plan has 4+ tasks:
1. Classify tasks into domains (feature/test/infra)
2. Check fallback conditions (60%+ in one domain → flat execution)
3. Check agent limiter (increase limit to 10 if needed)
4. Create outer exec team (exec-{ts}) with sub-atlas workers
5. sub-atlas workers create inner domain teams and delegate to Junior
6. Cross-domain dependency: test tasks blocked by feature tasks
For --swarm N (override): use N flat Junior workers in single exec team.
Use flat Junior execution (fallback) when:
- Fewer than 4 tasks
- Domain classification produces only 1 domain
- Agent limiter cannot accommodate hierarchical structure
Leader name: sisyphus
When complete, report via SendMessage to sisyphus with:
- Number of tasks completed
- Summary of changed files"
)
Atlas internal workflow:
[Hierarchical — 4+ tasks, multiple domains]:
1. Parse plan → classify tasks by domain
2. Check fallback conditions
3. mcp__chronos__agent_limiter_set_limit(10) # Raise limit for nested teams
4. TeamCreate("exec-{ts}")
5. Spawn sub-atlas-feature + sub-atlas-test + sub-atlas-infra (in parallel)
6. Each sub-atlas creates inner team → spawns Junior workers
7. Wait for sub-atlas completion messages
8. Shutdown sub-atlas workers + TeamDelete("exec-{ts}")
9. SendMessage(recipient="sisyphus", content="Execution complete...", summary="All tasks completed")
[Flat — <4 tasks, single domain, or fallback]:
1. TeamCreate("atlas-{ts}") (if 2+ parallel tasks)
2. Spawn Junior workers directly
3. Wait for completion
4. TeamDelete()
5. SendMessage(recipient="sisyphus", content="Execution complete...", summary="All tasks completed")
[--swarm N]:
1. TeamCreate("autopilot-{name}-{ts}")
2. Assign tasks to worker-1..worker-N
3. Spawn N Junior workers
4. Wait + cleanup
5. SendMessage(recipient="sisyphus", content="Execution complete...", summary="All tasks completed")
3. Wait for SendMessage from Atlas (auto-delivered to sisyphus).
4. After receiving completion (cleanup → advance):
TeamDelete("ap-p2-{ts}") ← CLEANUP FIRST
mcp__chronos__autopilot_update_progress(2, {done, total})
mcp__chronos__autopilot_advance() ← ADVANCE AFTER CLEANUP
1. Create phase team:
ts = Date.now()
TeamCreate(team_name="ap-p3-{ts}")
2. Spawn QA Orchestrator in phase team:
Task(
team_name="ap-p3-{ts}",
name="qa-orchestrator",
subagent_type="qa-orchestrator",
prompt="Run QA for autopilot phase 3.
Leader name: sisyphus
UI flag: {ui_flag}
Plan path: {plan_path}
Changed files: {list_of_changed_files_from_git}
Steps:
1. Analyze project for UI verification need (if ui_flag=true OR autonomous judgment)
2. Create QA team (qa-{ts})
3. Run build-worker first (sequential)
4. If build fails: report QA_FAILED immediately
5. If build passes: spawn lint-worker + test-worker in parallel
(+ ui-worker if UI check conditions met)
6. Collect results
7. Report QA_PASSED or QA_FAILED to sisyphus via SendMessage"
)
QA Orchestrator internal workflow:
1. Pre-analysis: read package.json, check UI frameworks + changed file paths
2. TeamCreate("qa-{ts}")
3. Spawn build-worker → wait
4. If BUILD_FAILED: cleanup + report failure
5. If BUILD_SUCCESS: spawn lint-worker + test-worker (+ ui-worker if needed) in parallel
6. Collect all results → compile report
7. TeamDelete()
8. SendMessage(recipient="sisyphus", content="QA_PASSED/FAILED...", summary="QA result")
3. Wait for SendMessage from QA Orchestrator (auto-delivered to sisyphus).
4. After receiving QA results (cleanup → advance):
TeamDelete("ap-p3-{ts}") ← CLEANUP FIRST
mcp__chronos__autopilot_update_progress(3, {build, lint, tests, ui})
All checks must pass (or SKIPPED) to advance to Phase 4.
UI verification is triggered by:
- --ui flag explicitly provided, OR
- qa-orchestrator autonomous judgment: project has UI framework AND changed files include UI paths
Skip if: --no-validation
1. Gather code changes first (before spawning debate agent):
- git diff summary
- Key changed files content
- Playwright screenshots path (if --ui)
2. Start debate in chronos (Sisyphus manages state — debate agent has no MCP):
mcp__chronos__debate_start({ topic: "Code review: {name}", context: diff_content, max_rounds: 20 })
3. Create phase team:
ts = Date.now()
TeamCreate(team_name="ap-p4-{ts}")
4. Spawn debate agent for code review in phase team:
Task(
team_name="ap-p4-{ts}",
name="debate",
subagent_type="debate",
prompt="Run a code review debate for the following changes.
Topic: Code review for autopilot task: {name}
Context (git diff + key files):
{diff_content}
Purpose: Phase 4 code review — each model reviews implementation quality and votes APPROVED or REJECTED.
Each model should evaluate: correctness, security, patterns, edge cases, test coverage.
Leader name: sisyphus
When complete, send DEBATE_RESULT via SendMessage to sisyphus with structured JSON between DEBATE_RESULT_START/END markers."
)
The debate agent will:
1. TeamCreate("debate-{ts}") → spawn opus-participant + gpt-relay + gemini-relay + glm-relay
2. Each model reviews and votes APPROVED/REJECTED
3. Reach 3/4 consensus or majority vote
4. TeamDelete() → SendMessage(recipient="sisyphus", content="DEBATE_RESULT_START {...} DEBATE_RESULT_END", summary="Code review done")
5. Wait for SendMessage from debate agent (auto-delivered to sisyphus).
6. After receiving debate verdict (cleanup → advance):
Parse DEBATE_RESULT JSON from message.
mcp__chronos__debate_conclude({ summary, decision, method, details })
TeamDelete("ap-p4-{ts}") ← CLEANUP FIRST
If APPROVED (3/4 agree):
mcp__chronos__autopilot_update_progress(4, { approved: true })
→ Advance to completion
If REJECTED:
→ Prometheus creates fix plan based on rejection reasons
→ Loop back to Phase 2:
mcp__chronos__autopilot_loop_back({ target_phase: 2, reason: "rejection reasons from debate" })
→ Continue execution with fix plan (unlimited loops)
1. All phases pass
2. Disable workmode: mcp__chronos__workmode_disable()
3. Clear autopilot: mcp__chronos__autopilot_clear()
4. Stop Ralph Loop: mcp__chronos__ralph_stop(reason="completed")
5. Report summary to user
State file: .sisyphus/autopilot.json
{
"id": "autopilot-20260219-auth",
"current_phase": 2,
"status": "running",
"review_loop_count": 0,
"options": {
"fast": false,
"ui": true,
"use_agent_teams": true,
"team_size": 3,
"skip_qa": false,
"skip_validation": false
},
"phases": {
"0": { "status": "completed", "output": "debate-id" },
"1": { "status": "completed", "output": ".sisyphus/plans/auth.md" },
"2": { "status": "in_progress", "progress": { "done": 3, "total": 7 } },
"3": { "status": "pending" },
"4": { "status": "pending" }
}
}
| Agent | Primary Model | Purpose |
|---|---|---|
| Debate | Opus-4.6 + gpt-5.3-codex + Gemini + GLM-4.7 | Planning & code review |
| Prometheus | Claude Opus-4.6 | Plan structuring |
| Metis | GPT-5.3-Codex (xhigh) | Plan review |
| Junior* | gpt-5.3-codex-spark | Code generation |
| Atlas | Claude Sonnet-4.6 | Orchestration |
/autopilot "Add user profile page with avatar upload"
Phase 0: 4 models debate implementation approach
Phase 1: Prometheus structures plan, Metis reviews until approved
Phase 2: Atlas → Junior/codex-spark (parallel tasks)
Phase 3: Build/Lint/Tests pass
Phase 4: 4 models review code → APPROVED
/autopilot --swarm 5 "Implement all REST endpoints"
Phase 2: Agent Team with 5 members works in parallel
→ Each teammate claims tasks from shared task list
→ Leader in delegation mode (no direct code changes)
→ Monitor via TaskList
/autopilot --ui "Build dashboard page"
Phase 3 (QA):
1. Playwright captures screenshot
2. Gemini analyzes UI
3. Compares against expectations
4. Reports issues
Phase 4 (Code Review):
→ Playwright screenshot included in debate context
Phase 4: Debate REJECTS code (security issue found)
→ review_loop_count: 1
→ Prometheus creates fix plan
→ Loop back to Phase 2
Phase 2: Junior fixes security issue
Phase 3: QA passes again
Phase 4: Debate APPROVES → Complete
If phase fails:
1. TeamDelete() for any active phase team ← CLEANUP EVEN ON FAILURE
2. mcp__chronos__autopilot_fail(error="Description")
3. Status becomes "failed"
4. Workmode remains active
5. Report to user with details
6. User can fix and retry with /autopilot --resume
On failure, always clean up the phase team BEFORE marking as failed. Never leave orphaned teams.
/autopilot on "task" - Start autopilot (same as /autopilot "task")/autopilot off - Stop and clear autopilot, disable workmode/autopilot status - Show current autopilot state/autopilot-fast "task" - Fast mode (no debate, no code review); aliases: ulw, ultrawork/ecomode on - Enable resource-efficient mode