refactor(template): trim multiagent-safety contract 447→171 lines (62%)#607
Merged
Merged
Conversation
Drop Colony-specific coupling so the contract is generic to any Claude Code / Codex / agent-tool setup. Reorganize into a tighter load-bearing surface plus an "Optional companion tooling" section for fff/rtk/OpenSpec. Kept verbatim (tests + downstream repos depend on these): - Toggle (GUARDEX_ON=0/1) - "Small tasks stay direct and caveman-only" task-size routing - "Promote to full Guardex / OMX orchestration only when scope grows into" - "final completion/cleanup section" - "PR URL + final `MERGED` evidence" - External approval boundary section - "Guardex cannot bypass Codex host approval prompts" - "request approval for the narrow `gx branch finish ...` command" - "instead of standalone `git push` / `gh pr`" - `### Token / context budget` and `### Caveman style` section headings - Primary-tree lock command list - Six-step completion definition Dropped: - `### Colony coordination loop` block (Colony is optional, not gx core) - `### Working-state notes` redundant with handoff format - Verbose RTK/Caveman tool catalogs (now one-line summary in "Optional companion tooling") - "Multi-Agent Execution Contract: Guardex + Colony" header → just "Multi-Agent Execution Contract" Test updates: 3 phrase assertions migrated from Colony-specific literals to the new generic wording. 38 pass / 6 fail (= baseline, zero new failures). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Trim
templates/AGENTS.multiagent-safety.mdfrom 447 → 171 lines (62% reduction) while keeping every load-bearing rule. Drop the implicit Colony coupling so the contract reads as generic to any Claude Code / Codex / agent-tool setup, not just Colony-equipped repos.What's preserved (verbatim — tests + downstream repos depend on these)
GUARDEX_ON=0|1toggle wordingMERGEDevidence"git push/gh pr" finish-flow rule### Token / context budgetand### Caveman stylesection headingsWhat's dropped or condensed
### Colony coordination loop— Colony is optional companion tooling, not gx core. The whole 70-line MCP-tool catalog → moved into a 3-bullet "Optional companion tooling" section (fff/rtk/OpenSpec, no Colony).### Working-state notes— redundant with the handoff format above it.Test impact
test/setup.test.js.Net effect on consumer repos
Every repo that runs
gx setupafter this merges sees theirAGENTS.mdshrink by ~276 lines on next refresh. No behavior change to gx commands themselves.🤖 Generated with Claude Code