# What text does a model router read in a Claude Code turn?

> A model router should judge a Claude Code turn by the request the person typed in it. Claude Code also adds its own text to the conversation, and CLAUDE.md files arrive as a user message after the system prompt, so a one-line request can sit beside pages of project notes. Run /context all in a session to see which memory files loaded.

Author: Nadav Hollander (https://www.linkedin.com/in/nadav-hollander-8268585a/)
Published: 2026-11-04T06:30:00.000Z
Reading time: 5 min
Canonical: https://auto.sh/blog/what-text-a-router-reads-in-claude-code
Part of: What is an LLM router? (https://auto.sh/blog/what-is-an-llm-router.md)
Publisher: Auto (https://auto.sh)

## Key facts

- Claude Code delivers CLAUDE.md content as a user message placed after the system prompt ([Anthropic](https://code.claude.com/docs/en/memory), read November 4, 2026).
- Claude Code adds system reminders to the conversation, including CLAUDE.md files, hook output, the list of skills and notes about changed files, and a logged API request shows them inside user messages in `<system-reminder>` tags ([Anthropic](https://code.claude.com/docs/en/glossary#system-reminder), read November 4, 2026).
- Auto judges how hard a Claude Code turn is from the text the person typed, leaving out the memory files and reminders Claude Code adds.

Auto, the Mac app for all your coding agents, [judges how hard each Claude Code turn is](https://autorouter.com/) from the text the person typed, and leaves out the memory files and reminders Claude Code adds. When a message holds only that added text, it uses the last request the person typed. The pick then follows what you asked: the length of your CLAUDE.md doesn't change how hard Auto thinks a one-line request is. Auto wrote this post, and the Claude Code behavior in it comes from Anthropic's docs as read on November 4, 2026.

## What text does Claude Code add to a conversation?

Claude Code adds its own context to the conversation alongside your messages, as system reminders: your CLAUDE.md files, your output style's instructions, text a hook returns as `additionalContext`, the list of available skills, a note when a file Claude read earlier changes on disk, and the commit and pull request attribution lines ([Claude Code glossary](https://code.claude.com/docs/en/glossary#system-reminder)). You never send these yourself. In a logged API request, each reminder shows up inside a user message wrapped in `<system-reminder>` tags, or on some models as its own message with the `system` role.

CLAUDE.md is the largest of these in most projects. Claude Code loads CLAUDE.md and CLAUDE.local.md from the working directory and every directory above it at launch, joins them all instead of letting one override another, and delivers that content as a user message after the system prompt ([Claude Code docs](https://code.claude.com/docs/en/memory)). Auto memory adds the first 200 lines or 25 KB of MEMORY.md, whichever comes first.

Some of this text arrives in the middle of a session. A CLAUDE.md in a subdirectory loads once Claude reads, writes or edits a file in that subdirectory, and a path-scoped rule loads when Claude works on a matching file ([Claude Code docs](https://code.claude.com/docs/en/memory)). Hook text lands where the hook fired: a `UserPromptSubmit` hook's `additionalContext` sits alongside the prompt you just sent, and a `Stop` hook's arrives at the end of the turn so Claude can act on it ([Claude Code hooks](https://code.claude.com/docs/en/hooks)).

![Only one part of a Claude Code request says how hard the turn is. CLAUDE.md and CLAUDE.local.md (Loaded at launch), sets difficulty No; Auto memory (MEMORY.md) (First 200 lines or 25 KB), sets difficulty No; Subdirectory CLAUDE.md and path rules (Loaded mid-session), sets difficulty No; Hook output, skills list, changed-file notes (System reminders), sets difficulty No; The request you typed (You, in this turn), sets difficulty Yes. Source: Claude Code docs on memory and system reminders, read November 4, 2026.](https://auto.sh/blog/images/what-text-a-router-reads-in-claude-code/1-what-a-request-carries.png)

## Which text should set a turn's difficulty?

The request the person typed should set the difficulty of the turn, because it is the only text that says what this turn asks for. Memory files and reminders describe the project, the tools and the session, so they make a request longer without making it harder. The table sorts the text a Claude Code request can carry.

| Text in the request                              | Where it comes from                                                      | Sets difficulty? |
| ------------------------------------------------ | ------------------------------------------------------------------------ | ---------------- |
| The request you typed                            | You, in this turn                                                        | Yes              |
| CLAUDE.md and CLAUDE.local.md                    | Loaded at launch from the working directory and the directories above it | No               |
| Auto memory (MEMORY.md)                          | Loaded at launch, first 200 lines or 25 KB                               | No               |
| Subdirectory CLAUDE.md and path-scoped rules     | Loaded mid-session when Claude works on a matching file                  | No               |
| Hook output, the skills list, changed-file notes | Added by Claude Code as system reminders                                 | No               |

## How can a router find the request the person typed?

A router can find the typed request in four steps:

1. Remove system reminders and memory blocks from each user message, since the person didn't type them.
2. Take the newest text the person typed in this turn.
3. If the newest user message holds only added text, use the last request the person typed.
4. Check the result on real transcripts from projects with long and short CLAUDE.md files, and from sessions where hooks add context.

Step 3 matters in long sessions. When a `Stop` hook returns text, the conversation continues with a message that carries Claude Code's text and no new words from you, and a router that scored that message alone would be judging the hook.

![When the newest message holds only a hook's text, the router reads your last request. 1. You: "Fix the failing login test" (Your last request); 2. Claude Code: "Edits two files and runs the tests"; 3. Stop hook: "<system-reminder> Run the linter before you finish" (No new words from you). The router scores: Fix the failing login test. Source: An example Claude Code session with a Stop hook, after Claude Code's hooks docs, read November 4, 2026.](https://auto.sh/blog/images/what-text-a-router-reads-in-claude-code/2-hook-turn.png)

## What does Auto read in a Claude Code turn?

Auto reads the text the person typed when it judges how hard a Claude Code turn is, and leaves out the memory files and reminders Claude Code adds. When a message holds only that added text, Auto uses the last request the person typed.

For you, that means the pick follows what you asked. A one-line request is judged on that line, so quick work can go to the cheapest capable model even in a project with a long CLAUDE.md, and hard work still goes to the strongest model your plans cover. Your rules still come first, and models still have to clear the quality bar before price counts. [How AutoRouter picks a model for each turn](/blog/how-autorouter-picks-a-model) walks through that order, and [What is an LLM router?](/blog/what-is-an-llm-router) covers the kinds of routers and where Auto fits among them.

Auto sometimes misjudges how hard a task is. Every turn shows its model, what it cost and why, so when a pick falls short you can rate it or choose a model yourself.

## Questions

### Is CLAUDE.md part of the system prompt?

No. Claude Code delivers CLAUDE.md content as a user message after the system prompt, and Claude reads it and tries to follow it, with no guarantee of strict compliance when instructions are vague or conflict ([Claude Code docs](https://code.claude.com/docs/en/memory)).

### How do you see which memory files loaded?

Run `/context all` in a session and read the list under Memory files; in fullscreen mode, `/context` alone collapses that list. `/memory` lists your CLAUDE.md, CLAUDE.local.md and auto memory locations and opens any of them in your editor ([Claude Code docs](https://code.claude.com/docs/en/memory)).

### How long should a CLAUDE.md file be?

Anthropic suggests keeping each CLAUDE.md under 200 lines, because longer files take more context and Claude follows them less closely. Instructions that matter for only part of a codebase can move to path-scoped rules, which load only when Claude works with matching files ([Claude Code docs](https://code.claude.com/docs/en/memory)).

### What does Auto keep from each turn?

Auto keeps the message that opens each turn, up to 4,000 characters, to review routing, along with records of the model chosen, tokens and cost. Requests pass through Auto's servers on their way to each provider, and Auto doesn't store transcripts ([Auto privacy policy](https://autorouter.com/privacy)).

## Sources

- [Claude Code docs: How Claude remembers your project](https://code.claude.com/docs/en/memory), read November 4, 2026
- [Claude Code docs: Glossary, system reminder](https://code.claude.com/docs/en/glossary#system-reminder), read November 4, 2026
- [Claude Code docs: Hooks reference](https://code.claude.com/docs/en/hooks), read November 4, 2026
- [Auto privacy policy](https://autorouter.com/privacy)

## Read next

- [An open scorecard for benchmarking coding agents on your own codebase](https://auto.sh/blog/coding-agent-benchmark-scorecard.md): Auto's open scorecard is a free template for benchmarking coding agents and models on your own codebase: a YAML task spec with a JSON Schema, a CSV run log, a CSV summary and a validation checklist. Fill it from your merged pull requests, run every task at least three times per setup, and compare pass rate with a 95% Wilson interval, cost per solved task, median time and flakiness. Auto, the Mac app for all your coding agents, also builds a free company benchmark for teams that want help.
- [How Ramp, Cursor and Uber build AI coding benchmarks, and how you can](https://auto.sh/blog/private-benchmarks-ramp-cursor-uber.md): Auto, the Mac app for all your coding agents, builds a free private coding benchmark from your team's merged pull requests, the approach Ramp, Cursor and Uber each took in-house. Ramp grades 500 tasks from merged agent pull requests with a panel of LLM judges, Cursor grades real sessions with agentic graders and refreshes them every few months, and Uber runs thousands of monorepo pull requests through one harness to pick the Pareto-best model. A startup can copy the method with one workflow, a few dozen validated tasks, three runs per model, and pass rate and cost per task.
- [How do you build an AI coding benchmark for your company?](https://auto.sh/blog/build-an-ai-coding-benchmark.md): Build an AI coding benchmark for your company from recent merged pull requests: start each task from the code before the change, hold back its tests, and grade every model and agent on pass rate and cost per task. Auto, the Mac app for all your coding agents, builds one from a team's own shipped work for free.

Tags: [Claude Code](https://auto.sh/blog/tags/claude-code.md), [Model routing](https://auto.sh/blog/tags/model-routing.md), [Auto](https://auto.sh/blog/tags/autorouter.md)

Drafted with AI from the sources linked above, then checked and edited by the Auto team.

Auto is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://auto.sh/setup.md) and [pricing](https://auto.sh/pricing).
