I went into this expecting to tell you to trim your instructions file.

Every team that uses a chatbot seriously ends up with one of these files. It might be the instructions behind a Claude Project, a custom GPT, a CLAUDE.md in a code repository, or a prompt that lives in a shared doc. A reply goes wrong, so somebody adds a line. A customer complains, so somebody adds another. Eventually nobody remembers why rule 31 is there, and whoever owns the file starts to wonder whether the model is still reading rule 31 at all.

The standard advice is to keep it short. Anthropic's Claude Code documentation asks for fewer than 200 lines per file and says longer ones get followed less closely. The research I'd read agreed, and more dramatically: one study from July found every model it tested had fallen to effectively zero fully correct replies by 80 rules. So I built a rulebook for an invented homeware shop, 800 rules long, and wrote down my guess before running anything: Claude Haiku 5.5, the smallest current model, would lose five to ten points by the time the list reached 800, and the larger two would slip a little.

It lost less than one. Sonnet 5.5 and Opus 5.5 lost nothing at all, which surprised me more than I'd like to admit.

Some edges before I go on, since they decide whether this applies to you. Every rule in my list can be checked by a script and names the product it covers, so nothing here says Claude can hold on to a rule that needs judgement. Every reply is a single turn, and the common complaint that a model "forgets" its instructions partway through a long chat is a different test, one I didn't run. And it's only Claude, called through its command-line tool, so ChatGPT, Gemini and the Claude app with its own extra instructions aren't in it.

Eight hundred rules later, nothing had slipped

I wrote 36 customer emails, each needing three particular rules out of the list, and ran them through lists of 6, 50, 200 and 800 rules. On Sonnet and Opus, all 864 rule checks passed. Haiku went from 98.1% at 6 rules to 97.2% at 800, and I can't tell that difference from noise.

What grew was the bill. On Opus, a reply written under 800 rules cost about 17 times what one under 6 rules did, and took no meaningfully longer to arrive. A rule that I corrected further down the list was followed in its new form in all 288 tries. Marking rules IMPORTANT added nothing I could measure, though on two of the models there was nothing left to add. The one real weakness turned up somewhere I wasn't looking: when I asked Haiku to name a batch of things in every reply, it sometimes named one and moved on.

So I wouldn't spend a day cutting a long file down because you're afraid Claude has stopped reading it. There are better reasons to cut it, and I'll get to those.

The frightening numbers come from a different job

Three studies and one vendor page set the mood here.

Reported

IFScale (Jaroslawicz and colleagues, 15 July 2025) asked models to work up to 500 required keywords into one business report. The best model managed 68% at 500, and Claude 3.7 Sonnet 52.7%.

Prompt Design at Scale (Eliav, 21 July 2026) put between 10 and 160 checkable rules on a single short essay and counted replies that got every rule right. That share was effectively zero by 80 rules for all five models. Claude Sonnet 5 went from 93.8% at 10 rules to 23.8% at 40.

Instruction Stacking Collapse (Anand and Chattaraj, 31 July 2026) stacked up to 20 rules on one reply. Claude Sonnet 4.6 fell from 96.4% to 60.4%, and much of the fall came from pairs of rules that conflict: a demand for JSON clashed with nine others.

Anthropic's Claude Code docs (checked 9 November 2026) ask for under 200 lines per CLAUDE.md, on the grounds that longer files use up context and get followed less closely. The page doesn't say how much less, and it's written about a coding agent working through long sessions.

Look at what the three studies share. Each piles its rules onto one piece of writing, so an essay under 160 rules has to satisfy all 160 at once. And the harshest number counts a reply as a failure if a single rule slips, which falls fast by arithmetic alone: a model that gets each rule right 99% of the time will get all 80 right only about 45% of the time.

A team's rulebook doesn't work like that. The rule about a damaged kettle has no bearing on a late bookcase. Most of a long list is rules that don't apply to the reply in hand, and that case is the one nobody had measured, at least that I could find.

So when you next see a number about instructions being ignored, ask two things. How many of those rules applied to the same output? And does the score count rules followed, or replies with no mistakes at all?

