Skip to content

onboarding: cut CLAUDE.global.md's context tax by a third - #61

Merged
alongd merged 1 commit into
mainfrom
claude-global-trim
Aug 8, 2026
Merged

onboarding: cut CLAUDE.global.md's context tax by a third#61
alongd merged 1 commit into
mainfrom
claude-global-trim

Conversation

@alongd

@alongd alongd commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #60. CLAUDE.global.md is loaded into the context of every session a member ever runs, so its size is a standing tax — and it had drifted to 11,379 B against the PI's own ~/.claude/CLAUDE.md at 7,732 B. This brings it to 9,171 B (~2,300 tokens, down from ~2,900) without dropping a single rule.

What went:

Cut Why
Four subagent role descriptions A verbatim second copy of onboarding/agents/*.md. The file keeps the routing boundary (implementer vs executor, and the autodev ceiling) and points at the agent files. MAINTAINING.md now names those files the sole source of truth for model/effort — one less pair to keep in lockstep.
Five probe-the-premise war stories "the MW didn't survive the data boundary", "the core had zero reactions where the counts implied dozens" — persuasive to whoever lived them, opaque to a new member. The rule and its rationale stay.
Skills-section rationale "this used to hold a list of ~35 skills; it went stale" is a maintenance decision, not a runtime instruction. Moved to MAINTAINING.md.
Prose slack in Response format / Asking / Git / Handoff Same rules, tighter.

What deliberately stayed — one deviation from a pure size cut:

The silent-stall section was on the chopping block, but reading ONBOARDING step 12 showed it was wrong, not just heavy: it instructed members to run cc-deadman set …, and AGY members never install cc-watchdog — they get AGY's native /schedule. So it had been pointing at commands they don't have. Rewritten agent-agnostically (/schedule on AGY, cc-deadman for anyone still on standalone Claude Code) at half the length. Deleting a silent-stall guard to save 400 B would have been the wrong trade.

The remaining ~1.4 KB over the PI's file is the two things members carry that the PI does not: the request-handoff.sh no-op caveat and the silent-stall section.

MAINTAINING.md gains a Keeping it small section recording the size target (wc -c against both files when syncing), the three content types that belong in the maintainer file rather than the member's, and the caveat above — so the next sync doesn't re-inflate it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces the always-loaded onboarding global guidance footprint by tightening prose and removing duplicated/low-signal content, while preserving the existing rule set and correcting the silent-stall guidance to work across AGY vs standalone Claude Code setups.

Changes:

  • Adds maintainer guidance in MAINTAINING.md to keep CLAUDE.global.md small and to record what content belongs in maintainer docs vs member runtime rules.
  • Refactors CLAUDE.global.md to remove duplicated subagent role tables and compress several sections without changing the underlying rules.
  • Updates the silent-stall section to be agent-agnostic (AGY /schedule vs Claude Code cc-deadman).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
onboarding/MAINTAINING.md Documents a size target and explicit guidance for keeping CLAUDE.global.md lean during future syncs.
onboarding/CLAUDE.global.md Tightens member-facing global guidance, removes duplicated subagent role descriptions, and updates silent-stall guidance for AGY vs Claude Code.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread onboarding/CLAUDE.global.md Outdated
Comment thread onboarding/CLAUDE.global.md Outdated
Comment on lines +148 to +151
- Before ending a turn while background or external work is still pending, arm a timer for the
expected duration plus 50%: `/schedule <seconds> <what to check>` on AGY (ONBOARDING step 12), or
`cc-deadman set <minutes> "<reason>"` if you run the standalone cc-watchdog under Claude Code.
Clear or re-arm it as your first action after the wait.
The file is loaded into every session a member ever runs, so its size is a
standing tax. It had drifted to 11.4 KB against the PI's own 7.7 KB. Now
9.2 KB, with no rule dropped:

- Subagent roles: the four model/effort descriptions were a second copy of
  onboarding/agents/*.md. CLAUDE.global.md keeps the routing boundary and
  points there; MAINTAINING.md now names those files sole source of truth,
  so there is one less pair to hold in lockstep.
- Probe-the-premise: dropped five PI-run war stories (the dead channel, the
  MW that didn't survive the boundary, the empty core) — persuasive to
  whoever lived them, opaque to a new member.
- Skills: dropped the "this used to list ~35 skills and went stale"
  rationale; that is a maintenance decision, moved to MAINTAINING.md.
- Response format, Asking, Git, Handoff: tightened prose, same rules.

Silent-stall was a cut candidate but was rewritten instead: it told members
to run `cc-deadman`, which AGY members never install (ONBOARDING step 12
gives them native /schedule). It had been pointing at commands they do not
have, so it is now agent-agnostic and correct. Both timer placeholders now
carry the +50% margin the bullet asks for, instead of reading as the bare
expected duration.

Also drops a stray `</content>` tag from the end of the file — a leaked
tool-call closing tag that reached main in #60.

MAINTAINING.md gains a "Keeping it small" section: the size target, the
three kinds of content that belong in the maintainer file rather than the
member's, and the caveat against trimming a rule to nothing to hit it.
@alongd
alongd force-pushed the claude-global-trim branch from d3a57aa to e0ed0fd Compare August 8, 2026 19:53
@alongd
alongd merged commit 8363e67 into main Aug 8, 2026
4 checks passed
@alongd
alongd deleted the claude-global-trim branch August 8, 2026 19:57
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.

2 participants