How we measured it
Sky ran this test itself, on public repos. This page says what we did, what we found, how we checked it and what it can't show, so you can judge the result yourself.
Claude Code with and without a project rule: a controlled test in 22 public repos
Run on 28 October 2026, on copies of 22 public GitHub repos made the day before.
In short. In a Sky test on 21 public repositories (October 2026), Claude Code did the same task twice: once with a CLAUDE.md that was missing a project rule another tool's file had, and once with the rule in the file it loads. Each task was chosen to touch that rule. Missing the rule, the agent broke it in 22 of 41 runs (54%); with the rule loaded, in 8 of 40 (20%). An AI reviewer that did not know which version was used rated every change.
Read that with these limits:
- The tasks were chosen to touch the rule, so the test says nothing about how often real work meets such a rule.
- 21 hand-picked repos, 2 runs per version.
- One agent and model, Claude Code with Claude Opus 4.8, with file tools only.
- Rated by an AI, not by people.
- Run by Sky, and Sky itself was not tested.
- The gap is +33 points, anywhere from +10 to +57. In the 9 repos as we found them it is +50 (+22 to +78); in the 12 where we swapped the two files' texts it is +21 (−12 to +54), not clear on its own.
- Even with the rule loaded, the agent broke it about 1 time in 5.
Why we ran it
Many repos keep one instruction file per agent tool, such as CLAUDE.md for Claude Code and AGENTS.md for Codex and others. When those copies drift apart, each tool works from different rules. Our study of public repos counts how often the copies differ, but it can't show what a missing rule does to a single task. So we tested that directly: the same task, once with the rule missing from the file the agent loads and once with the rule in it.
What we looked at
- 22 public GitHub repos whose CLAUDE.md and AGENTS.md disagree on a rule that a code change can follow or break. We call them cases C01 to C22 and don't name them. They belong to 21 owners: two cases share one.
- Four kinds of rule: something the code must not do (10 cases, such as hand-writing what a project helper already does), a step a change must include (6, such as adding a changeset file or bumping the version), where code goes (5, such as which file holds the routes) and which tool versions to match (1).
- Where the rule sat as we found it: in CLAUDE.md in 12 cases, in AGENTS.md in 10.
- One task per case, written the way an engineer would ask for it. It touches the rule without mentioning it, and it can be done by editing files alone.
- Left out on purpose: rules that need a shell to follow (running tests or a formatter), rules about commit or pull request text (the agent made no commits), one rule that a nested CLAUDE.md also held (Claude Code would load it anyway), near-duplicates, and two candidates judged weak tests, to stay under the run limit. One AI research agent working for Sky picked the cases by hand, so they lean towards rules that can matter and can be checked in a code change.
How we tested it
- Two versions of each repo. Rule missing: the CLAUDE.md that Claude Code loads lacks the rule, and the other tool's file, which it doesn't load, has it. Rule loaded: both files hold the copy with the rule, made identical by hand. Where the rule sat in AGENTS.md (10 cases, 9 of them in the headline), the rule-missing version is the repo as we found it. Where it sat in CLAUDE.md (12 cases), we swapped the two files' texts, so that Claude Code plays the tool whose file lacks the rule.
- The agent. Claude Code 2.1.212 with Claude Opus 4.8 ran each task twice in each version: 22 cases × 2 versions × 2 runs = 88 runs. Each run started from a fresh copy of the repo, cloned from GitHub on 27 October. The agent had five file tools: read, edit, write, find files and search text. It had no shell, no web access and no sub-agents, so no repo code ran. Each copy's own Claude Code settings, hooks, skills, commands, agents and plugins were removed, automatic memory was off, and a run stopped after 30 turns. All 88 runs completed.
- The reviewer. A separate AI reviewer, the same model with no tools, rated every run's code change. It saw the rule, a one-line check, the task and the change, with any edits to instruction files removed. It didn't know which version or run it was rating, and the runs came in a shuffled order. It judged only the rule, not general code quality: followed, broken, or not applicable when the change never reached the situation the rule covers. It also said whether a reviewer who knows the rule would ask for a change, and estimated the minutes to fix it: 0, 2, 5, 15, or 30 or more.
- Counting. The headline uses 21 cases. C18 is reported apart, because a third instruction file also differed between its two versions; with it, the gap is +32 points (+9 to +55). The reviewer marked 3 runs not applicable, all of them runs that hit the 30-turn limit. Leaving them out gives 41 runs with the rule missing and 40 with it loaded. The gap is each case's break rate with the rule missing minus its rate with the rule loaded, averaged over the 21 cases. That is why it is 33 points, not the 34 between the pooled 54% and 20%.
- Ranges. We redrew the 21 cases at random, repeats allowed, 10,000 times with a fixed seed, recomputed the gap each time and report the middle 95% of the results. Redrawing whole cases lets the range reflect how much cases differ from each other.
- Who did the work. An AI research agent (Claude, made by Anthropic) working for Sky designed the test, picked the cases, ran the agent and analysed the results. No person has checked the reviewer's verdicts.
What we found
| Rule missing | Rule loaded | Gap (95% range) | |
|---|---|---|---|
| Runs that broke the rule, 21 cases | 22 of 41 (54%) | 8 of 40 (20%) | +33 points (+10 to +57) |
| The 9 cases as we found them | 76% | 29% | +50 points (+22 to +78) |
| The 12 cases with the texts swapped | – | – | +21 points (−12 to +54) |
| All 22 cases, with C18 | – | – | +32 points (+9 to +55) |
| Agent turns per task | 21.31 | 19.21 | +2.10 (+0.60 to +3.69) |
| Output tokens per task | 11,944 | 10,665 | +1,279 (+165 to +2,560) |
Turns and tokens count all 42 runs per version in the 21 cases.
- A rule missing from the loaded file was broken far more often. 10 cases were worse with the rule missing, 2 better and 9 the same.
- The gap is largest in the repos as we found them: +50 points in the 9 cases where the rule sat in AGENTS.md on GitHub. In the 12 cases with the texts swapped it is +21 points, and not clear on its own.
- Most breaks were small. The reviewer estimated 2 minutes to fix 10 of the 22 breaks with the rule missing, 5 minutes for 6 and 15 minutes for 6.
- The code often showed the way. In 7 of the 21 cases the agent followed the rule even without it, because the existing code already showed the convention.
- The agent didn't look for the other file. It opened the other tool's file in none of the 42 runs with the rule missing. In 1 run a text search showed it the rule, and it followed it.
- A loaded rule is no guarantee. With the rule loaded, the agent still broke it in 8 of 40 runs, about 1 in 5: in every run of 3 cases and in one run each of 2 others. No instruction file fixes that.
- A little more work, and no clear difference in time or money. With the rule missing, tasks took about 2 more agent turns and about 1,300 more output tokens. We could not establish a difference in the agent's time, the cost or the reviewer's fix-time estimates.
How the savings estimate uses it
It doesn't. Each task was chosen to touch the rule, so the test can't say how often real work meets a rule that sits only in another tool's file. That frequency is what the savings estimate on our home page rests on, and it comes mainly from our study of 700 public agent sessions. What the test shows is that the problem the estimate prices is real, and sizeable each time it happens.
One cross-check agrees: the reviewer's fix estimates came to about 2 more minutes per task with the rule missing, close to 33 points times the 6.3 minutes the estimate counts from correcting an agent mistake until it is settled (an average measured in public agent sessions). These are a model's estimates, not timed, and the difference is not established on its own (−0.5 to +4.9 minutes).
How we checked it
- The file was loaded. Before any case ran, a check run with a made-up word in CLAUDE.md showed that Claude Code read it.
- No other tool ran. The agent tried a tool it didn't have 9 times, in 5 runs, and each attempt was refused. In the first 6 runs, a pilot, our safety check stopped the test on one of these refused calls. We changed the check to count only calls that ran and to log refused ones, re-read the 6 pilot records and then ran the other 82.
- No run wrote outside its copy of the repo, by a script check of every run. Our first checks had two counting errors, one in that write check and one that missed the text search above. Both are fixed.
- The reviewer agreed with itself. A random 20% of runs (18) were rated again with a differently worded prompt. The verdict matched in 17 of 18 (94%; Cohen's kappa 0.90, a measure of agreement beyond chance), and the fix minutes matched exactly in 14 of 18. That shows consistency, not accuracy: it is the same model, and no person has rated the changes.
- The gap held when we changed the count. Without the 18 runs that hit the 30-turn limit (10 with the rule missing, 8 with it loaded): +47 points (+25 to +69). Without C14, which had only one rated run per version and the search problem below: +30 (+5 to +55). With the second prompt's verdicts: +31 (+7 to +55). Counting the two cases that share an owner as one doesn't change the result.
- A clear difference. Of the 12 cases whose versions differed, 10 were worse with the rule missing and 2 better. A sign test on that gives p = 0.039, but 0.065 without C14 or with the second prompt's verdicts. So we call the difference clear, not statistically significant.
What it can't show
- How often it happens. Each task was chosen to touch the rule.
- Many repos or teams. 21 cases, picked by hand by one AI agent, with 2 runs per version. Company repos, and rules that only matter when code runs, such as tests, formatters or deploy steps, aren't covered.
- Other agents and models, or real tools. One agent and model. Without a shell, the agent couldn't run the linters or tests that would catch some breaks in real work, so real fix costs could be lower (CI catches it) or higher (found later).
- A person's judgement. The reviewer is the same model as the agent, and no person has checked its verdicts.
- Sky. Sky itself was not tested. We made the rule-loaded version by hand.
- One rule alone. The copy with the rule is longer in 21 of 22 cases, so the test compares the two copies as they are, not one rule in isolation. In the 12 swapped cases, the file Claude Code loads sometimes names another tool where the original named Claude, and in 6 it names AGENTS.md, which then holds the rule. Within those 12, the 6 that name AGENTS.md show +33 points and the other 6 show +8. Both groups are too small to read.
- An exact size. +33 points, anywhere from +10 to +57. Read it with the split: +50 in the repos as found, +21 and not clear in the swapped ones.
- Time or money. Only turns and output tokens differ clearly.
- A clean run in every case. In the 4 runs of C14, a task that needed library code the copy didn't include, the agent's search reached outside its copy of the repo. The names of files and folders elsewhere on the test machine, not their contents, went to the model. Nothing outside the copy was read, written or run. A re-run must confine the agent to its folder.
- Later versions. One day of runs on one version of Claude Code. Agents change often, and so may the result.
Data
Every case is a public GitHub repo. We cloned each one and worked only on local copies; nothing was posted to or changed on GitHub. Sky can share the aggregate results and the scripts that compute them. The case list that names the repos, and the task texts, stay private: we don't name any repo, organisation or person we studied, and a task's text could point to its repo.