Repository navigation
Description
Epic: Coding-agent subagents on MOCA
The scenario
A developer works in a coding agent. Claude Code is the first client; any agent that can run a CLI or an MCP server can follow. Midway through a task, the agent spawns subagents: a few research questions, a dependency audit that ends in a proposed change, and later an implementation attempt on a branch. They run as MOCA sessions: Pi with the developer's promoted bundle (ADR-0030; today the bundle comes from Claude Code's /promote), with tools in a MOCA sandbox.
The developer closes the laptop. The subagents keep running on MOCA. One stops to ask "bump lodash to 4.17.21 in 14 packages?", and the developer approves from their phone. When they reopen the agent, it already knows what finished, what failed and what is waiting. It pulls the results in as bounded summaries and patch files, and reviews them before anything touches the working tree.
The coding agent stays the orchestrator. MOCA gives its subagents durable, isolated, managed execution that outlives the laptop, which built-in subagents can't do because they live inside the agent's process.
Why Pi with a promoted bundle, not the coding agent itself, as the subagent runtime. Coding agents such as Claude Code run their tools inside their own process, so the brain can't be separated from the hands.
- Running it in the worker puts model-written shell next to the API key in the hardened worker.
- Running all of it inside the sandbox loses the Redis session seam, compaction and scale-to-zero.
Pi gives the split by construction. The parity contract is whatever /promote preflight carries: skills, the CLAUDE.md chain, memory as a read-only snapshot, and the core tools. Parity is defined per source agent. Claude Code's /promote is the only promotion path today; another agent's config format would need its own, which this epic doesn't cover. Pi has no Task tool (promotion spec §9), so the fan-out is flat: the tree lives in the orchestrating agent.
Vocabulary (per #279)
| Term | Meaning |
|---|---|
| coding agent | The orchestrator the developer works in. Claude Code is the first client; any agent that can drive mocactl or an MCP server can be one. |
| subagent | The coding-agent user's word. One subagent is one MOCA session. |
| leaf turn | A turn MOCA runs for a session on the leaf path. Today that is data-plane POST /runs with kind = prompt, converge or solve. |
| async turn | A leaf turn submitted now and run later by a worker. Per #279 it is async: true on a session, never a second /v1/runs resource. |
| batch | Subagents spawned together. It lives on the caller's side (the coding agent's ledger), not in MOCA (#279 resolution item 2). A later server grouping identity would be parentSessionId. |
Where things stand
Written against main @ 24c6f5e; the rows for the bundle, tokens, client disconnect, mocactl and Knative were re-checked on 2026-10-13 against main @ 08eb2a9. file:line references in the other rows are from 24c6f5e and may have drifted.
| Part | State |
|---|---|
| Sessions, login, per-user credentials on the VM | Works. The control plane is on deploy/vm (#366) and on deploy/k8s (#426). Credential shapes and curl/git in the sandbox landed in PR #372 (#368). The #367 acceptance run is open. |
| Leaf runtime: sandbox lease, bundle overlay, Pi loop, compaction, result record, gate park/resume | Works. Sync and async paths share it through runLeaf. |
| Async leaf turns with authentication | Refused, 501 (packages/knative-server/src/server.ts, the async: true branch of /runs, MI1 R7). Pending MU2. |
| Queue consumer on P6 or compose | None. The only one is packages/knative-server/src/leaf-job.ts under KEDA (ADR-0015), which ADR-0041 deprecated on 2026-10-11 (removal no earlier than the end of October 2026). |
| Client disconnect | Sync /runs keeps running and writes its result record. This is still accidental, not a contract: ADR-0028 has no disconnect text (A1, #380). /v1/turn aborts by default, but with SH_TURN_DETACH=1 (on for compose, vm and k8s), a session token and SSE, a turn can opt into detachable: true. It then survives a disconnect, and mocactl re-attaches or cancels over a per-turn frame log and lease (#481, ADR-0040). mocactl spawn relies on the detached sync /runs path (#496). |
| Bundle | A session's configRef is set at creation (mocactl promote, mocactl run --config; #458, ADR-0038), and /v1/turn takes it from the control-plane exchange. prompt and solve leaves load it (solve since #468); converge doesn't yet (#397). /runs still reads configRef from the request body, not from the session. |
| Turn state | A missing record reads as queued (server.ts:678-680). There's no running and no heartbeat. One result record per session, 24 h TTL (server.ts:49). |
| Events, notifications, cancel, caps, quotas (#360) | None. |
| Tokens | API token 15 min, with a rotating, revocable refresh token (30 days idle, 90 days at most; #467, ADR-0039). Session token 5 min. mocactl auth token gives a hook a fresh token without a prompt. |
| Coding-agent integration (Claude Code plugin first) | None. deploy/claude/ has /promote. |
mocactl subagent commands |
Partly. spawn, subagents and get landed (#496, with a local ledger). watch, approve/reject, follow-up and the async backend are not built. mocactl also has login/logout, auth token, sessions, credentials, run, promote and bundles. |
What each leaf kind can do today
| Kind | Loads your bundle | Gets a repo | Returns | Can ask you (gate) |
|---|---|---|---|---|
prompt |
✓ | ✗, except through a /workloads workspace |
text (responded) |
✗ |
converge |
✗ (#397) | ✓ clones repoUrl+ref |
verdict | ✓ (request_approval) |
solve |
✓ (#468) | ✓ clones repoUrl+ref |
patch, with no base commit | ✗ |
The implementation subagent in the scenario (your skills, your repo, a patch, and the ability to ask you) isn't one leaf kind today.
The target flow
- Spawn. The plugin submits an async turn per subagent to the control plane: kind, prompt, repo/ref, caps, and an idempotency key. The control plane writes an owned turn record and queues a reference to it. No bearer token goes in the queue (MI1 §6.5). The response is
202with the session id and turn id. The plugin records each subagent in a local ledger. - Execute. A P6 leaf worker takes the turn. It gets grants minted from the turn record (MI1 §6.2 and §6.5), marks the turn
runningwith a heartbeat, leases a sandbox, overlays the bundle and runs Pi. It writes the result and artifacts, and emits an event. - Observe. While the user is at the laptop,
mocactl watch --jsonruns under the agent's background-monitor facility (Claude Code's Monitor tool). Each state change is one line, so the agent reacts without polling from inside its context. - Detach. The laptop closes. Queued and running turns carry on, and tokens don't matter while you're away because grants are minted at dequeue.
- Gate. A leaf calls
request_approval. The session parks, the control plane emits an event, and the notifier pushes to the phone. A decision through an API that requires login queues the resume as an async turn, and a gate deadline fires a default action. - Reattach. On reattach (
claude --resumein Claude Code), a SessionStart-style hook reads events since its cursor and injects "while you were away: 2 responded, 1 paused (gate 0: …)". - Collect.
getreturns a bounded summary. Text and patches go to files, and patches carry their base commit. The agent applies a patch into a worktree, verifies it with a sandboxed leaf, and can send a follow-up turn to the same session.
Principles for the long-term track
- Session-centric (Ambiguity between "run" and "session" — clarify or eliminate the term #279). A subagent is a session and its work is turns. Batches stay with the caller.
- The control plane owns what is pending (MI1 §6.5). Grants are minted from the turn record at dequeue.
- The server enforces safety. Archetypes §5.1 expects a deterministic, non-LLM orchestrator, and a coding agent is neither. So MOCA treats it as an untrusted, nondeterministic external caller: caps, cancel, quotas, idempotency and gate deadlines hold even if the client misbehaves. Durable orchestration inside MOCA, if it ever comes, is deterministic.
- The client owns the experience and the review: the ledger, UX, patch review and verification. MOCA supplies the primitives: events, bounded artifacts, decisions.
- P6 first, substrate-neutral. The Knative/KEDA path isn't extended (RA1; deprecated by ADR-0041). Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426's
deploy/k8sruns the P6 process model on Kubernetes and is equally in scope: whatever lands must work on the Epic: VM demo slice — P6 + P4 on one VM, multi-user mocactl login, sandbox research turns #370 VM and ondeploy/k8s, not just one.
Children (dependency order)
Each child is written so a planner can start it in a fresh session.
Track A: a quick demo on the #370 VM or the #426 K8s stack. Fan out research subagents from a coding agent (Claude Code, the first client, is what the demo is written for), quit or close the laptop, reopen, and a hook reports the results. It relies on detached sync /runs prompt leaves, pinned as an interim contract. #426's deploy/k8s (slice 1, #423) runs the same processes, env and wire as the VM — only the process manager, addressing and isolation differ — so the demo is written against the common API and verified on both substrates: the VM first, then deploy/k8s (port-forwards on Kind, Routes on OCP).
- Coding-agent subagents A0: spike — detached sync /runs prompt leaves on the #370 VM and the #426 K8s stack #379 — A0: spike. Detached sync
/runsprompt leaves on the VM and ondeploy/k8s(Kind or OCP). Closed 2026-11-16 as not planned: the mechanism shipped without the spike (feat: mocactl subagent commands - spawn, subagents, get #496), async turns superseded what it was deciding (ADR-0047), and its saturation and restart steps belong in A1's contract text. - Coding-agent subagents A1: pin "a client disconnect doesn't cancel sync /runs" as an interim contract #380 — A1: pin "a client disconnect doesn't cancel sync
/runs" as an interim contract. Done: test: pin the sync /runs disconnect contract, and retire its interim status (#389, #380) #878 documents and tests the contract and retires its interim status; feat(knative-server): async leaf worker on P6 (#389 M1) #717 made worker admission count/runs. - Coding-agent subagents A2: mocactl subagent commands (spawn, subagents, get, watch, approve, follow-up) over today's API #381 — A2: mocactl subagent commands over today's API. Nearly done:
spawn,subagents,get(feat: mocactl subagent commands - spawn, subagents, get #496),get --wait,watch(feat(control-plane, mocactl): an owner-scoped event stream, and watch follows it (#392) #963) and the async backend (spawn --async, feat(mocactl): spawn --async, a subagent backed by a turn record (#381) #922) have landed;approve/rejectis in review (feat(mocactl): approve and reject a subagent's gate (#381) #1010). Remaining:follow-upalone. - Coding-agent subagents A3: promote a demo bundle over an SSH tunnel (VM) or a port-forward (K8s) #382 — A3: promote a demo bundle to the VM over an SSH tunnel. Independent. Largely superseded:
mocactl promotegoes through the control plane (feat: promote config bundles through the control plane from mocactl (ADR-0038) #458, ADR-0038), so no tunnel is needed. The demo bundle and skill remain. Works unchanged againstdeploy/k8sthrough a supervisor port-forward (Kind) or the passthrough Route (OCP): it is the same front door. - Coding-agent subagents A4: demo-grade Claude Code plugin (skill, SessionStart hook, statusline) #383 — A4: demo-grade Claude Code plugin (skill, SessionStart hook, statusline). Depends on A2, A3.
- Coding-agent subagents A5 (optional): a gated converge subagent asks for approval #384 — A5 (optional): a gated converge subagent asks for approval. Depends on A2.
- Coding-agent subagents A6: demo runbook #385 — A6: demo runbook. Depends on A2–A4 (and A5 if included). One runbook, two substrates: the VM (Epic: VM demo slice — P6 + P4 on one VM, multi-user mocactl login, sandbox research turns #370) and
deploy/k8s(Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426), the waydeploy/k8s's README is the sibling ofdeploy/vm's.
Track B, milestone B-M1 "detached for real": async turns on P6, turn state, cancel and caps.
- Coding-agent subagents B1: design — async leaf turns on sessions for P6 (spec + ADR) #386 — B1: design async leaf turns on sessions for P6 (spec + ADR). Done: docs: design P6 async fan-out — spec + ADR-0047 (#386) #696 (spec + ADR-0047), docs: point Archetype A at ADR-0047 instead of "no P6 equivalent" (#690 step 1) #697.
- Coding-agent subagents B2: control plane — async turn submission and turn records #387 — B2: control plane: async turn submission and turn records. Done: feat(control-plane): async turn submission and turn records (#387) #704.
- Coding-agent subagents B3: grants minted at dequeue from the turn record (no bearer in the queue) #388 — B3: grants minted at dequeue from the turn record. Done: feat(control-plane): resolve an async turn's credential at dequeue (#388 M1) #713 (credential resolved at dequeue), feat(control-plane): mint and refresh a turn's two grants (#388) #807 and feat: mint turn grants at dequeue and redeem them at the inference listener (#388) #822 (both grants minted at dequeue, redeemed at the inference listener).
- Coding-agent subagents B4: async leaf worker on P6 (deploy/vm, compose) #389 — B4: async leaf worker on P6. Done: feat(knative-server): async leaf worker on P6 (#389 M1) #717, with test(k8s): prove the async leaf consumer on deploy/k8s, and document its capacity #765 proving the consumer on
deploy/k8s. - Coding-agent subagents B5: turn state (running/lost), per-turn results, artifacts and retention #390 — B5: turn state, per-turn results, artifacts and retention. Done: feat: per-turn artifacts, a bounded status read, and seven-day retention (#390) #840 (per-turn artifacts, a bounded status read, seven-day retention).
- Coding-agent subagents B13: budgets, per-subject quotas and cancel #391 — B13: budgets, per-subject quotas and cancel. Depends on B2, B4. feat: detachable turns — re-attach to a running turn after mocactl quits (#471) #481 added cancel for detachable
/v1/turnturns only. The per-subject quota is also tracked as Supervisor: per-subject admission quota #360.
Milestone B-M2 "away mode":
- Coding-agent subagents B6: owner-scoped event stream of session and turn state #392 — B6: owner-scoped event stream. Done: feat(control-plane, mocactl): an owner-scoped event stream, and watch follows it (#392) #963 — the SSE stream, and
mocactl watchreading it instead of polling. - Coding-agent subagents B7: gates v2 — gates on prompt/solve leaves, decision API, deadlines #393 — B7: gates v2 (gates on prompt/solve leaves, decision API, deadlines). Done: feat(393): gates v2 -- any leaf kind, an async decision route, and a deadline #972 — any leaf kind, an async decision route, a deadline sweep.
- Coding-agent subagents B8: notifications for paused and finished subagents #394 — B8: notifications. Done: feat(control-plane): push notifications for paused and finished subagents (#394) #998.
- Coding-agent subagents B14: long-lived client authentication (refresh or revocable client tokens) #395 — B14: long-lived client authentication. Done: feat: long-lived client authentication — rotating refresh tokens for mocactl (B14, #395) #467, ADR-0039.
- Coding-agent subagents B11: coding-agent integration v1 (MCP server; Claude Code plugin first — hook, statusline, drift warning) #396 — B11: coding-agent integration v1 (MCP server; Claude Code plugin first). Depends on A2's transport seam, B2, B5, B6.
Milestone B-M3 "implementation subagents":
- Coding-agent subagents B9: one leaf kind with bundle, repo, patch and gate #397 — B9: one leaf kind with bundle, repo, patch and gate. Depends on MI1 S3, B5, B7. Partly done: session-bound
configReflanded (feat: promote config bundles through the control plane from mocactl (ADR-0038) #458) and solve loads it (feat(harness): Extend config bundle to solve leaves #468). Converge, the repo/patch/gate unification and the base commit remain. - Coding-agent subagents B10: workspace handoff (WIP refs, base commit) and private repos #398 — B10: workspace handoff and private repos. Depends on B9; MI1 S4/S5 for private repos. Partly overlapped: feat(remote-worker): per-session workspace directory on the container tier (#408) #461 gives each session its own workspace directory, and feat: let local agents delegate tasks to Moca #455/feat: run tasks on a workload's context in shared sandboxes #494 upload selected local files as a workload Context. Re-scope against them.
- Coding-agent subagents B12: patch safety and remote verification #399 — B12: patch safety and remote verification. Depends on B9, B10.
- Coding-agent subagents B15: capability manifest per bundle digest #400 — B15: capability manifest per bundle. The route depends on MI1 S3; a local variant can go now.
Milestone B-M4 "beyond":
- Coding-agent subagents B16: design — durable orchestration (declarative continuations vs re-entrant leaves) #401 — B16: design durable orchestration (declarative continuations vs re-entrant leaves). After B-M1, B-M2.
- Coding-agent subagents B17: docs, ADR amendments and deprecations #402 — B17: docs, ADR amendments and deprecations. Ongoing.
Related work (not children):
- design: one CLI for delegating subagent tasks to Moca #495 — design: one CLI for delegating subagent tasks. Done: the CLI converged on
mocactl(feat: mocactl subagent commands - spawn, subagents, get #496, feat(mocactl): workloads create/get/delete and spawn --workload #520, feature:mocactl workloads listto enumerate caller's live workloads #552), confirmed 2026-10-14. A2 and A4/A6 use it. - feat: let local agents delegate tasks to Moca #455 — PR: let local agents delegate tasks to Moca (
moca-delegate-taskskill, context transport). Closed without merging; the context transport landed instead as/workloadsphase 1 (feat: /workloads phase 1 — owner-bound workloads with a Context #482, feat: run tasks on a workload's context in shared sandboxes #494). The delegate skill itself is unbuilt and is A4's (Coding-agent subagents A4: demo-grade Claude Code plugin (skill, SessionStart hook, statusline) #383) to carry. - /workloads phase 2: give each workload its own sandboxes and, optionally, durable storage #476 —
/workloadsphase 2: per-workload sandboxes and optional durable storage. Done: feat(provisioner): per-workload sandboxes, without a PVC (phase 2, PR 2) #588 (provisioner), feat(provisioner): give each workload a PVC that its tasks share (phase 2, PR 3) #600 (per-workload PVC), feat(relay): trusted workload labels from signed attach tokens #560 (trusted labels), feat(demo): two-user Kind demo for per-workload sandboxes (phase 2, PR 4) #604 (two-user demo). Re-scope B10 (Coding-agent subagents B10: workspace handoff (WIP refs, base commit) and private repos #398) against it. - Landed since this epic was written: feat: mocactl subagent commands - spawn, subagents, get #496 (part of A2), feat: detachable turns — re-attach to a running turn after mocactl quits (#471) #481 (detachable turns), feat: promote config bundles through the control plane from mocactl (ADR-0038) #458 (promote through the control plane), feat: long-lived client authentication — rotating refresh tokens for mocactl (B14, #395) #467 (B14), feat(harness): Extend config bundle to solve leaves #468 (solve bundle), feat(remote-worker): per-session workspace directory on the container tier (#408) #461 (per-session workspace), feat: /workloads phase 1 — owner-bound workloads with a Context #482 and feat: run tasks on a workload's context in shared sandboxes #494 (
/workloadsphase 1). - B-M1 and B-M2 are complete apart from Coding-agent subagents B13: budgets, per-subject quotas and cancel #391's remainder and Coding-agent subagents B11: coding-agent integration v1 (MCP server; Claude Code plugin first — hook, statusline, drift warning) #396: B1–B5 (Coding-agent subagents B1: design — async leaf turns on sessions for P6 (spec + ADR) #386–Coding-agent subagents B5: turn state (running/lost), per-turn results, artifacts and retention #390), B6 (Coding-agent subagents B6: owner-scoped event stream of session and turn state #392), B7 (Coding-agent subagents B7: gates v2 — gates on prompt/solve leaves, decision API, deadlines #393), B8 (Coding-agent subagents B8: notifications for paused and finished subagents #394) and B14 (Coding-agent subagents B14: long-lived client authentication (refresh or revocable client tokens) #395) are all merged. Coding-agent subagents B13: budgets, per-subject quotas and cancel #391 (B13) was re-scoped on 2026-11-18 to two leftovers — a cluster-wide per-subject bound (
SubjectCounteris per-worker and in-process) and per-session spend attribution, which first needs the tokens-vs-cost decision; per-turn cost attribution split out as Per-turn cost attribution: a price table, and caps.costUsd enforced instead of refused #859, andcaps.costUsdis refused with a 400 because nothing here prices a token.
What the demo does NOT claim (say so in the runbook)
- It uses the interim detached behavior of sync
/runs, not async turns. A supervisor or worker restart loses in-flight subagents, and nothing retries them. - Results expire after 24 h. There are no notifications.
- Claude Code only. The CLI and API are agent-neutral, but Track A builds a plugin, hook and statusline for Claude Code alone.
- Only prompt leaves carry the bundle. The demo is research only; no patches are applied locally.
- The client caps its own concurrency, because P6 admission counts only
/turn(packages/knative-server/src/worker.ts:37,:117). - All of Epic: VM demo slice — P6 + P4 on one VM, multi-user mocactl login, sandbox research turns #370's limits apply on the VM, and Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426's equivalents on K8s: shared container sandboxes (MI1 S5), direct credential mode (MI1 S2), open egress including instance metadata (deploy/vm: sandboxes can reach cloud instance metadata (169.254.169.254) #357), plain HTTP. On
deploy/k8s, isolation is NetworkPolicy and Secrets rather thannftables/isolate=strict(and the kube API, kubelet and machine-config ports are blocked from sandboxes); the detach requirement also rules out port-forward-only access — use a Route (or equivalent) when the laptop isn't the client.
Interaction with #370, #426 and the MI1 roadmap
- Built on Epic: VM demo slice — P6 + P4 on one VM, multi-user mocactl login, sandbox research turns #370's VM or Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426's K8s stack. The single-user demo doesn't need VM demo B: two users log in with mocactl against the P6 VM (device-flow acceptance, ownership checks) #367. On Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426, the limits that matter are NetworkPolicy instead of
nftables/isolate=strictisolation, shared container sandboxes, and (Kind) plain HTTP over port-forwards — same effective envelope as the VM. - Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426 slice 2 (P4 hosts over TLS) is optional for this epic. The demo targets the container tier; a P4-tier demo would also need Sandbox tier selection and session-to-sandbox affinity in selectPoolSandbox (P6-on-K8s slice 3) #425 (tier selection) for more than one host.
- MI1 §6.6 first-subject pin. Once S2 lands,
MOCA_TENANCY=singlerefuses every subject after the first. A two-user version of this demo needsmulti, and so S5. - S3 moves
configRefto session creation. That landed for/v1/turnwith feat: promote config bundles through the control plane from mocactl (ADR-0038) #458 (ADR-0038)./runsstill readsconfigReffrom its body and doesn't yet refuse it underSH_REQUIRE_AUTH. Once it does, Track A's mechanism ends, so the leaf-turn transport (feat: mocactl subagent commands - spawn, subagents, get #496) keeps bundle naming in one place. - B3 needs S2's grants. S2's
turn_expcap (start + MOCA_TURN_MAX_S, MI1 §6.1–6.2) must allow hour-long detached turns. - B9 needs S3. B10's private repos need S4/S5 (
sandbox-egress). - Vocabulary. MU1 §4.2 and MI1 §6.5/§10 still say "owned
/v1/runs". Per Ambiguity between "run" and "session" — clarify or eliminate the term #279 that becomesasync: trueon sessions (B1 corrects the specs).
Risks to design against
- Results flow into the most privileged process there is. That's the user's local coding agent (Claude Code, say), often in bypass-permissions mode or its equivalent.
- Returned text can carry prompt injection.
- A patch that touches
.claude/settings.json, hooks,Makefile, package scripts or.pre-commit-config.yamlruns on the laptop at the nextmake test. - B12 covers this: returned text is data, patches go through a path policy and into a worktree, verification runs in a sandbox, and nothing is auto-applied.
- Runaway fan-out with nobody watching. Cancel, caps and quotas ship with async turns (B13), not after them.
- At-least-once delivery (ADR-0015). Side effects outside the session must be idempotent.
- Context economics. A built-in subagent returns one final message.
getmust return bounded summaries and write the full content to files. MCP output limits apply. - Parity drift. A local
.claudethat has changed since the last promote runs stale on MOCA, and skills that mention Claude Code-only tools quietly degrade (B11, B15). - Positioning against coding agents' own remote features (Claude Code's, for one). The plugin must say why MOCA: self-hosting, a choice of sandbox tier and model provider, per-user credential custody, durable gates, compaction.
Decisions needed from the owner
| # | Question | Proposed answer |
|---|---|---|
| Q1 | Is an LLM orchestrator acceptable given archetypes §5.1? | Yes, as an external, untrusted caller, with all safety enforced on the server. |
| Q2 | Async API shape per #279? | Async turns on sessions (for example POST /v1/sessions/{id}/turns {async:true}), no batch resource. B1 decides. |
| Q3 | Any server-side grouping? | No. The caller's ledger plus the existing owner listing. Revisit with parentSessionId (B16). |
| Q4 | Pin detached sync /runs for the demo (A1)? |
Yes, and retire it in B4. |
| Q5 | Default retention for results and artifacts? | 7 days, configurable. |
| Q6 | First notification channel? | A signed webhook, plus ntfy (self-hostable). |
| Q7 | Demo tier? | Container tier for research. P4 (#369) as an optional local-content act. |
| Q8 | Interim grants before S2? | Allowed under single only, tested and flagged as interim. |
Working conventions
- Plans live in
docs/plans/(gitignored), one per child, written withsuperpowers:writing-plans. - Commits are signed off (
git commit -s) with anAssisted-Bytrailer. - Anyone using the shared KVM rig alerts the owner first.
Retitled 2026-10-12 from "Claude Code subagents": the epic now covers coding agents in general. Claude Code stays the first client and the reference integration.
Updated 2026-10-13: refreshed the statements that merged work had made stale (bundle, tokens, client disconnect, mocactl, Knative deprecation), annotated the affected children, and listed related work.
Updated 2026-11-24: ticked the ten children that closed since (#379 as not planned; A1 and B1–B8 as completed), each with the PR that closed it, corrected A2's remaining scope to follow-up alone, and marked the three related-work items that have closed. The Where things stand and What each leaf kind can do today tables still describe main @ 24c6f5e and are stale against the async turn, gate, event-stream and notification work — they are not rewritten here.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew/ToDo
Activity
[-]Epic: Claude Code subagents on MOCA — detached, gated, collectable leaf sessions[/-][+]Epic: Coding-agent subagents on MOCA — detached, gated, collectable leaf sessions[/+]feat(mocactl): spawn --async, a subagent backed by a turn record