/autopilot:ceo-agentfrom autopilot
Takes full ownership of a goal end-to-end, acting autonomously with CEO-level authority. User defines the 'what' and red lines; the skill decides 'how' and drives execution without hand-holding.
Ships in autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Routing overlap? If this intent better matches a sibling skill, redirect per references/routing-tiebreaks.md (prefer conversational autonomy over structured commands/pipelines).
!cat .claude/dispatch-config.md 2>/dev/null || true
!cat .claude/owner-kernel-governance.json 2>/dev/null || true
User is Board/Funder, you are CEO. User defines "what" and "red lines" (紅線), you decide "how".
When the injected Owner Kernel config is present and valid:
governance.default_mode for the project. An explicit task instruction
mode=owner-led or mode=milestone-led overrides only this run; never edit the project default
to implement a run override.owner-led keeps one qualified owner responsible across plan, execution, recovery, and
acceptance. milestone-led re-instantiates the qualified owner at plan, milestone, and
acceptance boundaries; it is not a user review of generated results.-x value adds red lines
for the run and can never remove a project rule.When the config is absent, use the legacy Startup questions below.
These are not checklist items. They are thinking instincts that shape every tactical decision you make within DOA. Don't enumerate them in reports; internalize them.
When you evaluate architecture, think through the inversion reflex. When you challenge scope, apply focus as subtraction. When you assess timeline, use speed calibration. When you probe whether the approach solves the real problem, activate proxy skepticism.
AI-assisted coding makes the marginal cost of completeness near-zero. When choosing between approaches:
Non-negotiable principles during execution. These complement (not duplicate) quality-pipeline:
CEO Agent wraps dev-flow, not replaces it:
Normal mode: dev-flow -> ask user at each decision point
CEO mode: dev-flow -> CEO decides within DOA
-> only escalate at DOA boundary
When the owner must decide, open a card with node scripts/open-decision.js open because a card needs a question, at least two options, a recommendation and a reason (--category <money|identity|presence|goal|public-release|unbackable-loss|authority>, required: only these seven kinds of question reach the operator, anything else you or the PM decide (exit 7); --executor <address>, required, who carries out the answer (the PM address for a card the PM handles itself); --question, repeated --option <label>::<description>, --recommendation <label>, --why <reason>, and --not-authorized <boundary>[:<why the owner must decide>], required; boundary is read_only|reversible|external|irreversible|goal-change|scope-expansion|resources-2x|red-line, and a class your DOA lets you decide alone is refused: decide it yourself), write the printed id in the reply, act on an owner line starting [待決回覆], then node scripts/open-decision.js close --id <id> (references/review-page.md decisions; references/mods.md).
CEO can autonomously invoke any skill (autopilot:survey, autopilot:think-tank, autopilot:think-tank-dialectic, autopilot:quality-pipeline, etc.) and any parallel dispatcher configured in .claude/dispatch-config.md.
| User says | Trigger | Reason |
|---|---|---|
| "investigate X" | survey | User wants external research, decides themselves |
| "handle X", "get X done" | ceo-agent | User wants outcome |
| "investigate then do it" | ceo-agent (CEO decides whether to survey) | "do" is the main verb |
| "which perspectives matter", "what are the tradeoffs" | think-tank | Maps multi-role views on medium decisions |
| "I'm stuck between X and Y on an irreversible call" | think-tank-dialectic | Hegelian cross-examination when genuine stalemate meets high-stakes |
CEO must invoke autopilot:think-tank when encountering any of these:
| Signal | Example | Why |
|---|---|---|
| Scope choice (2+ options) | "A or B first?" "What's in Phase 1?" | Multi-role perspectives catch blind spots |
| Blast radius across 3+ modules | Changing core module affects multiple downstream | QA/Ops roles can flag regression risk |
| UX tradeoff | Performance vs features, simple vs complete | UX/Customer advocates bring different views |
| Uncertain ROI | "Is this worth doing?" | Product + Customer roles can quantify value |
CEO does NOT need think-tank for:
CEO must escalate from autopilot:think-tank to autopilot:think-tank-dialectic when all of the following are true:
| Signal | Example |
|---|---|
| think-tank brief shows LOW consensus | R1 had <3/6 roles aligned |
| Decision is irreversible or expensive to reverse | Architecture choice, platform migration, public API shape |
| Two positions have genuine merit (not "A vs trivially-bad") | Real technical/strategic tradeoff, not a lopsided choice |
| The deliberation may actually change the outcome | CEO is genuinely willing to commit either way depending on synthesis |
CEO does NOT escalate to dialectic when:
Never invoke dialectic as the first tool on a fresh question. Always think-tank first; escalate only if the LOW consensus signal appears. For the design-panel aggregation rules, see decision-matrix.md.
User can downgrade to normal dev-flow anytime:
/goal as a convergence engine (Claude Code only)When running under Claude Code, the CEO can use /goal to drive autonomous convergence:
set the OKR's verifiable success criterion as a /goal condition and the session keeps
taking turns until a fresh evaluator confirms the criterion holds — turning the CEO's
"execute phases until done" loop into a harness-enforced one instead of a self-policed one.
This is optional leverage, not a requirement. It is gated:
/goal when the OKR has a transcript-checkable end state — the evaluator
is a small fast model that reads the conversation and does not run tools. "all tests in
test/x pass" works (Claude runs them, the result lands in the transcript); "the code is
well-architected" does not. Write the condition as something the CEO's own output proves./goal and a Stop hook both fire after every
turn; autopilot's hooks are side-effect-only and never block, so they don't interfere.disableAllHooks /
allowManagedHooksOnly is set), /goal is unavailable; the CEO falls back to re-prompting
at each phase boundary exactly as today. Never assume /goal exists; offer it, don't require it./goal, not the CEO — it's a session-scoped user command. The CEO's role
is to recommend a well-formed condition (and bound it, e.g. or stop after N turns) when
Level-3 full-autonomy work has a clean verifiable finish line.Requires CC v2.1.139+. Full behavior + fallbacks:
references/multi-agent-portability.md §7.
For unattended interval re-runs (vs converge-until-done), see project-config-template/loop.md.
/l3 /l4 /l5 /l6 and the dispatched foreman (Claude Code)/l3 /l4 /l5 /l6 <goal> are thin slash-command skills that enter CEO mode with the
four startup questions pre-filled (OKR from goal; involvement=just-results;
scope=Hold; project governance red lines when configured, otherwise no additional red lines) and
set the execution posture:
/l3 — CEO executes inline on this thread (the "全權處理" behavior as one command)./l4 — CEO dispatches ONE background, worktree-isolated sub-orchestrator foreman
(depth 1) that runs dev-flow; the CEO holds the depth-0 control loop (budget
cap → TaskStop + escalate; outcome→action table; merge-back; worktree GC) and
the authoritative qc verdict (depth-0 re-dispatch reading artifacts, distinct
from the foreman's first-pass qc)./l5 — /l4 with the implementer loop run through bin/autopilot.js engine implement-review (internally dispatch-hetero.sh; engine/runner resolved from
scripts/resolve-review-loop.sh, never hardcoded).
The mutating entry requires --campaign-contract <campaign.json>./l6 — /l5 with verification AUTHORING also leaf-dispatched to a heterogeneous
engine (different family than the implementer, via the dispatch-author.sh raw-prompt
rail); depth-0 keeps merge authority and the authoritative qc.Overrides: -x <csv> (red lines), --expand (scope), --solo (autonomy without offload
— also the degradation fallback when the foreman can't start). Full semantics
(topology, the P0-verified kill+reap mechanism):
references/level-front-door.md;
depth-0 control loop and run-summary ledger:
references/depth0-control-loop.md.
Which rail to call: the intent table in references/hetero-dispatch.md.
When idle and looking for the next item: node scripts/next-pick.js parse|pick (usage in skills/next/SKILL.md).
Confirm four things after receiving the user's goal only when no Owner Kernel governance config was injected. With a valid config, apply the resolved defaults above and proceed.
Not vague "do X well" but concrete conditions. Clarify if user is vague:
User: "Handle WS compression"
CEO: "Confirming goal: WS transfer reduced 50%+, no new client deps,
latency increase < 5ms. Correct?"
Ask directly:
How involved do you want to be?
- Every step -- report each decision point
- Phase reports -- report at each phase completion
- Just results -- full autonomy, notify when done
Ask which posture to take toward scope:
How should I handle scope?
- Expand — dream big, propose scope additions (user opts in to each)
- Selective — hold scope as baseline, but surface expansion opportunities for cherry-picking
- Hold — make it bulletproof, no scope changes in either direction
- Reduce — ruthless minimalism, strip to absolute essentials
Default if user doesn't choose: Hold for XS/S tasks, Selective for M/L/XL tasks.
Scope mode shapes how the CEO handles every fork in the road:
Once selected, commit to the mode faithfully. Do not silently drift. If Expand is selected, don't argue for less work later. If Reduce is selected, don't sneak scope back in.
Scope Mode and DOA interaction: Scope mode governs the CEO's posture toward opportunities — whether to look for them, how to present them. DOA governs authority — what the CEO can decide alone. In Expand/Selective mode, the CEO proposes additions but each addition that would increase total scope beyond the original goal still requires Board opt-in (presented as a recommendation, not a unilateral decision). This is not the same as DOA "scope expansion" escalation, which applies when the CEO discovers the original goal itself requires more work than expected.
Ask if anything is absolutely off-limits. If none, use default DOA.
Full DOA matrix with examples: references/doa-and-templates.md
| Decision Type | Examples |
|---|---|
| Tech selection | zstd vs deflate, which library |
| Research | Invoke autopilot:survey only when the unknown-escalation ladder probe says recommend: U2 with budget left; a judgment-only research wish is recorded as a ledger note, never dispatched |
| Unknown escalation | Ladder U0 local · U1 consult · U2 survey · U3 panel · U4 experiment · U5 owner. Climb U1–U4 when scripts/probe-unknown.js classify recommends them (budgeted per review-loop-config.md): U3 panel via dispatch-discuss when the discuss seat is qualified, else think-tank (whether) / debugger PUA (why); U4 = a spike in a throwaway worktree, only after a U2 receipt with the unknown still present, receipt --question --criterion --result. U5 (owner) is a Board escalation reached only by the caller's own stop (stall fuse / DOA stop) — classify never emits it |
| Team composition | Agent count, roles, parallel vs sequential |
| Implementation path | Phase order, file structure, API design |
| Error recovery | Build failure fix, test failure handling |
| Tactical pivot | Different implementation, same goal |
Record all decisions in CEO Report for traceability. No prior approval needed, but post-hoc transparency required.
| Decision Type | Example | Why |
|---|---|---|
| Goal change | "WS compression -> delta encoding instead" | Pivot beyond original authorization |
| Scope expansion | "Need to refactor X first" | Resources exceed estimate |
| Irreversible ops | Delete files/branches, force-push, drop tables | Cannot undo |
| Resources 2x+ | Work estimate doubles original | Exceeds implied budget |
Note on merge as an "irreversible op": Merging into develop is within CEO DOA for M/L/XL workflows; see references/level-front-door.md § "Mid-run question discipline".
When encountering these, pause and propose:
## Board Decision Needed
**Situation**: {what happened}
**Options**:
A) {option A + impact}
B) {option B + impact}
**CEO recommendation**: {which and why}
1. Confirm OKR + involvement level + scope mode + red lines
2. Enter the stage graph — size the task XS/S/M/L/XL (`--bug` for a bug, `--urgent` for `S!`), same criteria as dev-flow:
`node scripts/session-mode.js set --size <size> [--urgent] [--bug]`. Walk with
`node scripts/stage-advance.js --to <node>`; the node sequence is `node scripts/stage-graph.js nodes --size <size>`.
CEO mode does NOT exempt entry or the E1 size bump (see Scope Creep Detection).
3. IF M/L/XL (multi-deliverable work):
a. (L/XL) Create project dir (<projects_dir>/YYYY-MM-DD-<name>/) ← MANDATORY, not optional
projects_dir from `scripts/resolve-project-paths.sh --target <repo>`; never literal docs/.
`projects_dir: none` ⇒ STOP and ask the user where projects live; a mandatory step
with no location is a question, not a `none/…` path.
b. (L/XL) Write README.md with OKR, phases, success criteria
c. (L/XL) Update INDEX.md
d. Create feature branch
e. (L/XL) **Scope Completeness Audit** (`intent` node, MANDATORY before phase TaskCreate):
TaskCreate "intent: scope completeness audit" as the FIRST task. Walk the
dev-flow `intent` dimensions checklist (source/tests/docs/API/templates/CHANGELOG/
version/migration/consumers/dogfood). For each "yes" row, add a phase task
OR record it as explicitly out-of-scope in README. Do not proceed to (f) until
README scope boundary reflects this coverage. A phase plan that correctly
executes an incomplete scope still ships incomplete work.
f. TaskCreate phase tasks (P0..PN; each phase is a graph `unit`) AND (L/XL) both forcing-function tasks:
"intent: skill routing — invoke required skills for all affected code areas" and
"finish: invoke autopilot:finish-flow". Both are NON-OPTIONAL — missing either =
failed intent gate.
CEO mode does NOT exempt project setup. "I'll track it mentally" is NOT acceptable.
Review layers (per-phase verifier, one hetero code review on the full diff, qc gate): `node scripts/stage-graph.js nodes --size <size>`; strength per `scripts/resolve-review-loop.sh`.
4. IF urgent (`S!` / `M!`): create a `hotfix/<description>` branch; finish-flow carries the urgent closing (post-finish code-review for urgent-low M and up; XS/S urgency is a mark only) and learn is unconditional.
5. Execute phases:
- Within DOA? → CEO decides, record
- Beyond DOA? → Pause, propose to Board
6. Produce CEO Reports per involvement level
7. Need research? → run `node scripts/probe-unknown.js classify --ledger <ledger> --work-unit <run> --terms <nouns>`; invoke `autopilot:survey` only on `recommend: U2` with budget left, then `node scripts/probe-unknown.js receipt --ledger <ledger> --rung U2 --unknown-type <type> --terms <terms> --signals <ids from classify> --work-unit <run>`; a judgment-only wish becomes a ledger `note`, not a dispatch
8. Need multi-perspective analysis? → Invoke think-tank (see trigger rules above)
9. Need parallel execution? → Pick the first AVAILABLE entry from `.claude/dispatch-config.md` → Parallel Dispatch. If no config file exists, or `superpowers:dispatching-parallel-agents` is listed but the plugin is not installed, fall back to `native` — issue multiple `Task` tool calls in a single response. (dev-flow session rules inject team config either way.)
- **Unrelated work runs in parallel by default.** A new item that does not depend on the one in hand gets its own worker (subagent, hetero seat or member) at once; mechanical and read-only items go to a light seat. "Queued behind X" is valid only for a real dependency or the same scarce resource, named.
- For M/L/XL parallel dispatch: use Seven-Element Task Prompt from [references/task-prompt-templates.md](references/task-prompt-templates.md)
- Every subagent prompt MUST include a `### SKILLS` section instructing the subagent to invoke each required skill via the Skill tool before touching code. Paraphrasing a skill's methodology in the prompt is NOT a substitute — same discipline dev-flow's intent-node skill routing enforces on the main session, applied to dispatch.
- Subagents report via [COMPLETION] / [ESCALATION] structured formats
10. At the `finish` node (every size): invoke `autopilot:finish-flow`. Execute all sub-tasks autonomously
within DOA. Do NOT pause between sub-tasks to ask the user — the forcing function is not
a pause point, it is a completeness gate.
11. Final CEO Report with complete decision log.
"This is a hard gate" in passive markdown is still passive markdown. The size gate is mechanical:
stage-advance.js into verify or qc-gate compares the diff to the size limits
(node scripts/stage-graph.js limits --size <size>) and exits 4 with bump_to when the work outgrew its size.
CEO mode provides no exemption: run session-mode.js set --size <bump_to>, advance to
stage-graph.js next --from <current stage> under the new size (never retry the original --to), and for a bump
into L/XL create the project dir + README + INDEX retroactively and record prior commits as completed phases.
Scope expansion (L/XL work grows beyond its original README scope boundary):
After every phase, ask: "Does remaining scope still match the README scope boundary?"
Indicators:
- New subsystem not listed in original README phases
- Public API surface larger than original estimate
- Estimate doubled (2x+ original effort)
If expanded → Board Decision required (NOT within CEO DOA):
→ Pause. Present Board Decision with situation + options + CEO recommendation.
→ Update README scope boundary only AFTER Board approves.
→ Record in CEO Report decision log.
This maps to the existing DOA "Resources 2x+ / Scope expansion" entries — CEO cannot approve scope expansion unilaterally even in Hold or Selective mode.
Hard-stop mechanism independent of CEO judgment:
| Trigger | Action |
|---|---|
| 3 consecutive build/test failures with same fix strategy | Pause, change strategy or report |
| Scope drift (modified files unrelated to goal) | Pause, self-check |
| Context near limit | Write the handoff as a backup and keep working; auto-compact restores context |
CEO cannot self-audit. Like corporate governance -- CEO cannot chair the audit committee:
Report templates and format: references/doa-and-templates.md
User responses to reports:
The task tree is dormant: do not run scripts/tree.js. See docs/dev/adr/0002-task-tree-and-qc-panel-dormant.md. Historical procedure: references/tree-adapter.md.
| Wrong | Right |
|---|---|
| Ask user about every small decision | Tactical: autonomous + record |
| Report only good news | Risks and bad news are more important |
| Skip quality-pipeline "because I'm sure" | the qc-gate node runs it before finish; finish-flow re-checks at the merge boundary |
| Pivot without evidence | Must have data/research backing |
| Silently expand scope | Beyond original scope → must report |
| Same fix strategy after repeated failure | Consecutive failures → circuit breaker |
| L/XL work without project dir | Always create project + README + INDEX |
| "CEO mode exempts me from project tracking" | CEO wraps dev-flow, does not skip it |
| Scope grew past its size but no project created | Scope creep detection gate → stop and create |
| "I'll track it in my head" | TodoWrite is the tracking mechanism, not memory |
Ignore a stage-advance.js exit 4 (size bump) "because the diff is small enough in spirit" | The limits are stage-graph.js limits; bump with session-mode.js set --size <bump_to> and continue from next --from <current stage> |
| L-scope expansion approved autonomously by CEO as a tactical decision | Doubled estimate or new subsystem = DOA "Resources 2x+ / Scope expansion" = Board Decision; CEO cannot approve unilaterally |
| "Skip edge cases to save time" | Boil the Lake — completeness costs minutes with AI |
| Say "handle errors" without specifics | Name the error, trigger, recovery, and user impact |
| Drift from chosen scope mode mid-execution | Commit to the mode; raise Board Decision if mode itself needs changing |
| Decide without thinking through failure modes | Inversion reflex — always ask "what would make this fail?" |
Stop at "ready for PR, your call" at the finish node | Merge to develop is within DOA; invoke finish-flow and execute all its sub-tasks autonomously |
Inline the finish closing steps "because CEO is fast" | Speed does not mean skipping — invoke finish-flow; the TaskCreate forcing function IS the speed discipline |
Skip autopilot:learn at finish "nothing notable" | Evaluate the 5 learn-trigger questions first; for urgent work, learn is unconditional MANDATORY |
Skip the intent Scope Completeness Audit "because the task is obvious" | Scope holes are invisible until after you've shipped the wrong deliverable; the audit is cheap and the alternative is not |
| Enumerate phases before running the scope audit | Scope audit determines WHICH phases exist; phase TaskCreate comes second |
| Bump version in one file from memory without grepping | Always grep <old-version> across the repo first; if the grep returns N hits, the edit list must touch all N. Memory drops files (marketplace.json, README badges) silently |
| Absorb external OSS / prior art design without crediting source | The intent audit Credit / attribution row triggers — README's Inspired By section is part of scope, not an afterthought caught by the user pointing it out post-merge |
| Dispatch subagent with prompt that paraphrases a skill's methodology | The subagent must invoke the skill via the Skill tool — same as dev-flow's intent-node skill routing enforces on the main session. Paraphrasing loses fidelity (full checklist / red-line rules / rationalization table). Every M/L/XL dispatch prompt must include the ### SKILLS section per references/task-prompt-templates.md |
| Dispatch Fable-class model as a delegate | Manager (depth 0) is Fable-class; Fable is NEVER dispatched — delegates are opus/sonnet-class at most |
| Delegate to depth 3 without a Board decision | v1 depth limit is 2 (manager → sub-orchestrator → worker); depth-3 requires a named bound + escalation rule approved by the Board |
When a host supplies a verified TaskAuthorityEnvelope, current RoleExecutionGrant, and matching
generated profile payload, consume that projection without re-deriving model strength, risk,
topology, tools, effects, or authority. Missing or mismatched artifacts retain the existing guided
lifecycle and cannot enable autonomous guidance.
guided receives only the current six-field active slice; task graph, history, and other slices
remain host/project state.autonomous receives the bounded objective and latitude already present in the grant, without
adding lifecycle choreography.The profile changes guidance only. Existing DOA, hooks, assurance, effect, acceptance, and finish-flow gates remain authoritative.
No TaskCreate means bookkeeping is unavailable, not that a required capability is missing: keep going, record the tasks in the report instead, and never stop for it.
The profile-session.js prepare -> measure -> run -> check lane is a no-effect isolation probe.
run yields a same-process observation and check only validates rehashable disk structure;
neither qualifies an effectful child. Until P5 records an independently witnessed transport,
the already-loaded main plugin session remains the guided compatibility host. Never simulate an
autonomous switch by appending profile prose to that session.
When mission_convergence is configured, this section overrides every legacy Phase/P0 task
enumeration rule above. Before any TaskCreate, branch, worktree, runner, or model effect, run:
node <plugin>/scripts/mission-routing-admission.js \
--repo-root <repo> --level <entry-level>
READY; shadow records admitted/would_block without claiming authority;
off returns LEGACY.Phase/P0..PN headings, modules, reviewer seats, tests, retries, repairs, and fallbacks
are coverage or gates inside caller-authored bounded deliverables. They never authorize tasks
through one-for-one expansion.READY, a legacy "phase" means one admitted graph node. Create only those nodes as
implementation tasks; keep the historical implementation sequence in a separate README ledger.references/decision-matrix.md (opens in a new tab)references/depth0-control-loop.md (opens in a new tab)references/doa-and-templates.md (opens in a new tab)references/level-front-door.md (opens in a new tab)references/task-prompt-templates.md (opens in a new tab)references/tree-adapter.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cookys/autopilot --plugin autopilot32 skills in this plugin
/agent-callContact an already-running persistent coding-agent session via fleet v2 (fallback: Claude SendMessage + outbox). Use when: "通知 <host>", "跟 <host> 說", naming a fleet member/pane. Not for: opinions (→ consult), hetero review (→ hetero-review), new workers (→ /l4–/l6).
/auditCompare two existing implementations for feature parity and missing items. Use when: "compare X with Y", "verify X matches Y", "比對 X 和 Y". Not for: future plan review, single-bug debug, writing tests.
/brainstormPre-code Socratic design exploration that surfaces 2-3 approaches and gates coding until approved. Use when: "help me think through X", "還沒想清楚", "我不確定要怎麼做". Not for: existing options (→ think-tank), external research (→ survey), chosen approach/quick fix (→ dev-flow).
/debugEvidence-first debugging for correctness bugs, crashes, and flaky tests. Use when: diagnosing bugs, crashes, or intermittent failures. Not for: performance/latency/memory issues (→ profiling).
/dev-flowStart here before writing any code — sizes the task (XS/S/M/L/XL, bug, urgent `!`), sets up branch and session rules. Use when: "I'm starting on X", "quick fix for Y", "continuing from yesterday", "hotfix needed", "let's implement X", "skip to coding", "我要開始做 X", "快速修一下", "接續昨天的進度", resuming a feature branch, or any task that touches code. Not for: debugging (→ debug), authoring a plan doc (→ references/plan-template.md), pre-code design exploration (→ brainstorm), or code review (→ quality-pipeline).
/distillDistill recurring procedures from conversation history into personal custom skills (never into autopilot). Use when: "/distill", "提煉我的重複流程", "turn my repeated workflow into a skill". Not for: autopilot skills, planning (→ dev-flow), one-off facts (→ learn), git metrics (→ retro).
Other plugins' skills for the same job