Skip to content

docs: regenerate stale AGENTS.md marker block, de-dup token-discipline (plan phase 2)#612

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/phase2-regenerate-stale-agents-marker-bl-2026-06-03-11-12
Jun 3, 2026
Merged

docs: regenerate stale AGENTS.md marker block, de-dup token-discipline (plan phase 2)#612
NagyVikt merged 1 commit into
mainfrom
agent/claude/phase2-regenerate-stale-agents-marker-bl-2026-06-03-11-12

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

@NagyVikt NagyVikt commented Jun 3, 2026

Automated by gx branch finish (PR flow).

…e (plan phase 2)

Phase 2 of the gitguardex improvement plan: token efficiency, docs only.

- Regenerate this repo's AGENTS.md managed marker block from the trimmed
  templates/AGENTS.multiagent-safety.md (171 lines) via scaffold.ensureAgentsSnippet;
  the stale pre-#607 433-line full contract refreshes to the current 171-line full
  contract (no minimal downgrade). AGENTS.md 570 -> 307 lines, ~1,400 tokens/session
  reclaimed in the always-loaded contract. CLAUDE.md symlink benefits too.
- .agent/TOKEN-DISCIPLINE.md: replace duplicated token-budget bullets (and the now-false
  "canonical copy lives in markers" framing) with a pointer to the marker subsection plus
  the heuristics unique to the subdoc.

Tests: 551 pass / 24 fail / 1 skip, identical to baseline (doc-only, no test reads these files).
@NagyVikt NagyVikt merged commit 75b6f77 into main Jun 3, 2026
@NagyVikt NagyVikt deleted the agent/claude/phase2-regenerate-stale-agents-marker-bl-2026-06-03-11-12 branch June 3, 2026 09:23
NagyVikt added a commit that referenced this pull request Jun 3, 2026
…plan phase 6) (#619)

Phase 6 of the gitguardex improvement plan (Caveman-only scope): trim the shipped
multiagent contract that lands in every gx-managed repo's AGENTS.md.

- Remove the ### Caveman style subsection from templates/AGENTS.multiagent-safety.md
  (generic terseness guidance agents already get from their persona; ~150 tokens
  per installed repo). KEEP ### Token / context budget (referenced by the
  .agent/TOKEN-DISCIPLINE.md pointer added in #612).
- Re-generate this repo's AGENTS.md managed block from the trimmed template.
- Update test/prompt.test.js + test/setup.test.js template-content assertions; also
  refreshed pre-existing stale assertions in the prompt --snippet test (Colony/RTK/FFF
  headings that no longer exist post-#607), turning that test GREEN.

Deferred (recon-overstated, needs test rewrites): Kitty stack consolidation (A10/A11).

Verification: node --test 34 -> 33 failures (prompt --snippet test fixed); zero new
failures; openspec validate (change --strict + --specs) pass.

Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant