DEV Community

Cover image for The rule carried. The work still failed.
Don Karter
Don Karter

Posted on Edited on AI-assisted

The rule carried. The work still failed.

In our benchmark, a scripted developer tells Claude Code one rule in project A: "run only the test files that cover your change." Claude Code saves it to its notebook. Then we open project B and give it real work. The note isn't there. The agent runs the whole suite, gets corrected, and saves the note again, for project B only.

That's the failure mode in one scene. The rule never left the repo it was learned in.

I build these tools for a living, so we measured it. Same work, two setups: the agent alone, and the agent with Besydr, the memory loop we pulled out of Octomind.

45 rule breaks alone, 4 with Besydr. Claude Code, 96 requests per arm.

49 rule breaks alone, 3 with Besydr. Codex, 128 requests per arm.

Those are events, not requests. One request can break two rules.

Chart, rules from an earlier session broken in 100 requests, the agent alone and with Besydr. Claude Code with Opus 5.5: 47 and 4. Claude Code with Sonnet 5.5: 52 and 3. Codex with GPT-6.2 Sol: 45 and 5. Codex with GPT-6.2 Astra: 31 and 0.

Per 100 requests, by model: normalized rates, not the aggregate event counts above. Not a client leaderboard; the two benchmarks ran different Besydr versions and one tweaked request.

So carrying rules across repos is solvable. We moved the loop out of Octomind into Besydr to run it with other agents, and every rule it keeps quotes the human message it came from. The carry problem mostly goes away. But here's the part that keeps me honest: remembering a rule tells you nothing about whether the work is correct.

Our completion check accepted all 14 hand-backs that failed the held-out tests across the Claude scenarios. In Codex it accepted 11 of 12, and 11 of those on a single request. The check said done. The tests said broken. The tests were right.

That's the tension. A memory layer can make your agent obedient and still leave it wrong. A completion check is a second opinion, not a test suite. Correctness needs tests the agent can't see.

The loop also meant fewer interruptions. In the Claude Code runs, developer corrections dropped from 45 to 11; in Codex, from 60 to 25.

A few more honest limits. On small single-repo tasks there was no quality gain, and an early build ran slower: 0.84 minutes per request alone versus 1.81 with the loop. Codex used 21 to 27% fewer fresh tokens but took 20 to 21% longer per request, and developer time was never measured. A hand-maintained rules file is still a good option: write your rules down, keep them current, and you get most of the benefit without any of this machinery.

So don't buy memory on a demo. Test it. The take-home is simple:

  1. State a rule once in a fresh session on repo A. Do real work.
  2. Open a fresh session on repo B, a different codebase. Give work that tempts the violation. Don't restate the rule. Count rule breaks.
  3. Score correctness separately, with tests the agent can't see: a withheld subset of the suite, assertions kept out of the repo.

Reset state between arms and runs, but keep memory intact across sessions within an arm, so repo B can still recall repo A.

The number I'd ask any memory tool for, mine included: rule breaks per request in a repo that never heard the rule. And a separate number for correctness, from tests you hid.

Top comments (0)