Thin-core prompt diet: cut always-injected contract ~53% (AGENTS/TOOLS/RUNTIME) #528
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
mosaiclauncher inlines the fulldefaults/AGENTS.md+defaults/TOOLS.md+runtime/claude/RUNTIME.mdinto every session's system prompt (~8.8k tokens), re-fed every turn, regardless of agent role. The intended "thin core that references guides" drifted into a monolith, and the load order mandated reading guides up front.Approach (diet-only)
Re-apply a validated thinning design to the repo's CURRENT content — no behavioral change, nothing imported from drifted deployments:
AGENTS.mdto a core: all 12 hard gates verbatim, condensed operating rules + Superpowers, conditional guide-loading index, on-demand load order.TOOLS.mdcatalog with an index; preserve the catalog in newguides/TOOLS-REFERENCE.md(read on demand).runtime/claude/RUNTIME.md(dedup the tier table, terser pointers).Validation
Result
Composed AGENTS+TOOLS+RUNTIME: 8,827 → 4,122 tok (−53%), every gate intact. Benefits all runtimes (AGENTS/TOOLS are shared across claude/codex/pi/opencode).
Notes