Skip to content
harbor
How it worksAgentsReviewMeasureDocsPricing
Get started →
How it worksAgentsReviewMeasureDocsPricingGet started →
Home/Blog

Blog

  • Claude Code and AGENTS.md
  • Claude Code skills
  • Claude Code hooks
  • claude-mem
  • Claude Code best practices
  • Karpathy CLAUDE.md
  • AGENTS.md vs CLAUDE.md
  • Cursor rules
  • copilot-instructions.md
  • Why Claude ignores it
  • CLAUDE.md length
  • Committing CLAUDE.md
  • Agent memory compared
  • CLAUDE.md vs skills vs hooks
  • Same mistake again
  • Review comments to rules
  • Slack decisions
  • Company brain
  • Context engineering, Claude 5
  • Context rot, stale rules
  • AGENTS.md research
  • ADRs for agents
  • Memory poisoning
  • MCP memory servers
  • Claude Code, Cursor, Codex
  • Growing CLAUDE.md
  • Served vs cited

Blog

Context engineering for Claude 5: what changes for teams

Published: September 23, 2026

Anthropic's July 24, 2026 post says newer Claude models need less instruction, not more. It cut over 80 percent of Claude Code's system prompt with no measurable eval loss. For team files that means a short CLAUDE.md of gotchas, judgment over rigid rules, detail moved into skills, and auto memory in place of hand edits.

The post is “The new rules of context engineering for Claude 5 generation models” by Thariq Shihipar. This note reads it for teams: what to change in the files you commit, and the one question it leaves open.

What did Anthropic change in Claude Code's system prompt?

It deleted most of it. The opening claim: “We removed over 80% of Claude Code's system prompt for models like Claude Opus 5 and Claude Fable 5 with no measurable loss on our coding evaluations.”

The reason given is not token cost. It is that instructions collide. When the system prompt, a skill, and the user each say something slightly different, “Claude must think more carefully about these overlapping and conflicting messages before deciding what to do.” Rules written to correct an older model's habits become friction for a newer one that did not have the habit.

This follows Anthropic's September 2025 essay on effective context engineering, which set the goal as “the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome.” The July post is the same idea applied to their own prompt, with a number attached.

What should go in CLAUDE.md now?

Less. The post's advice is specific: “Keep your CLAUDE.md lightweight and briefly describe what your repo is for, but spend most of the tokens on gotchas inside of the codebase.”

A gotcha is something the model cannot infer from the tree. That the test command is pnpm test is inferable from package.json. That payment webhooks must dedupe on the provider's event ID before any write, because of a double refund your team argued about in #eng-payments, is not. The first line is noise. The second is the reason the file exists.

The docs back this with tooling. /doctor now proposes trims for a checked-in CLAUDE.md: it cuts directory layouts, dependency lists and architecture overviews Claude can derive, and keeps “pitfalls, rationale, and conventions that differ from tool defaults” (Claude Code 2.1.206 or later, per the memory docs, checked 2026-09-23).

Judgment over rules: what does that look like?

The post shows an old line from Claude Code's own prompt. It told Claude to default to writing no comments and never to write multi-line comment blocks, one short line at most. Its replacement: “Write code that reads like the surrounding code: match its comment density, naming, and idiom.”

The first is a rule that is wrong wherever the codebase disagrees with it. The second tells the model what to look at and trusts it to look. For team files the move is the same. “Never use any” is a fine rule. “Always put handlers in src/api/handlers/” is fine until the day someone moves them, after which it is a rule that fights the code.

The post also warns off examples: “giving examples actually constrains them to a certain exploration space.” Where you need precision, it prefers code: “Generally you should prefer files that are in code as it provides clear, high-fidelity instructions to Claude in a language it knows very well.” A test that fails on a missing dedupe check says more than a paragraph about idempotency.

What is progressive disclosure in Claude Code?

Loading detail only when the task needs it. The post: “Use progressive disclosure heavily, for example if you have several unique instructions on how to verify your work, create a verification skill and reference it from your CLAUDE.md.” Claude Code itself does this with tools: some are “deferred loading,” so the agent searches for their definitions before it uses them.

In practice there are three layers. CLAUDE.md is always on. Path-scoped rules in .claude/rules/ arrive when Claude reads a matching file. Skills send a name and description every turn and the body only when invoked. The trade is that anything behind a trigger can be missed when the trigger does not fire; which layer suits which rule is laid out in CLAUDE.md vs skills vs hooks.

Does auto memory replace CLAUDE.md?

For personal learnings, yes. The post: “We used to encourage users to save things to Claude's memory, by using the # hotkey to write to their CLAUDE.md automatically. Instead, Claude now automatically saves memories that are relevant to the work and to you.”

For the team, no, and the docs say why. Auto memory lives in ~/.claude/projects/<project>/memory/. It “is machine-local” and its files “are not shared across machines or cloud environments.” The first 200 lines or 25KB of its index load each session. Claude writes it; no one approves it.

CLAUDE.mdAuto memorySkill
Who writes itA personClaudeA person
Where it livesThe repoYour machineThe repo or your user folder
Shared with the teamYes, through gitNoYes, if committed
ReviewedIn a PR, if anyone looksNoIn a PR, if anyone looks
LoadsEvery sessionIndex every sessionDescription every turn, body on use
Goes staleUntil someone deletes the lineClaude is told to drop stale entries when the index nears its limitUntil someone edits it

What does this leave for teams?

The post is written for one developer and one model, and for that reader it is complete. A team has a problem it does not address: who decides what the team knows.

Follow the advice and you get a short committed file, plus one auto memory per engineer per machine. Five engineers, five memories, each learned from different corrections, none visible to the others, none approved by anyone. When your team reverses the webhook decision in Slack, the engineer who was in the thread corrects their Claude. The other four keep the old rule in memory, and Cursor never heard about the change at all.

  • Minimal files push knowledge out of the repo, which is right, but somewhere else has to hold it.
  • Judgment over rules works for style. It does not work for a decision the model has no way to infer, like a retention window your legal team set.
  • Progressive disclosure needs someone to know which fact belongs to which task.
  • Auto memory captures what one session learned and keeps it on one machine.

How to apply the post this week

  • Run /doctor and accept the trims you agree with.
  • Delete rules the current model follows without being told. Test by removing one and running a task that would have tripped it.
  • Rewrite rigid style rules as “match the surrounding code” where the codebase already shows the answer.
  • Move procedures into skills, and reference them from CLAUDE.md.
  • Move must-never rules into hooks or permission rules.
  • Read every instruction file on the path together, and delete one side of each contradiction.

Harbor is the shared half. It reads where the team already decides (Slack, PR review threads, docs), a person or your review policy approves each fact, and every agent, Claude Code, Codex or Cursor, is served only the facts that apply to the task on turn one. That is progressive disclosure with an owner. What a session learns is written back and staged for review rather than kept on one laptop, and each rule carries two counts, how often it was served and how often an answer cited it, so a short file can stay short. Read how facts get in and out, or start with the quickstart. The per-agent memory landscape is in Claude Code memory vs Codex, Cursor and Copilot, and sizing is in how long should CLAUDE.md be.

Questions

What did Anthropic say about context engineering for Claude 5 models?

In a July 24, 2026 post, Anthropic said it removed over 80 percent of Claude Code's system prompt for Claude Opus 5 and Claude Fable 5 with no measurable loss on its coding evaluations. It recommends lightweight CLAUDE.md files, judgment over rigid rules, and progressive disclosure through skills.

What should go in CLAUDE.md for Claude 5 models?

A brief description of what the repo is for, then gotchas the model cannot infer from the code. Drop directory layouts, dependency lists and rules the model already follows; /doctor proposes these trims for a checked-in CLAUDE.md.

What is progressive disclosure in Claude Code?

Loading detail only when a task needs it. CLAUDE.md is always on, path-scoped rules load when Claude reads matching files, and skills send only a name and description until invoked.

Does Claude Code auto memory replace CLAUDE.md?

For personal learnings, largely yes. For a team, no: auto memory is machine-local, written by Claude, not shared across machines, and not approved by anyone.

harbor

Decide once. Every agent knows. One company brain for all the agents your team runs, built from work you already do and kept only while it is still true.

Product

  • How it works
  • Review
  • Your agents
  • Guardrails
  • What it counts
  • Pricing

Developers

  • Docs
  • Blog
  • CLI
  • MCP server
  • Served and cited
  • Environments

Company

  • Get started
  • Contact
  • Privacy Policy
  • Terms of Service
  • Data Processing Agreement
  • Refund Policy
© 2026 harbor·Product names and logos are trademarks of their respective owners.