-
Notifications
You must be signed in to change notification settings - Fork 1
How The Pieces Fit
How the phases, adapters, templates, scripts, and this wiki interact — the narrative behind the on-disk map. For the map itself see Repo layout; for why the phase gates and the doc convention exist, see the AgentM HLD and the Foundations HLD.
The phase specs in harness/ are the single source of truth. Each adapter is a thin shim that points at a canonical spec rather than restating it.
┌──────────────────────────────────────────┐
│ crickets developer-workflows plugin │
│ (phase specs — source of truth) │
│ harness/agents/*.md │
│ harness/skills/*.md │
└────────┬─────────────────────────┬────────┘
│ referenced-by │ referenced-by
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ adapters/ │ │ wiki/ │
│ claude-code/ │ │ (THIS repo's │
│ antigravity/ │ │ own docs only) │
└────────┬─────────┘ └──────────────────┘
│ copied-by
▼
┌───────────────────────────────────────────┐
│ install.sh / install.ps1 │
│ reads ONLY from templates/ + adapters/ │
│ (NEVER from wiki/ — installer boundary) │
└────────┬───────────────────────────────────┘
│ drops into
▼
┌───────────────────────────────────────────┐
│ target-project/ │
│ .harness/ .claude/ .agents/ │
│ AGENTS.md CLAUDE.md │
│ wiki/ (empty scaffold from templates/) │
│ .github/workflows/wiki-sync.yml │
└───────────────────────────────────────────┘
Why it holds together: every adapter file is expected to cite a harness/<phases|agents|skills>/ path, and scripts/check-references.py fails CI if an adapter points at a spec that doesn't exist. That's what keeps the two supported adapters — Claude Code and Antigravity — in lockstep: they are pointers at the same canonical text, not parallel rewrites. Adding a host is a matter of writing pointers, not re-authoring the workflow.
install.sh and install.ps1 read from only two roots:
-
$HARNESS_ROOT/templates/— the scaffold every project gets (state files, hooks, wiki scaffold, the wiki-sync workflow). -
$HARNESS_ROOT/adapters/— the per-host commands, agents, and skills.
They never read from wiki/ (the dogfood docs for this repo), scripts/ (this repo's test infra), or .github/workflows/tests-*.yml (this repo's CI). That boundary is what keeps the harness's own documentation from leaking into every project it installs into.
The boundary is enforced in three layers: the top-of-file comment in install.sh, the runtime ensure_boundary_src guard inside cp_managed, and the byte-for-byte assertions in scripts/test-install.sh and scripts/smoke-install-bash.sh. The full rationale is in the Foundations HLD.
CI runs on Linux, macOS, and Windows in parallel, and every gate is deterministic and blocking — they run before any agentic review, because the harness treats typecheckers and tests as the truth and LLM reviews as augmentation. The full list is in CI gates.
- Product intent — the problem the harness solves.
- Repo layout — the on-disk map this narrative describes.
- CI gates — what each CI workflow proves.
- Host adapters — how a single canonical spec reaches each host.
- Phase-gated workflow design · Documentation convention design.