A four-row table titled the scary numbers ask for everything at once. IFScale, July 2025: up to 500 keywords in one business report, the best model reached 68% at 500 and Claude 3.7 Sonnet 52.7%. Prompt Design at Scale, July 2026: 10 to 160 rules on one short essay, getting all of them right fell to almost zero by 80 rules for every model, Claude Sonnet 5 went from 93.8% at 10 rules to 23.8% at 40. Instruction Stacking Collapse, July 2026: up to 20 rules on one reply, Claude Sonnet 4.6 fell from 96.4% to 60.4%, much of it from clashing rules. Anthropic's Claude Code docs: fewer than 200 lines per CLAUDE.md because longer files get followed less closely, with no figure for how much, written for a coding agent in long sessions. Footer: none tested a Claude 5.5 model, and none measured a long list where only a few rules apply.
Fig. 1 What each source actually asked. None of them is wrong; they're measuring a harder and stranger job than the one most teams have.

A shop with 800 rules and 36 unhappy customers

Picture whoever owns the instructions behind a retailer's reply-drafting assistant, say a customer care lead. That person is hypothetical, but the job isn't: every week or two a reply goes out wrong, a rule goes in, and they have to decide whether to keep doing that or spend a day cutting the file down.

Larkfield Home doesn't exist. I gave it 40 products and 20 things that can go wrong with them, which makes 797 rules like this one, plus three that apply to every reply:

If a customer says their kettle arrived damaged, give them claim reference DM-5753.

Some rules ask for a reference like that. Some ask for a separate line such as Route: desk 385. Some impose house wording: call the money back a "Gorse credit" and don't use any form of the word "refund". The three always-on rules set a sign-off, ban the word "sorry", and require an opening line with the order number. Those references and desk numbers exist nowhere but in their rules, so Claude can't produce them by guessing. With no rulebook at all, none of the 108 replies I collected contained one.

Each email carries three problems about three products: a cracked kettle, a bookcase that hasn't come, a sealed toaster the customer wants to send back. I placed the three rules in different thirds of the list and rotated them, so no kind of rule always sat near the top.

The question

As a team's list of rules grows from 6 to 800, does Claude become less likely to follow the rules that apply to the reply it's writing?

Baseline
A list of 6 rules, three of which apply to the email, so the only thing that changes between conditions is how many irrelevant rules surround them.
Continue if
The share of applicable rules followed is 5 or more points lower than at 6 rules, with an interval above zero. Then length costs something, and the advice is to trim.
Stop if
The drop stays under 5 points. Then trimming for the sake of rule-following isn't supported, and the verdict is Skip.

My guesses went into the same file before the main run. Sonnet and Opus would lose under 2 points at 200 rules and under 5 at 800. Haiku would lose 5 to 10 at 800. The middle of a long list would be the worst place for a rule to sit, and wrong rules would fire in under 1% of replies.

The calls took about nine minutes in total and cost $60.82 at list price as the tool reports it, $42.10 of that on the planned part. Most of the money went on Opus reading long lists.

Share of the rules that applied, followed6 rules50200800
Opus 5.5100.0%100.0%100.0%100.0%
Sonnet 5.5100.0%100.0%100.0%100.0%
Haiku 5.598.1%100.0%98.1%97.2%
Replies with all six rules right
Opus 5.5100.0%100.0%100.0%100.0%
Sonnet 5.597.2%100.0%97.2%97.2%
Haiku 5.591.7%97.2%86.1%83.3%

Each cell covers 36 emails. "All six" adds the three always-on rules to the three that apply.

Haiku's drop from 6 rules to 800 was 0.9 points, with a 95% interval of 2.8 points the other way to 4.6, well inside the 5-point line I'd set. My guess about Haiku was simply wrong, and so was my guess about the middle of the list: Haiku's three misses at 800 were all in the last third, and with so few I wouldn't build anything on that either. I think I'd been pricing in the published collapse without noticing that those studies measured something else.

The lower half of the table looks worse than the top, so it's worth saying why. Haiku's slide from 91.7% to 83.3% comes to three extra replies, and two of those are the word "sorry", which it wrote in 3 of 36 replies at 800 rules against 1 of 36 at 6. A model that wants to apologise is a stubborn thing to overrule: without any rulebook, 97% of replies did.

