Skip to content
For your teamWhat one developer teaches an agent, a teammate’s agent can use.How it worksWhere a lesson starts and how it reaches every agent.Code reviewYour team’s knowledge, checked in every PR.SecurityWhat it sends, what it changes and how to leave.Book a call30 minutes with Roei, if you want a hand. Never required.
On your ownYour corrections follow you across agents and repos.Install itnpx harborloop init, in your repo.Every commandWhat the CLI does, and how to take it off again.
DocsPricingSign in
Start free →
For teamsFor individualsHow it worksCode reviewSecurityDocsPricingSign inStart free →
Home/Blog

Blog

  • Supermemory alternatives
  • PR review against AGENTS.md
  • Claude Code second brain
  • Why Copilot ignores it
  • Cursor Team Rules
  • Rules vs skills
  • Claude Tag vs Claude Code
  • GitHub Copilot Memory
  • Codex memories
  • Cursor memories
  • Claude Code auto memory
  • Claude Code team memory
  • Supermemory Company Brain alternatives
  • 3,905 files checked
  • Why Codex ignores it
  • Mem0 alternatives
  • Codex skills
  • Karpathy's LLM wiki
  • Auto mode
  • Memory or documentation?
  • Best company brain tools
  • 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
  • Make Claude Code remember
  • Review comments to rules
  • Slack decisions
  • Company brain
  • Context engineering, Claude 5
  • Context rot, stale rules
  • AGENTS.md research
  • ADRs for agents
  • Memory poisoning
  • Best MCP memory servers
  • Shared memory across agents
  • Growing CLAUDE.md
  • Which rules got used

Blog

Which of my rules did Claude Code actually use?

Published: November 4, 2026

The short answer: nothing shows that today, Claude Code included. Claude Code can show you which instruction files loaded, and when. A tool like Harbor can count, per rule, how often it was handed to an agent and how often an answer cited it. Neither proves the rule was followed.

What Claude Code shows you: what loaded

  • /context breaks your context down by category. The files under Memory files are the CLAUDE.md and rules files that loaded at launch. A CLAUDE.md in a subfolder loads later, on demand, so it is not listed there.
  • The terminal prints a Loaded line with the path when a subfolder CLAUDE.md or a rule with paths loads mid-session. You see the path, not the content.
  • The InstructionsLoaded hook fires once for every CLAUDE.md or .claude/rules file that loads, with the file's path, its scope and the reason it loaded: session start, a subfolder, a matching path, an import or a compaction. It cannot block anything, and it does not fire for an AGENTS.md Claude reads directly.
  • /memory lists where your memory files live, including ones that do not exist yet, and opens them. It is a map, not a load report.

To keep a record across sessions, log the hook. This appends one line per file that loads:

// ~/.claude/settings.json
{
  "hooks": {
    "InstructionsLoaded": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "jq -c '{file_path, load_reason}' >> ~/.claude/instructions-loaded.log"
          }
        ]
      }
    ]
  }
}

A rule with paths loads only when Claude reads, writes or edits a file that matches. If its Loaded line never appears, the rule never reached the model, and nothing about its wording matters yet.

What it cannot show: which rule was used

Anthropic's own debugging guide draws the line. If /context shows a file loaded and Claude still is not following it, the problem is likely how the instruction is written, not whether it loaded. A CLAUDE.md is context, not enforced configuration.

Skills are the one place Claude Code counts use: /skill-doctor shows how often each skill is invoked, because a skill is a discrete call. CLAUDE.md lines and rules are always-on text, and nothing in Claude Code's docs counts them. /doctor prompt-audit reviews the files themselves, not what happened in a session.

The academic name for the gap is the attribution crisis: agents cite a fraction of what they read. The Always-On Agents survey, covering 400 works, lists “which stored information influenced a specific output” among the field's open problems. Not a solved dashboard. An open problem. A count can still point at the likeliest suspects: stale rules that are served and never cited.

Two numbers you can count: served and cited

ETH Zurich's result is the one to keep in your head. arXiv:2602.11988: a developer-written context file moved success 2.4 points, a gain the authors could not tell from noise, and cost about 20 percent more inference. The file was served on every run. Our inference, not something the study measured: almost none of it can have been load-bearing, or the gain would not be that small. Nobody running that study had a count of which lines were which.

Harbor records both, per rule:

  • Served is how many times Harbor handed the rule to an agent.
  • Cited is how many times an answer referred back to it.

A rule served a hundred times and never cited is a rule to question, and the list of those is a list of rules you can probably delete. That is the product: subtraction with a denominator, not a retrieval score. The docs show how Harbor counts it.

A citation is not a proof. Harbor counts; it does not prove which rules an agent obeyed. An uncited rule may still have shaped the turn. That sentence is also in the Terms, because it is the kind of thing a marketing page usually forgets and a contract has to remember.

If a rule must hold, do not leave it to a count

A count tells you what to cut. It does not make a rule stick. For anything that must never happen, such as a destructive command, use a hook or a deny rule that refuses it before it runs. The counts drawn on the home page are sample data and labelled as such. The one result we publish is the controlled test on that page, with its setup stated: one agent and one saved rule, not a team over time. Any other percentage attributed to Harbor did not come from Harbor. Which rules belong where, for a team, is in our Claude Code best practices for teams.

Questions

How do I see which CLAUDE.md files Claude Code loaded?

Run /context and look under Memory files for what loaded at launch. A subfolder CLAUDE.md or a rule with paths loads later, and the terminal prints a Loaded line with its path. The InstructionsLoaded hook fires for each one, with the reason it loaded.

Can Claude Code show which rules it followed?

No. Everything it shows is about what loaded. Anthropic's debugging guide says that if a file loaded and Claude still is not following it, the wording is the likely problem. Skills are the exception: /skill-doctor counts how often each one is used.

What does served vs cited mean?

Served is how many times a rule was handed to an agent. Cited is how many times an answer referred back to it. A rule served often and never cited is one to question. A cite is evidence a rule was used, not proof it was followed.

Your team’s rules, in every agent, checked on every PR.

Harbor is shared memory for your team’s Claude Code, Cursor, Codex and Copilot. Free for you and one teammate. No card. No end date.

Start free →

Product

  • How it works
  • Every agent
  • Code review
  • The result
  • Security
  • For coding agents
  • Pricing

Developers

  • Docs
  • Quickstart
  • CLI
  • MCP server
  • Served and cited
  • Rule-file checker
  • Blog

Guides

  • Why Claude ignores CLAUDE.md
  • AGENTS.md vs CLAUDE.md
  • Does Claude Code read AGENTS.md?
  • Why Codex ignores AGENTS.md
  • Why Cursor ignores rules
  • Copilot instructions vs AGENTS.md
  • Shared memory across agents
  • Make Claude Code remember

Compare

  • vs Mem0
  • vs Zep
  • vs Unblocked
  • vs ByteRover
  • vs Cognee
  • vs Hindsight
  • vs OpenViking
  • vs Supermemory
  • vs Glen

Company

  • Questions
  • Contact
  • X
  • LinkedIn
  • Privacy Policy
  • Terms of Service
  • Data Processing Agreement
  • Refund Policy
© 2026 HarborStart free