If every Claude Code session starts with “preserve the prices, run the check, and tell me what you have not verified,” a small job can accumulate unnecessary repetition. A CLAUDE.md file keeps recurring project instructions beside the work. Claude Code loads applicable instruction files as context when a new session starts.

We tested this on a fictional one-page café website: change Saturday’s opening time, exit, then start a fresh session to change its closing time. The useful test is threefold: did the instruction file load, did protected information survive, and does the finished page display the intended result?

One distinction matters: CLAUDE.md gives the model instructions; it does not enforce permissions. Writing “do not deploy” does not remove deployment access from the machine. Use appropriate permissions and checks for consequential work.

Prepare the practice project and enter Claude Code

This walkthrough uses Claude Code in a Mac terminal and Python 3 for a small verification script. If you have not installed Claude Code, follow Anthropic’s Quickstart for your operating system. Check claude --version and python3 --version before starting. The Python launcher command can differ on Windows.

Creating CLAUDE.md is ordinary text editing, with no separate fee for the file. Claude Code requests still consume the allowance or incur charges associated with your account. The sales channels are Claude subscriptions directly or Anthropic Console for API usage; check your account’s access and usage before running the exercise.

Download the Mali Café practice ZIP and extract it. You will find starter and finished folders plus recorded text excerpts. Start in starter, containing index.html, check.py and CLAUDE.md. Open index.html in a browser first: Saturday initially reads 09:00–17:00 and the iced latte costs 120 baht. All names, hours and prices are fictional.

Open a terminal in starter, or use cd with that folder’s path, then enter claude. On first use, complete the sign-in flow shown by the application. Review the folder and files before trusting a project. When a tool permission request appears, read the proposed command before approving it. This exercise does not require disabling permission checks.

Write instructions you can actually verify

The supplied CLAUDE.md sits beside index.html. Open it in a text editor and read it before proceeding. For your own project, create CLAUDE.md at the project root, or use /init to generate a starting point and review the result. The documentation recommends keeping files concise, aiming for fewer than about 200 lines each.

# Mali Café practice website

## Project
This is a fictional, local-only one-page café website. Edit index.html.
No dependencies or build step are needed.

## Rules
- Preserve all prices unless the request explicitly changes a price.
- Change only the requested day's hours; preserve other days.
- Keep the fictional-example disclaimer and mobile viewport.
- Do not deploy, push, install packages, or contact external services.

## Verify
After editing, run python3 check.py from the project root.
Inspect the actual changed line and report the test exit status.
Finish with the headings Changed, Checked, Needs review.
A passing check does not replace opening the page in a browser.

The transferable pattern is specific: which values to preserve, which command checks the work, and how to report the outcome. “Make it good” supplies much less guidance. Keep passwords and API keys out of the instruction file, especially when it will be committed for a team.

Confirm the project file really loaded

Enter /context all inside Claude Code and inspect Memory files. The project’s CLAUDE.md should appear. You can also use /memory to inspect and manage memory files. Asking the model whether it read the rules is weaker evidence than inspecting the loaded-file list.

Memory files listing the project CLAUDE.md
Recorded moment 01: the 229-token project file and user-level file both loaded. Terminal text re-rendered for readability.

Our session also loaded a user-level ~/.claude/CLAUDE.md. This was therefore not an isolated test of the project file alone. If behavior surprises you, check both personal and team instructions for conflicts.

Send the first request and inspect the change

Type this into Claude Code’s prompt without pasting the entire instruction file again:

Change Saturday opening time to 10:00 in index.html.

In the recorded session, Claude Code changed Saturday to 10:00–17:00, read back the changed line, and ran python3 check.py. All six checks passed with exit status 0. Its final response used the requested Changed, Checked and Needs review headings.

First request changing Saturday opening time
Recorded moment 02: first request, actual edit and the stated limits of the checks.

A passing check is not a complete acceptance test. The supplied check.py verifies the other days’ hours, price, fictional disclaimer and mobile viewport. It does not assert Saturday’s new time. The changed line and actual browser page need separate inspection. Explaining this coverage limit is part of a useful completion report.

Start a fresh session and make a second request

Enter /exit. From the same project folder, launch plain claude again. Do not use -c or -r, which resume an existing conversation. Inspect /context all again, then enter:

Change Saturday closing time to 16:00 in index.html.

Our new session still loaded CLAUDE.md, changed Saturday to 10:00–16:00, ran the same checks and used the requested report format. The second prompt did not repeat the price-preservation rule, test command or reporting headings. This demonstrates instructions being loaded from a file in a new session; it does not mean the previous conversation was remembered in full.

Fresh session changing Saturday closing time and running checks
Recorded moment 03: a fresh session ran check.py and used the report format without those instructions being repeated in the prompt.

Test disclosure: the first session ran version 2.1.326 and the fresh session ran 2.1.330 after a native background update. This was not a controlled same-version comparison, and user-level instructions were also present. These observations describe two recorded sessions, not a guarantee of future compliance.

Open the actual finished output

Claude Code explicitly reported that it had not opened the result in a browser. We then opened the edited index.html and checked it on desktop and at a 390-pixel viewport. You can open the file directly and refresh after editing. Make sure you are checking the file you changed in starter, rather than the reference copy in finished.

Finished Mali Café page showing Saturday 10:00–16:00
Actual finished local page: Saturday 10:00–16:00 and the unchanged 120-baht latte. All business details are fictional.
Check Expected after both requests
Saturday 10:00–16:00
Tuesday–Friday 09:00–17:00, unchanged
Sunday / Monday 09:00–15:00 / closed, unchanged
Iced latte 120 baht, unchanged
Disclaimer and mobile layout Fictional-example notice remains; no horizontal overflow

Run python3 check.py yourself, then compare the original and finished files. Our independent comparison found only the requested Saturday time change in index.html. If the project uses Git, inspect git diff before committing. A confident completion message is not a substitute for that check, and opening a local file is not publishing a website.

Carry the pattern into real projects

  • File absent from Memory files: check its name and the directory where you launched Claude Code. Nested instruction files can load when work enters their scope; not every file loads at startup.
  • Several instruction levels: user, project and ancestor files can contribute together. Do not assume the nearest file always wins. Resolve conflicting instructions explicitly.
  • Too much guidance: keep frequent commands and rules short, and separate task-specific reference material. Splitting a file and importing all of it does not automatically reduce context usage.
  • An existing AGENTS.md: current documentation describes support from version 2.1.277, subject to loading conditions. Do not assume it and CLAUDE.md will always load identically. Check the Memory documentation, or import @AGENTS.md from CLAUDE.md when that suits your team’s structure.
  • Remembering discoveries: auto memory is a separate mechanism in which Claude writes notes. CLAUDE.md contains instructions deliberately maintained by you or your team.

Start with a few rules whose outcomes you can inspect. When a rule is too important to miss, implement an enforceable check or permission boundary as well as documenting it.

Sources and image notes

Primary documentation checked November 22, 2026: Claude Code Memory and Claude Code Quickstart. Terminal illustrations reproduce selected text from actual recorded sessions in a readable layout; they are not original screenshots or AI-generated interfaces. Their numbered moments correspond to recorded-excerpts.txt in the practice ZIP. The finished website image is an actual browser capture of the fictional example. The Gemini-generated cover is editorial illustration, using the Claude mark from the official documentation site; it is not a photograph of an actual café using the product.