AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 7, 2026, 19:01 JST

Splitting Claude Code roles cuts CLAUDE.md to 19,447 バイト

Send on LINE
Splitting Claude Code roles cuts CLAUDE.md to 19,447 バイト

3 Key Points

  1. What happened

    On Oct 29, one Claude Code window (a single working session of Anthropic's coding tool) held four jobs beyond blogging, and its CLAUDE.md rule file — read at every session start — had grown to 71,464 bytes; after roles were handed to four other windows, the original reported done in 11 minutes and its file shrank to 19,447 bytes, about 27% of the former size.

  2. Why it matters

    The same window carrying unrelated work — product pages, X posts, drafts, exam grading — is what bloated its rule file, so giving each job to its own window is a way to keep any single session's instructions from growing unchecked.

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

The account turns on a habit that is easy to fall into: the first window opened knows the most context, so it keeps absorbing 'while you're at it' requests, and its CLAUDE.md — the rule sheet Claude Code reads on every session start — grows with each one. By the morning of Oct 29, that window held four jobs beyond blogging: product pages for a shop, X posts and a profile, drafts of handouts, and spreadsheet exam questions with grading. The rule file had reached 71,464 bytes, and the user wrote to a coordinating window at 9:44:51 that the window felt overloaded and precision seemed likely to drop.

The split itself took little time. Four seconds after the request reached the coordinator, roles went out to five windows; one recipient, a shop window created that morning, was not open yet and the first message bounced, then landed 20 seconds after the first attempt, once the window was opened. The body notes that until that morning there had been no window able to own the product pages at all — when no window can own a piece of work, it drifts to whichever window is easiest to talk to.

The more cautionary thread is the 'who presses the button' role. Over seven days it changed four times, and on Oct 27 a change sent only as a message to a secretary window never reached the paper, which still said the secretary pressed it; the two stayed out of sync until the file was rewritten on Nov 2. The lesson the author draws is to write roles into the receiving window's rule file and, when changing one, fix that line too — not just send a message. Keeping a separate workspace per window also means the rule files stay separate, so one area's rules do not swell another window's file.

FAQ
What made the rule file shrink so much?
Not only the role split.
What should each window's CLAUDE.md header list?
Four items: what this window owns, what it has handed off (with the receiving window's name), who presses the final button, and which folders it must not touch. Comparing two windows' owned items for overlap shows what to hand off.
Why split workspaces per window?
Claude Code reads the CLAUDE.md of the workspace it is in. Separate workspaces mean separate rule files, so one area's rules do not inflate another window's file, and a file's folder shows which window owns it.
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 articleOpenAI closes $11 billion first tranche at $1.25 trillion valuation