Skip to content

docs: trim AGENTS.md for token efficiency (249 → 112 lines) - #80

Merged
jonnyparris merged 1 commit into
mainfrom
docs/trim-agents-md
May 25, 2026
Merged

docs: trim AGENTS.md for token efficiency (249 → 112 lines)#80
jonnyparris merged 1 commit into
mainfrom
docs/trim-agents-md

Conversation

@jonnyparris

Copy link
Copy Markdown
Owner

Every line of AGENTS.md loads in every session. Move reference material to dedicated docs that only load when relevant.

Changes

File Lines Purpose
AGENTS.md 249 → 112 Keeps focus, commands, rules, where-to-look table, git discipline, top-level file map, architecture, invariants
docs/system-prompt.md new (63) System prompt design + tool surface
docs/skills.md new (25) Skill loader + MCP CRUD
docs/file-map.md new (57) Full src/ map
docs/linting.md new (10) Two-layer linting rationale
docs/deploying.md new (15) Probe details + experimental-flag history

No behavior change — pure reorganisation.

Modelled on the agent-hq AGENTS.md, which keeps a hard 300-line target and pushes longer content into skills/docs/memory.

Every line of AGENTS.md loads in every session. Move reference material
to dedicated docs that only load when relevant.

- docs/system-prompt.md  — system prompt design + tool surface (was inline, 64 lines)
- docs/skills.md         — skill loader + MCP CRUD (was inline, 25 lines)
- docs/file-map.md       — full src/ map (was inline, 35 lines)
- docs/linting.md        — two-layer rationale (was inline, 10 lines)
- docs/deploying.md      — probe details + experimental-flag history (was inline)

AGENTS.md keeps: focus, commands, rules, where-to-look table, git
discipline (condensed), top-level file map (8 entry points), architecture
diagram, invariants. No behavior change — pure reorganisation.
@jonnyparris
jonnyparris marked this pull request as ready for review May 25, 2026 12:18
@jonnyparris
jonnyparris merged commit be56d8d into main May 25, 2026
1 of 2 checks passed
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