A feature-shipping orchestrator for Claude Code: spec, then an architect's plan, then parallel domain builders, then a review gate, then a pull request, with every hand-off recorded in an append-only audit trail that a validator can check.
When a single coding agent takes a multi-layer feature (schema, API, server logic, UI) from spec to PR, three things go wrong. One context builds every layer in sequence and drifts from the spec as it goes. The agent that wrote the code also decides it is done and commits it, so nothing independent checks the work against the success criteria before it lands. And there is no record: when something breaks, you cannot tell which agent decided what, or why a file changed. Engineering leads who want to let agents ship real features need a plan, a gate and a trail they can audit, not a longer prompt.
- Plan first. An Architect reads the spec and the target project and writes
plan.mdwith a concrete task and file hints per domain. ItsFEATURE_PLANmessage decides which experts run. - Build in parallel, in narrow lanes. Backend, frontend, API and DB experts are spawned at once, each confined to its task.
- Gate before shipping, with no bypass. One reviewer per expert checks the work against the spec's success criteria, plus an optional security reviewer. Any
blockedverdict, or a security risk score of 7/10 or more, stops the run and writesblock-report.mdwith required fixes. Nothing is committed. - Ship only what was reviewed. The Shipper stages exactly the files the experts reported. No
git add -A, no workspace files, no force push. - Audit trail as a contract. Every message is appended to
workspace/messages.jsonl.scripts/validate-messages.mjschecks a trail against the protocol parsed fromCLAUDE.md, so the rules live in one place.
spec -> architect -> [backend | frontend | api | db] -> [reviewer per expert (+ security)] -> gate -> shipper -> PR
\-> blocked: block-report.md
Roles, phases, message schemas, gates and failure handling: docs/ARCHITECTURE.md.
Requires Node.js 20+ for the validators. Nothing to install: the repository is markdown plus dependency-free scripts.
examples/conductor-phase1-run/ is a real session: the input spec, the Architect's plan, four domain reviews, the final state.md and the 13-message audit trail.
git clone https://github.com/Caezarr/Vulcan && cd Vulcan
npm run checkExpected output (excerpt):
✅ SUCCESS: All skills and agents are indexed in docs/INDEX.md
✓ 8 agents, 1 skill(s), 2 feature spec(s) valid against 5 protocol message types
✓ examples/conductor-phase1-run/messages.jsonl: 13 messages conform to the protocol
# tests 25
# pass 25
# fail 0
Then read the run in order: feature.md (input), plan.md, review-*.md, state.md. To see the gate's audit invariant fail, append a premature SHIP_DONE to a copy of the trail (macOS/Linux):
T=$(mktemp -d)
head -3 examples/conductor-phase1-run/messages.jsonl > $T/m.jsonl
echo '{"type":"SHIP_DONE","session":"vulcan-20260331-001","feature":"conductor-phase1","branch":"x","commit_sha":"abc","pr_url":null}' >> $T/m.jsonl
node scripts/validate-messages.mjs $T/m.jsonl✗ .../m.jsonl: line 4: SHIP_DONE is missing "pr_number"
✗ .../m.jsonl: line 4: SHIP_DONE is missing "files_shipped"
✗ .../m.jsonl: line 4: SHIP_DONE is missing "summary"
✗ .../m.jsonl: line 4: SHIP_DONE before review of: backend, frontend, api, db
The validator exits 1.
Requires Claude Code with agent teams enabled, git, and gh if you want the PR opened for you.
git clone https://github.com/Caezarr/Vulcan ~/vulcan # elsewhere: export VULCAN_DIR=<path>
cd ~/vulcan
cp skills/vulcan.md ~/.claude/skills/ # installs /vulcan
cp templates/feature.md features/my-feature.md # fill in frontmatter + success criteriaThen, in Claude Code:
/vulcan features/my-feature.md
/vulcan features/my-feature.md --no-pr
/vulcan features/my-feature.md --skip-security --skip-agents frontend,db
Reviewers check success criteria literally, so make them measurable (templates/README.md). Watch workspace/state.md during the run, and validate the trail afterwards with node scripts/validate-messages.mjs workspace/messages.jsonl. Step-by-step first run: docs/QUICKSTART.md. Runbook: docs/OPERATOR.md.
/vulcan <spec>(skills/vulcan.md) parses flags, builds the session config and hands off to the protocol inCLAUDE.md(phases 0 to 7).- Phase 1: the Architect emits
FEATURE_PLAN(agents_needed,tasks,file_hints, API contract, data model, risk flags). - Phase 2: every needed expert is spawned before any is awaited; each reports
IMPLEMENTATION_DONEwith the files it created or modified and a self-assessment. - Phase 4: one reviewer per expert, plus the security reviewer if the spec asks for it, all in parallel. They emit
REVIEW_RESULTandSECURITY_RESULT. - Phase 5 gate: any
blocked, orrisk_score >= 7, ends the run withblock-report.md. Minor issues giveapproved_with_notes, which ships. - Phase 6: the Shipper creates the branch, commits only the reported files, pushes and opens the PR, then emits
SHIP_DONE.
The orchestrator never edits the target project; it writes only state.md, messages.jsonl and block-report.md. Details: docs/ARCHITECTURE.md.
| Check | What it proves |
|---|---|
npm run validate:index |
every agent and skill file is listed by path in docs/INDEX.md |
npm run validate:definitions |
agent, skill and feature-spec frontmatter is consistent with the 5 message types parsed from CLAUDE.md; every type has an emitter and appears in that agent's output contract |
npm run validate:messages |
the sample trail follows the protocol: schema per type, one session, FEATURE_PLAN first, only assigned agents report or are reviewed, every expert reports before review, SHIP_DONE only after a passed gate |
npm test |
25 node:test cases for the parser, lint rules, gate decision and audit-trail invariants |
| CI | runs all of the above on every pull request |
- There is no application code to unit-test: the system is the protocol, the role prompts and the validators. Whether an expert writes correct code or a reviewer catches a real issue depends on the model and the spec, constrained by the gate, not proven by the tests.
- The sample run was captured before
SHIP_DONE(statusSHIP_READY, shipper still running), had no security review, and contains repeatedIMPLEMENTATION_DONEmessages from three experts and twoREVIEW_RESULTs for backend. All reviewers approved, with minor notes. - Depends on Claude Code agent teams, which can change between Claude Code releases.
- The audit validator checks structure and ordering, not whether the content of a message is true.
- A blocked run is resumed manually: fix what
block-report.mdlists, then re-run with--skip-agentsfor experts that already passed.
npm run validate:index
npm run validate:definitions
npm run validate:messages
npm test
npm run check # all of the above, what CI runsLayout: CLAUDE.md (protocol), agents/ (one role prompt each), skills/ (/vulcan), templates/ (spec template), features/ (your specs), examples/ (a real run), scripts/ (validators), tests/, docs/, workspace/ (runtime, git-ignored).
See CONTRIBUTING.md, SUPPORT.md, SECURITY.md and CODE_OF_CONDUCT.md.