Skip to content

Coding-agent subagents A6: demo runbook #385

Open

Description

@pdettori

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

  1. Setup (off camera): mocactl login; /promote the 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).
  2. Fan-out. In Claude Code: "Research these three questions in parallel on MOCA." Claude spawns three subagents, starts mocactl watch under Monitor, and keeps talking. The statusline shows moca: 3 running.
  3. Detach. Quit Claude Code, or close the lid. mocactl subagents from another machine, or the stack's logs (journalctl on the VM, kubectl logs on K8s), shows the sessions still working, with curl/git in their sandboxes.
  4. Reattach. claude --resume. The hook reports "while you were away: 3 responded". Claude fetches the bounded summaries (full text goes to files) and synthesizes.
  5. Gate (optional, Coding-agent subagents A5 (optional): a gated converge subagent asks for approval #384).

Notes and limits (must be stated)

Coordination

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 from rossoctl/main (never local main), under .worktrees/. Populate and build pi-fork (git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), then pnpm install. A worktree without the pi-fork build does not typecheck.
  • Plans: write the plan with superpowers:writing-plans into docs/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 for Errors. Redirect long output to /tmp/kagenti/.... make lint skips untracked files.
  • Commits: git commit -s with Assisted-By: Claude (Anthropic AI) <[email protected]>, never Co-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

  1. added
    documentation
    enhancement
    on Sep 30, 2026
  2. changed the title [-]Claude Code subagents A6: demo runbook[/-] [+]Coding-agent subagents A6: demo runbook[/+] on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions