You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(scaffold): default to minimal multiagent block; full contract opt-in via --contract (#610)
Adding gitguardex to a repo injected a 171-line multi-agent contract into
AGENTS.md by default. Default install now ships a ~10-line minimal block
(agent branch + worktree, claim files, finish via PR); the full contract is
opt-in via --contract (alias --full). --minimal/--no-contract force minimal.
ensureAgentsSnippet selects the template by options.contract and never
downgrades an existing full block (line-count detector >40 non-blank lines).
The flag is parsed in the shared parseCommonArgs and forwarded through both
sandbox re-spawn builders (setup + doctor) and the recursive doctor child
argv, so protected-base and nested runs keep the chosen variant.
Tests: flip setup/doctor contract assertions to the new minimal default; add
a CLI test (minimal default -> --contract upgrade -> no-downgrade) and a unit
test guarding both sandbox argv builders forward --contract.
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Guardex is enabled by default. Disable via repo-root `.env` with `GUARDEX_ON=0`.
5
+
6
+
- Work from an `agent/*` branch + worktree — never edit the protected base (`main`/`dev`) directly. Start with `gx branch start "<task>" "<agent-name>"`, then `cd` into the printed worktree.
0 commit comments