Your CLAUDE.md Keeps Growing, and the Next Tool Still Starts From Zero
Your CLAUDE.md Keeps Growing, and the Next Tool Still Starts From Zero Every coding agent setup I see lately starts the same way. One file. A few honest lines about the project, how to run the tests, what not to touch. It works beautifully for about a week. Then the agent does something dumb that it should have known not to do. So you add a line. Then it argues with a fact you already wrote down somewhere else. Another line. Then a new project starts, and you copy the file and start editing ou
Your CLAUDE.md Keeps Growing, and the Next Tool Still Starts From Zero
Every coding agent setup I see lately starts the same way. One file. A few honest lines about the project, how to run the tests, what not to touch. It works beautifully for about a week.
Then the agent does something dumb that it should have known not to do. So you add a line. Then it argues with a fact you already wrote down somewhere else. Another line. Then a new project starts, and you copy the file and start editing out the parts that do not apply, and somehow it gets longer in the process.
One developer described where this ends up. His instructions plus his handover file had grown to thousands of lines. He was not proud of it. He was tired of it. The file had become a second job: feed the agent its own memory, prune it, argue about whether a line is still true.
And even after all that work, the moment he opened a second tool, none of it travelled. The context lived in one place, in one format, for one agent.
That is the real problem hiding under the CLAUDE.md problem. It is not just that a single file gets too big. It is that project memory has two separate failure modes, and fixing the first one does nothing for the second.
Failure one: one file tries to hold everything
A monolithic context file mixes at least four different kinds of information, and they do not age at the same speed.
There is the purpose of the project. What it is, who it is for, what success looks like. That changes rarely.
There are resources. Where things live, which docs matter, which services the code talks to. That changes sometimes.
There are constraints. Hard rules, the things an agent must never do, the decisions that were already made and should not be relitigated. That changes when a decision changes, and old constraints are dangerous when they linger after they stop being true.
And then there is current state. What is in progress right now, what broke yesterday, what the next step is. That changes daily, sometimes hourly.
Put all four in one file and load the whole file on every turn, and you get predictable results. The agent skims. Long files get skimmed, not read, and mixing what to do next with why a decision was made two months ago makes both harder to find. In-progress notes get treated as permanent rules, so finished work leaves zombie instructions behind. And because the file is loaded whether it is relevant or not, you pay for all of it, every time, in tokens and in attention.
One person who hit this wall split the whole thing up. His structure was simple enough to say in one breath: Purpose, Resources, Constraints. Each one is a set of markdown documents, written properly and kept comprehensive. The CLAUDE.md itself only points to the documents. It became an index, not a warehouse.
That is a genuinely better design, and it is worth stealing. A short pointer file, capped on purpose. One small file per decision, so a decision can be deleted when it dies. A pruning test for every line: can the agent get this back, correctly, from the repo right now? If yes, the line comes out of the notes. A stale copy is worse than no copy, because the agent trusts the note over the code.
The tax nobody budgets for
Here is the part people admit only after they have lived with a split setup for a while. The pruning ritual is the expensive part.
Someone has to notice that a line is stale. Someone has to decide whether the decision behind it changed or just the wording. Someone has to do the nightly diff, the weekly triage, the cutting of lines about things that no longer exist. Several people running serious setups described doing exactly this, by hand, on a schedule, forever.
And the agent still argues sometimes. The developer with the Purpose, Resources, Constraints setup said he does not expect to ever be in a position where he is not wrestling the agent. He lost an hour and a half one day because the agent insisted a documented fact was wrong and argued the point. He called that wrestling part and parcel of the work.
I think that acceptance is worth questioning. Some wrestling is the job. You are reviewing work, making calls, correcting course. But wrestling an agent over a fact that is written down, in your own docs, in the format you chose, is not judgment work. It is retrieval failing in front of you. The information existed. The agent just did not have the right piece at the right moment, or it weighted an old note over a newer one.
Splitting the file helps because the agent loads less and finds things faster. It does not solve staleness, and it does not solve retrieval. Those need a different mechanism than a better folder layout.
Failure two: the file does not travel
Now open a second tool.
This is where the whole markdown approach quietly falls apart. The file lives in a repo, or in one tool's folder. Cursor reads its format. Claude Code reads its format. A chat tool reads none of it. So people paste. They paste the plan into the new chat, paste the decisions, paste the summary of what the last tool did. One person put it bluntly: the file does not travel across Cursor, Claude and ChatGPT.
The paste loses the most important part, too. A raw paste says what was decided. It rarely says what was ruled out, and why, and what would change the decision. So the new model, working in good faith, re-suggests the option you already killed. Not because it is careless. Because the rejection never travelled with the decision. Then, weeks later, when a decision gets reversed, the old line and the new line can sit side by side, and the next session obeys whichever one it reads first.
Against that background, one report from October stood out. A user said his Codex setup automatically aggregated the conversations he had on Claude. Same titles, same texts, same interactions, appearing as if they were native conversations in the other tool. Whether that was a shared folder doing quiet work or a sync he had set up and forgotten, his reaction is the interesting part. He was surprised, and pleased, because context following him across tools felt like how it should work by default.
He is right. It should. The surprise is the tell that it usually does not.
What people actually do, ranked by how well it holds up
The honest menu, from the threads behind this piece:
One big file, loaded every turn. Fine for a small, short project. Breaks on length, staleness and skimming. If your file needs a table of contents, you have outgrown it.
Split docs with a pointer file. The Purpose, Resources, Constraints split, or a short plan file plus a two-line decisions file plus an inbox file with weekly triage. This is the best purely local setup I have seen. It still depends on you pruning it, and it still stops at the boundary of the tool that reads it.
A handoff note written for the next session. A few lines kept outside any chat: goal, decided, ruled out and why, open questions, next ask. Updated when you stop for the day, pasted first into whichever tool you open next. Cheap, portable, and the ruled-out field does more work than everything else combined. Its weakness is you. Skip the update twice and the note is fiction.
Shared memory across tools. This is the category Vilix AI sits in, and it is one option among others, not magic. The idea is that each tool connects to the same memory account, saves its exchanges there, and loads relevant context back at the start of a session, so a decision made in Claude is available in Codex without a paste. Retrieval there is semantic plus keyword, so it pulls what is relevant rather than loading a whole file every turn, and the newest save wins when two tools record conflicting information. It costs money if you go past the free plan, Starter is $10/mo and Pro is $20/mo, and each client needs its own setup. It also asks a trust question you should ask of any hosted memory: you can export everything in a portable format and delete individual memories or wipe the account, and if a product cannot offer that, do not hand it your project history.
Nothing. Just re-explain. More common than anyone admits. It works until the project gets big enough that re-explaining costs more than any of the options above, which usually happens mid-project, at the worst time.
A practical way to decide
Ask two questions about your current setup.
First: when your agent gets something wrong that it should have known, is the information missing, stale, or just not loaded? Missing means write it down once, properly. Stale means your pruning habit is the product, and you should make pruning smaller and more frequent, one file per decision, dated lines, delete aggressively. Not loaded means your file structure is fighting you, and splitting or retrieval will help more than writing more.
Second: how often do you switch tools mid-project? If the answer is almost never, a well-kept split doc set in one repo is probably enough, and you should stop shopping for solutions. If you switch weekly, or run two agents on the same repo that need to know what the other just did, the paste tax is already costing you more than you think. That is the point where shared memory, in whatever form, stops being a luxury.
Either way, stop expecting one growing file to be your project's memory. It was a good first idea. The people who have run it longest have all, in their own words, hit the same ceiling: it cannot tell you which page is stale, it does not travel, and keeping it alive becomes one more thing on your list. Split it, date it, prune it, or move the memory somewhere every tool can reach. Just do not keep feeding the file and hoping size turns into memory. It does not. It turns into maintenance.