buildlisted
Install: claude install-skill taipt1504/claudehut
## Dispatch contract (read this FIRST)
This phase executes parallel groups via **`scripts/run-parallel-group.sh`** — one `claude --print` process per task, each in an isolated git worktree. Workers are FULL headless sessions (not Agent-tool subagents), so they load skills/hooks normally; persona guardrails are injected via `--append-system-prompt` and the model is pinned to `sonnet` for cost. Concurrency is guaranteed at the OS level; the script handles worktree lifecycle, result parsing, merge-back, and the per-group gate automatically.
### Parallel-group execution loop
```
PLAN = .claudehut/plans/<task-id>-plan.md
TASK_ID = claudehut-state task-id
GROUPS = sorted distinct "Parallel group:" values in PLAN (1, 2, 3 …)
# ── Stub step (sequential, ONCE before any group) ─────────────────────
# Scaffold compiling skeletons for every type/signature the plan introduces,
# committed to the branch. Workers branch from this commit, so they cannot
# invent divergent signatures (drift), reference a missing type (hidden dep),
# or merge-then-break (semantic conflict).
Run: scripts/scaffold-stubs.sh "$ARGUMENTS" TASK_ID
Exit 1 (stubs do not compile) → surface to user; STOP
# ── Group loop ──��─────────────────────────────────────────────────────
for G in GROUPS:
Run: scripts/run-parallel-group.sh "$ARGUMENTS" TASK_ID PLAN G
# subagent_type = "claudehut-builder" (each worker follows builder instructions)
# script merges passing branches, then runs a per-group compile+tes