AI NewsDev toolsReported

The New Stack found Claude Code forgets all-project rules in new repos

Jessica Wachtel at The New Stack ran a three-session memory test on Grok Build 1.0.40 and Claude Code 2.1.226 on 21 September, and reports that Claude's CLI memory stops at the repo boundary, so a rule stated "for all my projects" never reached a second repository.

AI News

Editorial3 min read

LinkedInX

Why it mattersA cross-project rule that only takes effect after a person manually copies it into a global config is a rule that will not take effect at all under real use, which changes how a team should treat coding agent memory promises when comparing tools.

A coding agent can be given a rule for every project and still forget it the moment it opens the next repository. Jessica Wachtel at The New Stack found that on 21 September 2026, in a three-test comparison of Grok Build and Claude Code. SpaceXAI had said on 16 September that Grok Build keeps notes on project conventions and decisions and reads them in later sessions. Claude Code has had the same feature, called auto memory, for months.

The three tests

Each session used the tool's headless mode, which reports its own tokens and cost. Grok Build 1.0.40 ran Grok 4.6 at high effort through an xAI API key. Claude Code 2.1.226 ran Opus 5 on her subscription. Each of four small Node repos was cloned per tool. Every test used two sessions: session one planted a fact, the tool was quit, and session two gave a task where the fact mattered without mentioning it.

Test one was a test-command rule: "In this repo, npm test fails and make test passes". Test two mixed a project decision with a trap: CSV export dropped, money is integer cents, with a float helper and half-built CSV exporter left in the repo as bait. Test three stated a rule "for all my projects" in one repo, then asked for a small feature and a commit in an unrelated repo.

The results, and where the split was

Both tools passed tests one and two. Grok wrote topics/testing.md, Claude wrote orbit-api-run-tests-with-make.md, and each ran make test in session two without touching npm test. On the trap in test two, both refused the float helper and shipped a JSON export against the "dropped CSV" rule.

Test three is where they split. Grok saved the cross-project rules to a global file called git-and-code-style.md and used them in the second repo, producing the commit feat: add --help flag with usage and supported cities. Claude Code saved the same rules only inside the first repo's memory folder, warned Wachtel that its memory store "is scoped to this project's directory", and found nothing when opening the second repo. Its commit came back as Add --help flag.

The cost and speed picture

Across the three tests: Grok Build passed 3 of 3, took 165 seconds, used 390,848 tokens, and cost $0.41. Claude Code passed 2 of 3, took 66 seconds, used 576,863 tokens, and cost $1.05. Wachtel writes that the price gap "mostly reflects Opus 5 versus Grok 4.6 rather than the memory systems".

The core promise held for both: an in-repo rule stated once was reread and followed the next session. Where the tools diverge is the scope of the note, and that scope decides whether a team can rely on the feature. A rule that only lives if a person remembers to copy it into ~/.claude/CLAUDE.md will drift out of sync the first time somebody sets up a new repo.

One test on four Node repos, with one prompt planting each rule, demonstrates behaviour under a controlled probe rather than under real workloads. Wachtel's own summary is that Grok Build "remembered everything, it carries rules across projects, and it cost less than half as much on every test", while Claude Code's Opus 5 was faster on every session. Anthropic's projects beta, announced 17 September, adds shared memory across cloud threads for select Pro and Max subscribers, so the CLI behaviour Wachtel measured may change soon.

Source

Jessica Wachtel, The New Stack, Grok Build vs. Claude Code: I tested which one has the better memory, 21 September 2026.

Reported byThe New Stack

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project