Two line charts titled Claude didn't lose the rule, the bill grew. Left, share of applicable rules followed at 6, 50, 200 and 800 rules, with an axis starting at 90%: Opus and Sonnet 100% throughout, Haiku 98.1, 100.0, 98.1, 97.2. Right, cost per reply in dollars: Opus 0.0147, 0.0296, 0.0793, 0.2555; Sonnet 0.0084, 0.0158, 0.0404, 0.1288; Haiku 0.0007, 0.0010, 0.0023, 0.0068.
Fig. 2 The left axis starts at 90% so Haiku's small dips are visible at all. Costs are as the command-line tool reported them, which pays to write every list to its cache; a system reusing one list would pay much less per reply.

Opus found a rule I said wasn't there

Haiku's misses at 800 rules looked like exactly what a long list should cause. For a late bookcase it wrote the desk number belonging to a late high chair. For a dog bed going to a new address, it wrote the desk for a wardrobe charged twice. Once it left out a warranty code altogether. Those three are every miss on the rules that applied at that length, for any model.

Then my scorer flagged Opus for using codes from rules that weren't supposed to apply, in two replies at 800 rules. It looked like the same confusion in a stronger model, until I read them.

The customer in the first had written that the driver left a rug behind the bins at the wrong house and that it was soaked through. Opus dealt with the delivery, then added: "As the rug is soaked through, please use claim reference DM-7553 for the damage."

Rule 623 of that list says what to do when a rug arrives damaged. I'd written the email without noticing that a soaked rug is a damaged rug. I had told the scorer that exactly three rules applied, and Opus, on a list that long, found a fourth I'd missed. I did not expect the most interesting line in the results to be the model correcting my test. Nothing else did: Sonnet and Haiku saw the same 800-rule list and left it alone. The second reply was a similar case, offering an exchange on a plant pot the customer said was too big.

I can't tell you whether that habit is good for you. A rule applied when it fits is what you want, right up to the moment the fit is arguable and the customer gets a claim reference you'd rather they didn't have.

I shouted, then changed my mind, and it coped with both

Anthropic's docs are sceptical that capitals help a rule that keeps getting missed, and suggest the file may just be too long. I tested the capitals part by marking one rule in ten, always including one of the three that applied, and comparing it with the same rule in the same list unmarked.

Sonnet and Opus were at 100% already, so there was nothing to gain. Haiku's marked rule gained 5.6 points at 800 rules, with an interval from 0 to 13.9, which is a shrug. It cost the unmarked rules nothing.

The test I cared about more came after the main result, so treat it as exploratory. Real rulebooks collect corrections, and the original usually stays where it is. So I added a line somewhere after one of the rules, saying that this case now uses a new code. Both versions sat in the list, one correcting the other, in lists of up to 800 rules (200 for Opus, to hold down the cost).

I expected Haiku to lose ten points here, so the result surprised me. Across all three models and every length I tried, 288 replies used the new version, none used the old one, and none hedged by giving both. To be fair to the file you actually have, my updates were labelled as updates. Two rules that quietly disagree, with nothing to say which is current, would be a harder and fairer test.

My scorer said Sonnet had given up

I still wanted to see the collapse from the papers for myself. So, again as an extra run, I took a list of 200 rules and turned 10, 30 or 100 of them into always-on rules, each requiring the reply to name one invented Larkfield service.

The first numbers said Sonnet had managed 45.2% at 30 rules and 86.9% at 100. Opus got 88.9% at 10 and 100% at 30. It made no sense: scores that moved around at random and replies that were all or nothing. So before writing any of it down, I went and read one.

"…you can reach us through any of our Larkfield helplines: Hazel, Larch, Rowan, Marram…" All thirty names, sharing one noun. My scorer wanted "Hazel helpline". It wasn't going to find it.

If I'd trusted that first table, I'd have told you Sonnet drops rules at random, on the strength of a string match I wrote myself. Counting those grouped lists, Sonnet and Opus named everything at every level, up to 100 services and 440-odd words of helplines, and the three rules that applied still came through. I report both scores and the change is logged, because you shouldn't have to take my word for which one is right.

