# vyom-gaami

Holds coding agents to the vyom-gaami method through their own hooks: triage → discover →
design → plan → sketch → build → validate → harden → reflect. Each phase may only change
certain files, and the agent can't stop until the phase's checks pass. A person approves the
gates in Matrix. Works with Claude Code, Codex and Cursor.

```sh
npm i -g vyom-gaami
vyom-gaami login                                     # then send the code to @vyom in Matrix
cd your-repo && vyom-gaami init                       # onboard the repo (once)
```

After that, just prompt your agent.

**The PR check.** Hooks keep agents on the method; the PR is the boundary hooks can't
guarantee. `init` writes `.github/workflows/vyom-gaami.yml`, which runs `vyom-gaami verify`:
the PR head must be exactly the commit the method accepted, the tests must pass at the head, and
they must have failed at the sketch commit (test-first). The job proves itself to the factory with
GitHub Actions OIDC, so there is no token or secret to create: `init` writes the workflow with
`id-token: write`, and running `vyom-gaami init` again upgrades an older workflow (a CI secret it
used can be deleted). Pull requests from forks get no token from GitHub and fail the check; open the
change from a branch in the repo.

Make "vyom-gaami / verify" a required check in the branch ruleset, and protect
`.vyom-gaami/` and `.github/` with CODEOWNERS. Design and decisions: GnosisHub/vyom-factory
(`docs/architecture/enforcement.md`).

**Node versions.** The CLI runs on Node 20.17+ or 22.5+ (`^20.17.0 || >=22.5.0`; Node 21 and 22.0 to 22.4 lack an API it needs). Node 20 reached end of life on 2026-04-30, so
on Node below 22 the interactive commands (`login`, `init`, `start`, `review`) print a one-line
notice to stderr, once per machine per CLI version; hooks and `verify` never do. On any other Node the
CLI exits with a clear message.
