Commit 435415e
feat(agents): add /pm-dispatch PM loop and os-dev developer subagent (#4540)
* feat(agents): add /pm-dispatch PM loop and os-dev developer subagent
Adds a project-manager dispatch mechanism for Claude Code sessions:
- .claude/skills/pm-dispatch/SKILL.md — the PM agent protocol: pull ready
issues from the GitHub backlog (pm:queue label or explicit list), claim
them, dispatch each to a parallel os-dev subagent, verify the returned
reports against GitHub (PR exists, scope, test evidence), then dispatch
the next batch. Uncertainties are escalated as needs-user-decision
issues for the maintainer instead of guessed at. All loop state lives
in GitHub (labels/assignees/PRs), so the loop is resumable from a
fresh session.
- .claude/agents/os-dev.md — the single-issue developer subagent: own
worktree, branch claude/issue-<n>-<slug>, implementation + tests +
changeset, draft PR, structured JSON report back to the PM; returns
needs_decision instead of guessing on contract-shaping ambiguity.
Both are internal agent tooling (metadata.internal: true), outside the
published skills/ catalog.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* chore: add empty changeset (internal .claude tooling releases nothing)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* feat(agents): pm-dispatch cloud mode — dispatch each issue as an independent cloud session
mode:cloud spawns one fresh cloud session per issue via Claude_Code_Remote
poke-only triggers (create_trigger + fire_trigger), with report collection
through GitHub issue comments and send_later sweeps, since an independent
session has no direct return channel to the PM. Default stays mode:subagent.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* feat(agents): pm-dispatch multi-repo coordination (backend/frontend/cloud)
- One main backlog in objectstack; repo:objectui / repo:cloud labels route
the dev agent's target repo while the issue stays in the backlog.
- Contract-first splitting for cross-repo features: parent + per-repo
sub-issues, spec/backend first, Blocked-by lines gate downstream
dispatch (verified against GitHub at selection time).
- Linkage chores become pm:queue issues (e.g. objectui accept => file the
objectui:refresh console-bump chore in objectstack).
- Label setup now covers all three repos + routing labels on the backlog.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* feat(agents): fix two-axis analysis frame for all needs-decision escalations
Every escalated option must be analyzed on (1) long-term architectural
soundness for this project (North Star, no workarounds, contract-first)
and (2) making AI-written code — especially AI-authored metadata apps —
structurally hard to get wrong (strict schemas, publish-time rejection,
declared = enforced, never lenient consumer fallbacks). Applied to both
the PM's [decision] issue template and the os-dev needs_decision report.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 800bdb0 commit 435415e
3 files changed
Lines changed: 398 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
0 commit comments