Haiku was the only model left with a real problem, and it wasn't the shape I expected either.

Named every service required, Haiku 5.5, of 18 replies10 services30100
Named them all, or all but one111316
Named one or two and moved on650
Named nine of ten100
Refused, and said so002

It did worse with ten than with a hundred, and with 18 emails I don't think that means much. But look at how it failed. It rarely got most of the way through a list. It read ten similar rules as one rule and named a single helpline.

Unknown

Why Haiku collapses a group of ten but not a group of a hundred. It may be that a hundred is too obviously a list to be read as one instruction, but I have no test that separates that from noise in 18 replies.

The two refusals are my favourite thing in the whole trial, and I'd have bet against seeing anything like them. Faced with a hundred names, Haiku wrote its email, added a line of dashes, and then wrote:

Note for the team, not part of the email: Rules 1–4, 10, 12, 13, and the other "every reply must mention" rules together require about 150 specific helpline, promise, and club names in every reply, which would make this email unreadable for the customer. I have not included them. Please confirm whether the team wants that list added or whether these rules should be reviewed.

It's wrong about the count, and it put an internal note inside a message meant for a customer. It was also the only model, in any condition, that told me my rule was ridiculous. Sonnet and Opus wrote out all hundred services, as asked.

My impression is that this doesn't refute the published studies. They used older models and different rules, went further than my 100, and scored harder. It's only that I couldn't reproduce the cliff with these three models on the rules I used.

Does a long list cost you anything?

Yes: money, and in my test it bought nothing. Under 800 rules each reply took in about 33,700 tokens, and the cost per reply went from $0.0147 to $0.2555 on Opus, from $0.0084 to $0.1288 on Sonnet, and from $0.0007 to $0.0068 on Haiku.

It didn't cost time. Opus's median reply went from 7.4 seconds to 8.0, and Sonnet's from 7.7 to 8.2.

Treat those dollar figures as the top of the range. The command-line tool wrote every list to its cache at the higher writing price, and in my trial every reply had its own list. A real assistant that reuses one file would pay the writing price rarely and a much lower reading price after that. I didn't measure a production setup, so I can't give you its ratio.

My rules were easier to find than yours

The more replies I read, the more I kept coming back to how tidy my rulebook is. Every rule names a product, and every email names that same product. Even when the email says "back on the shelves" and the rule says "back in stock", the word "kettle" is sitting there pointing at the right line. Your rulebook is probably vaguer than mine, and full of rules like "be careful with enterprise customers", which no script can mark.

"100% of 108" also isn't 100% of everything. With no misses in 108 checks, the most I can honestly say is that the real miss rate is probably under about 3%, and less certain than that, because rules in the same email aren't independent.

I also didn't judge whether these were good replies, and a reply listing a hundred helplines passes. And Anthropic's advice is aimed at a coding agent, reading files and running commands across a long session, where context really does run out. None of this says that advice is wrong for that job.

What did change is how I think about it. I came in treating the 200-line guidance mainly as a warning that the model would stop following rules. For a single reply written from a list, I now think it's mostly a warning about the bill, and about the next human who has to edit the file.

The rules I'd keep, and the ones I'd take out of the file

A six-row table titled what I'd do with a long instructions file. The file is long and the replies are fine: leave it alone. You're adding a rule: say when it applies, in words the task will contain. A rule has changed: delete the old one anyway, Claude used the update in all 288 replies but the next editor won't work that out. A rule has to show up in every reply: keep that group short and check it on Haiku, which named only one or two of ten in 6 of 18 replies. A rule can never be broken: check the reply with a script before it goes out. Something got missed and you reach for IMPORTANT: look for the reason first, I couldn't measure any benefit.
Fig. 3 A starting point for November 2026. The row about scripts is the one I'd act on first.

Follows the rule that applies in a long list, Sonnet and Opus

5/55 out of 5

High confidence

864 of 864 rule checks passed across lists of 6 to 800.

