Repository navigation
docs: trim duplicated harness guidance - #255
Merged
Merged
Conversation
AGENTS.md diet PR 2 of 3 (data/agentsmd-diet-s2/report.md, move-plan items 3-4; redundancy item 2 folded into item 3). Removed the five claude/codex/grok/pi/opencode model/effort-flag bullets from section 4 - byte-for-byte duplicated by harness-adapters' "Launch profile axes" table (which is already a superset: it carries verified CLI versions per adapter that the AGENTS.md bullets lacked). Replaced with a one-line pointer; the skill is already loaded before every spawn per section 4's own closing trigger, so no new trigger was needed. Moved the config/secondmate-harness model/effort pin-format detail (the `<harness> [<model>] [<effort>]` line format, the secondmate-model/secondmate-effort accessors, back-compat, and the durability-across-respawn behavior) into secondmate-provisioning, which is already a mandatory load at every secondmate lifecycle touchpoint. Added the destination content to the skill first, then replaced the AGENTS.md paragraph with a 3-line pointer. Mechanical audit - every removed line's new home: - 5 harness bullets (claude/codex/grok/pi/opencode model+effort flags, per-harness max-omission rationale) -> already present in harness-adapters SKILL.md's "Launch profile axes" table (lines 53-59), confirmed fact-by-fact before deleting. - "config/secondmate-harness may also pin..." paragraph (pin format, bare-harness back-compat, secondmate-model/secondmate-effort accessors, per-spawn override precedence, respawn durability, secondmate-only scope) -> secondmate-provisioning SKILL.md's "Charter and seed" section, added verbatim before this trim. - The following paragraph (inheritable config: crew-dispatch.json, crew-harness, backlog-backend) is untouched - out of scope for this PR, still inline. - The bootstrap CREW_DISPATCH effort-mismatch diagnostic sentence is untouched - not part of the five-bullet duplication, stays inline. No script changes. Section 4 shrinks from 104 to 87 lines (958 -> 901 total AGENTS.md lines) with zero facts lost: every fact is reachable through harness-adapters or secondmate-provisioning, both already mandatory loads at the relevant lifecycle points.
mielyemitchell
added a commit
to mielyemitchell/firstmate
that referenced
this pull request
Jul 6, 2026
Intent
AGENTS.md diet PR 2 of 3: trim section 4's per-harness harness/dispatch content that duplicates agent-only skills, per the agentsmd-diet-s2 scout report's move-plan items 3-4 (redundancy item 2 folded into item 3). (1) Removed the five claude/codex/grok/pi/opencode model/effort-flag bullets from section 4 - verified first that harness-adapters SKILL.md's 'Launch profile axes' table already contains every fact (and more: verified CLI versions per adapter) before deleting; replaced with a one-line pointer since harness-adapters is already loaded before every spawn per section 4's own closing trigger. (2) Moved the config/secondmate-harness model/effort pin-format detail (the [] [] line format, the secondmate-model/secondmate-effort accessors, back-compat, respawn-durability, and applies-only-when-file-governs subtleties) into secondmate-provisioning SKILL.md, which is already a mandatory load at every secondmate lifecycle touchpoint - added the content to the skill first, then replaced the AGENTS.md paragraph with a short inline pointer. Scope is intentionally narrow: only AGENTS.md section 4, harness-adapters SKILL.md, and secondmate-provisioning SKILL.md were touched; no other AGENTS.md sections and no script changes (that is out of scope for PR 3 of this diet series). Net effect: AGENTS.md shrinks from 958 to 901 lines with zero facts lost - every fact removed from AGENTS.md is reachable through one of the two skills, both already mandatory loads at the relevant lifecycle points. A full mechanical line-by-line audit (every removed line's new home) is in the commit message.
What Changed
AGENTS.mdsection 4 and replaced it with a pointer to the existing harness adapter skill.config/secondmate-harnesspin-format and accessor details into the secondmate provisioning skill, keeping lifecycle-specific guidance with the mandatory secondmate instructions.Risk Assessment
✅ Low: Captain, risk is low because this is a narrow documentation relocation with the removed facts still reachable through the relevant mandatory skills and no script behavior changes.
Testing
The full configured baseline was already green; I then ran the two focused behavior suites for dispatch-profile launch flags and secondmate harness/model/effort behavior, plus a reader-facing documentation routing audit showing AGENTS.md at 901 lines with the removed facts reachable through
harness-adaptersandsecondmate-provisioning. All checks passed, and the working tree stayed clean.Evidence: AGENTS.md diet routing audit
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"Baseline already completed before this validation:command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"bash tests/fm-spawn-dispatch-profile.test.shbash tests/fm-secondmate-harness.test.shGenerated evidence withrg/awkextracts into/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KWQDDA6HC0VGJVVR3QJ5G3G3/agentsmd-diet-routing-audit.txtManual repository checks:git diff --name-only 2db0a5ddbd31b781549cb8684341305ddcae2246..HEAD, targetedrgchecks for moved per-harness and secondmate pin details, andgit status --shortcleanup check✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.