Skip to content

docs(rules): tighten wording to cut always-on token cost (lossless)#20

Merged
Lyther merged 1 commit into
mainfrom
docs/rules-concision
Jul 5, 2026
Merged

docs(rules): tighten wording to cut always-on token cost (lossless)#20
Lyther merged 1 commit into
mainfrom
docs/rules-concision

Conversation

@Lyther

@Lyther Lyther commented Jul 5, 2026

Copy link
Copy Markdown
Owner

What

Wording-only compression of the always-on rules 0006 and scoped 10/11/14. Filler removed, verbose constructions collapsed, bullets sharing a subject merged. No information removed — every normative clause, enumerated item, tool, flag, error code, and command preserved; frontmatter byte-identical.

Excludes 12-go/13-typescript (in flight in #19) to avoid conflict; they get the same pass after #19 lands.

Reduction (honest)

Set Before After Δ
always-on 0006 28,159 B 27,369 B −790 (−2.8%)
scoped 10/11/14 8,220 B 8,173 B −47

Small on purpose: the rules were already dense, and the constraint was zero information loss. Lossless wording tweaks are near their floor here.

Verification

  • Every touched file's git diff reviewed line-by-line — each removed line is filler/redundancy, never a rule. The one structural change (Rust) merges two adjacent bullets keeping both sentences verbatim.
  • check rules · check · build --target all · test — all green. Frontmatter (description/globs/alwaysApply) byte-identical everywhere.

The bigger lever (not done here — your call)

If context budget is the real goal, wording isn't where it is. 04-cybersecurity alone is ~29% of the always-on budget (7.8 KB) and loads into every session, including non-security work. Making it glob-scoped (alwaysApply:false) would reclaim far more than this whole PR — but security work lacks a clean file-glob trigger, so it's a policy tradeoff (risk: the rule won't load when needed), not a wording change. I didn't touch it unilaterally. Say the word if you want to explore a trigger for it.

by mass-energy equivalence

Wording-only compression of always-on rules 00-06 and scoped 10/11/14: drop
filler/redundant phrasing, collapse verbose constructions, merge bullets that
share a subject. Every normative clause, enumerated item, tool, flag, code, and
command preserved (verified per-file git diff); frontmatter byte-identical.

always-on 00-06: 28159 -> 27369 bytes (-790, -2.8%); scoped 10/11/14: -47.
Excludes 12-go/13-typescript (in flight in PR #19).
check rules / check / build --target all / test all green.

by mass-energy equivalence
@Lyther
Lyther merged commit fa89f34 into main Jul 5, 2026
2 checks passed
@Lyther
Lyther deleted the docs/rules-concision branch July 5, 2026 10:21
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