Follows the rule that applies in a long list, Haiku

4/54 out of 5

Medium confidence

97.2% at 800 rules, a 0.9-point drop that sits inside the noise, with two wrong desk numbers.

Keeps rules that apply to every reply

4/54 out of 5

Medium confidence

Three always-on rules held at 97.2% or better. Haiku's weak spot was the word 'sorry'.

Uses a corrected rule over the original

5/55 out of 5

Medium confidence

288 of 288, none using the old rule. Exploratory, and the corrections were labelled as corrections.

Handles many rules that all apply at once

3/53 out of 5

Medium confidence

Sonnet and Opus named up to 100 items once grouped lists counted. Haiku managed 70.0% to 88.9% and sometimes treated ten rules as one.

Responds to rules marked IMPORTANT

2/52 out of 5

Low confidence

No benefit I could measure, but two of the three models were already at the ceiling.

Holds up over a long conversation

1/51 out of 5

Low confidence

Not tested. Every reply was one turn.

Follows rules that need judgement

1/51 out of 5

Low confidence

Not tested. Every rule could be checked by string matching.

Average
3.1 / 5
Binding constraint
Whether the right rule can be found from words in the task. Every rule here named its product, so this score says nothing about rules Claude has to infer.
Override applied
The average mixes things I measured with things I didn't test. Go by the row closest to your own file, and treat the two rows scored 1 as gaps in the trial rather than findings about Claude.

Thirty-six emails you can rerun

Every email, rule and reply is in the repository, along with the pre-registration, the logged changes and my hand checks. You don't need a key to check the scoring:

bash
git clone https://github.com/shravan1996/generative-ai-rulebook-length
cd generative-ai-rulebook-length
python3 -m unittest discover -s tests -t .
python3 analyze.py

The tests prove the rules can all be satisfied at once, with a hand-built reply that passes every check, and they confirm that each email names only its own products. Collecting fresh replies needs the Claude Code command-line tool, signed in; collect.py picks up where it stopped.

The test that would teach you more uses your own file, and it takes about ten minutes.

  1. 01

    Pick three rules you care about

    Owner
    You
    Artifact
    Three rules from your real file, and a task that should trigger all three
    Signal
    You could mark the result without asking anyone
  2. 02

    Run the task under the whole file

    Owner
    You
    Artifact
    A reply in a fresh chat, with your full instructions in place
    Signal
    Each of the three rules was followed, and you note any that weren't
  3. 03

    Run it again under just those three rules

    Owner
    You
    Artifact
    A second reply in a fresh chat with only the three rules
    Signal
    It does what the full file did; if only the short version works, the length is costing you
  4. 04

    Repeat it a few times

    Owner
    You
    Artifact
    Three or four replies each way
    Signal
    The difference holds, and isn't one unlucky reply

Skip the trim, and show me the rule it missed

Skip, for shortening a list of custom instructions purely because it's long, on Claude Sonnet 5.5 or Opus 5.5, in November 2026. On rules a script can check, for replies written in one turn, these models didn't lose a rule in a list of 800. Haiku held up better than I expected, but I'd still check anything it mustn't get wrong.

Three findings would change that. If rules that have to be inferred, rather than matched on a product name, drop Sonnet or Opus below 95% at 200 rules, length matters for the rules most people actually write. If a long chat loses 5 points or more by its twentieth turn, then the "it forgets" complaint is real and my single-turn test simply missed it. And if the Claude app, with its own long instructions and memory, behaves differently from the bare model I called, then the app's number is the one you should care about.

I went looking for the place where a long list breaks, and I didn't find it. I'd honestly prefer to be shown it. If you have a rule your assistant keeps missing, especially one it follows fine in a short prompt, send me the rule and the task, because one real file would tell me more than another 800 rules of my own.

Acknowledgements

This builds on the studies below, and especially on the IFScale authors, whose scoring by string matching I borrowed. Claude Code wrote most of the trial and helped draft this piece, which means Claude wrote the rulebook and then got marked on it. I wrote the emails and I'm the one who broke the scorer. Errors in the trial and in this reading of it are mine.

References

Sources last checked: 2026-11-09