AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 26, 2026, 10:01 JST

Claude Code rule bloat hits ~46,000 chars; checks go unseen

Send on LINE
Claude Code rule bloat hits ~46,000 chars; checks go unseen

3 Key Points

  1. What happened

    A practitioner's Claude Code agent organization logged 29 incidents from April 23 to November 22, 2026, recording 36 rule candidates, promoting 16, discarding 10, and mechanically gating 2 via git hooks.

  2. Why it matters

    The startup bloat check returned warnings — memory index at 73 lines against a 55-line cap — but wrote them only to a report file, so the rules read every session reached about 46,000 characters with no one seeing the alert.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

What makes this account distinctive is that it treats rules as physical infrastructure with failure modes. Lessons are not simply stacked; each incident is routed to one of four layers — written rules, the AI's self-checks, human pre-approval, and git-hook gates — chosen by the shape of the failure. A mistake that human approval cannot catch (a stale design document the reviewer has no reason to doubt) goes to self-check, not the approval list. A failure that happened twice on the same path goes to a machine gate, which is exactly what happened when an internal line was synced to a public repository twice, with exposure of 35 seconds and about 11 hours 19 minutes.

The pruning side is where the record is most candid. Of 36 rule candidates, fewer than half became formal rules; 10 were discarded under a rule that three months of no evidence sends a candidate to the weekly review for deletion. Yet the always-loaded text still grew, and the check script's warnings were invisible. A check that nobody receives is indistinguishable from no check at all, and a line-count cap (276-line file, ~22,000 characters) can miss bloat when lines are long paragraphs.

The author is careful about causation, noting that the effects of these mechanisms are not quantitatively measured and that a 36-day incident-free window is not proof of efficacy. The immediate next step is ordering rather than ambition: decide where inspection results are delivered before setting a cap on reading volume, since a cap whose warnings also go unread would repeat the same silent drift.

FAQ
How much do the always-loaded rules weigh in this setup?
By November 22, files read every session totaled about 46,000 characters, including a 3,400-character CLAUDE.md and a roughly 22,000-character orchestrator rule file.
Did the pre-approval list actually shrink through review?
The list went from 9 lines to 6, but most of that came from retiring a blog-sync tool; only one line was cut through review as never-triggered.
When did the public-repo push gate go in?
After the same leak happened twice (once for 35 seconds, once for about 11 hours 19 minutes), a pre-push gate was added on September 14.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAmbient score: the AI failure mode that looks different