Quanta

← Back to Briefings

A Shared CLAUDE.md for 12 Engineers

Coding agents at scaleEN7 reads

01 · Why project memory matters in a busy repository

Claude Code can inspect files, run commands, edit code, and follow local conventions. Its effectiveness still depends on the context provided at the start of each run. Without shared guidance, each engineer explains the repository from scratch, and the resulting work varies with personal habits, session history, and assumptions.

A project memory file gives the agent durable operating context. For Claude Code, the usual filename is CLAUDE.md. The file is checked into the repository and read as part of the working context, so the team can state the rules that should remain true across people, branches, and repeated tasks.

02 · What a useful CLAUDE.md should contain

The strongest memory files are concise and operational. They describe facts that help an agent make correct decisions, rather than attempting to document the entire system. A practical file usually covers:

  • › Repository structure: identify the main applications, services, libraries, generated directories, and ownership boundaries.
  • › Development commands: list the commands for installing dependencies, running the application, formatting code, linting, testing, and building.
  • › Validation expectations: state which checks are required for a change and which tests are most relevant to each area.
  • › Implementation conventions: record naming, error handling, logging, configuration, API, database, and dependency policies that are not obvious from a single file.
  • › Change boundaries: explain generated files, migration rules, compatibility requirements, security-sensitive areas, and files that require extra review.
  • › Completion criteria: tell the agent what evidence is expected before it reports a task as complete.

Each instruction should answer a question an engineer would otherwise need to ask. “Run the fast test suite before editing deployment code” is more useful than “follow best practices.”

03 · Separate stable rules from temporary task context

Project memory works best when it contains durable guidance. Do not turn it into a transcript of the current sprint, a list of open tickets, or a personal preference log. Those details age quickly and make every future run spend context on information that may no longer apply.

Use the memory file for stable rules, and put task-specific requirements in the issue, pull request, or direct prompt. When a temporary instruction proves durable, promote it into the file through a normal reviewed change. This gives the team a clear history of how its operating rules evolved.

04 · Organize memory for large repositories

A single root file is a good starting point, but large repositories often need local memory files. Put broad policies at the root, then add focused guidance in service or package directories where the rules differ. A change inside a directory can then inherit general instructions while receiving more precise local constraints.

Keep local files narrow. A service-level file might explain its test command, public contract, data ownership, and deployment hazards. It should not repeat the root file or describe unrelated services. Duplication creates conflicting instructions and makes maintenance harder.

05 · Review memory files like production code

Assign ownership for the memory file and review changes to it with the same care given to build scripts or CI configuration. Incorrect instructions can cause repeated, systematic mistakes across many runs. Test important guidance by asking Claude Code to summarize the applicable rules, plan a small change, and report which checks it would run.

Watch for vague language, obsolete commands, contradictory requirements, and instructions that encourage broad edits. Prefer explicit commands and decision rules. For example, specify the supported test command, the required migration process, and whether generated output must be committed.

06 · Make repeatability visible in team operations

Repeatability is not only about producing similar code. It also means making usage, validation, and cost easier to understand. Teams running sustained Claude Code workloads should standardize the repository context, approved workflows, and environment configuration before expanding access.

Quanta fits this operating model when a team needs one pay-as-you-go balance across supported tools and model access. Calls are metered on real tokens, with cache writes and cache reads priced separately, which gives leads a useful basis for reviewing workload behavior. Teams can open a Quanta account when they are ready to centralize that usage across Claude Code and other supported clients.

Start with one repository, measure where agents still ask repeated questions, and update the memory file only when the answer is stable. Over time, the file becomes a compact team agreement: enough context to make runs consistent, and enough restraint to keep the agent focused on the work.