.gitagent/missions/
Mission YAML — scope, gate_command, interrogation record
Install the CLI, scaffold the GXT substrate in your repo, legislate a mission, run work inside TMVC across your agent graph, and prove pass with `gantry verify` at each gate. Three roles — Planner, Executor, Verifier — keep scope and evidence separate. In a wired IDE, your agent can run most graph hops via MCP tools and setup skills; you approve scope and merge, not every shell command.
Install
OpenGantry is a local CLI (gantry) — no hosted dashboard required. Use
curl or PowerShell if Node.js is not on your PATH yet (they
bootstrap Node 24 LTS). npm, pnpm, and bun
need Node 24+ already installed.
curl -fsSL https://opengantry.ai/install.sh | sh
powershell -c "irm https://opengantry.ai/install.ps1 | iex"
npm install -g @jeger-ai/opengantry
pnpm add -g @jeger-ai/opengantry
bun add -g @jeger-ai/opengantry
Confirm the binary and substrate readiness:
gantry --version gantry doctor
Bootstrap
From your project root (empty repo or existing codebase), scaffold the GXT substrate. The tutorial walks the first change graph; headless CI uses gantry init --yes --no-ci.
gantry init --tutorial git config core.hooksPath .githooks gantry planner set "$(git config user.email)" gantry doctor
gantry init writes the foreman map, planner rules, example mission, hooks, and
integration stubs. gantry planner set allowlists your email for legislative
commits. gantry doctor catches missing hooks, digest drift, and config issues
before you legislate. After init, you can ask your agent to finish bootstrap from
.gitagent/planner/AGENT-SETUP.md instead of running every command yourself.
.gitagent/missions/ Mission YAML — scope, gate_command, interrogation record
.gitagent/foreman/MANIFEST.json Skill routing, TMVC roots, risk tiers
.gitagent/planner/RULES.md Planner law and verification rules
.githooks/ Pre-commit and pre-push enforcement
EXECUTOR_LOG.md Verbatim gate output quotes for verify
Roles
Every change follows the same contract: legislate scope → execute inside it across your orchestration graph → verify with structured output at each gate. The roles can be different people, workers, or agent passes — verify must not be the same actor who edited without trace evidence.
Every change is a small graph: legislate → commit → pin → execute → verify. One IDE session is a single-node graph; orchestration buses add parallel workers on the same mission YAML. Step 6 below (audit) is the reviewer grep after verify passes.
Legislates mission YAML — TMVC roots, forbidden zones, and `gate_command`. Commits with `[MSN-XXXX]` before any executor runs. Allowlisted via `GANTRY_PLANNER_EMAILS`.
Human or agent. Edits only inside the pinned mission scope. Appends verbatim PASS quotes from gate output to `EXECUTOR_LOG.md` — not summaries.
`gantry verify` — separate from whoever edited. Runs gates, checks trace mapping, and emits pass or structured `findings[]`. Fail closed; no chat override.
Day-to-day: pin the active mission, run work, log PASS quotes, verify before push. Your
existing CI gate becomes the gate_command — OpenGantry adds scope, trace, and
machine-readable failures.
gantry pin .gitagent/missions/MSN-0042.ship-feature.yaml eval "$(gantry runtime env)" npm test gantry verify --json
You do not need to type this sequence every time. With Cursor MCP (
gxt_pin_mission, gxt_verify, gxt_runtime_exec) or the
setup skill, your agent can pin, run gates, append trace quotes, and verify after you approve
the mission — same artifacts, less copy-paste.
Walkthrough
What OpenGantry enforces on each change. Steps are for learning the chain — or delegate to your agent via MCP (gxt_*) or the setup skill after you approve scope.
Define TMVC roots and gate_command in mission YAML before any edits.
What your agent needs
gantry legislate "Fix login spinner loading state" --msn MSN-0001 --skill-key gantry --gate-command "npm test"
Confirm tmvc_roots in .gitagent/missions/MSN-0001.fix-login-spinner.yaml (e.g. src/features/auth/**). Interactive alternative: gantry start with the same MSN flags.
IDE
gantry init scaffolds hooks, MCP (gxt_* tools), rules, and .gitagent/planner/AGENT-SETUP.md. Once wired, you describe intent in chat — the agent legislates, pins, runs gates, and verifies. You approve scope and Planner commits; you do not need to copy-paste every command from the step-by-step guide.
gantry doctor gantry pin .gitagent/missions/MSN-0001.fix-login-spinner.yaml
Optional
Brownfield repo? Scan conventions first — discovery writes .gitagent/discovery-proposal.json with file:line evidence. Blueprint turns confirmed findings into TARGET_ARCHITECTURE.yaml and verification_plan.json. Nothing becomes law until you accept it.
gantry init --discover --domain code gantry blueprint --domain code --yes
gantry init --discover --domain content gantry blueprint --domain content --yes