Repository navigation
Open
Labels
Description
Part of the Coding-agent subagents epic (#378). Item A6. Depends on A2 (#381), A3 (#382) and A4 (#383), plus A5 (#384) if it's included.
Goal
docs/demos/claude-code-subagents-demo.md in the repo's demo conventions: acts, expected output, "Notes and limits", cleanup. Someone who didn't build it can run it.
Acts
- Setup (off camera):
mocactl login;/promotethe demo bundle (Coding-agent subagents A3: promote a demo bundle over an SSH tunnel (VM) or a port-forward (K8s) #382 — over the SSH tunnel on the VM, or the port-forward on K8s); install the plugin (Coding-agent subagents A4: demo-grade Claude Code plugin (skill, SessionStart hook, statusline) #383). - Fan-out. In Claude Code: "Research these three questions in parallel on MOCA." Claude spawns three subagents, starts
mocactl watchunder Monitor, and keeps talking. The statusline showsmoca: 3 running. - Detach. Quit Claude Code, or close the lid.
mocactl subagentsfrom another machine, or the stack's logs (journalctlon the VM,kubectl logson K8s), shows the sessions still working, withcurl/gitin their sandboxes. - Reattach.
claude --resume. The hook reports "while you were away: 3 responded". Claude fetches the bounded summaries (full text goes to files) and synthesizes. - Gate (optional, Coding-agent subagents A5 (optional): a gated converge subagent asks for approval #384).
Notes and limits (must be stated)
- The demo uses interim detached sync
/runs(Coding-agent subagents A1: pin "a client disconnect doesn't cancel sync /runs" as an interim contract #380), not async turns. A supervisor or worker restart loses in-flight subagents, with no retry. - Results expire after 24 h. There are no notifications.
- Only prompt leaves carry the bundle. It's research only; no patches are applied locally.
- The client caps its own concurrency, because P6 admission ignores
/runs. - 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, direct credential mode, open egress including instance metadata (deploy/vm: sandboxes can reach cloud instance metadata (169.254.169.254) #357), plain HTTP. On K8s, isolation is NetworkPolicy and Secrets rather than
nftables/isolate=strict, and on Kind the demo runs over port-forwards, which means the "another machine" in act 3 is out of reach without a Route — state that, or use OCP for the detach act.
Coordination
- Epic: VM demo slice — P6 + P4 on one VM, multi-user mocactl login, sandbox research turns #370 plans its own runbook (probably
docs/demos/vm-multi-user-demo.md). Either reference its setup section, or become an act inside it. Don't duplicate VM setup. The Epic: P6 on Kubernetes — process manager, relay, Redis and control plane as K8s workloads; only P4 on a VM/bare metal #426 stack's setup isdeploy/k8s/README.md; reference, don't duplicate.
Acceptance
- Someone who didn't build it runs the demo end to end from the runbook on at least one substrate (VM or K8s), and the cleanup section leaves the substrate as it was. Run it on both once before calling Track A done.
Working conventions (for a fresh session)
- Workspace:
git fetch, then create a worktree fromrossoctl/main(never localmain), under.worktrees/. Populate and buildpi-fork(git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), thenpnpm install. A worktree without the pi-fork build does not typecheck. - Plans: write the plan with
superpowers:writing-plansintodocs/plans/<date>-<slug>.md. Plans are gitignored and never committed. Write it in chunks, one append per task. - Pre-flight table: list every process entrypoint, systemd unit, env example and shell/Go launcher whose boot contract changes, not only TypeScript call sites.
- Tests: Redis on 6379 must be up. Use each package's own
node_modules/.bin/vitest. vitest can exit non-zero with every test green, so grep the log forErrors. Redirect long output to/tmp/kagenti/....make lintskips untracked files. - Commits:
git commit -swithAssisted-By: Claude (Anthropic AI) <[email protected]>, neverCo-Authored-By. - Shared KVM rig: alert the owner before using it, record a manifest of what you install, and verify cleanup.
- Don't push or open PRs without the owner's go-ahead.
Activity
[-]Claude Code subagents A6: demo runbook[/-][+]Coding-agent subagents A6: demo runbook[/+]