Claude Code’s Bash-first workflow may bypass nested repository instructions
state: corroboratedheat: lowuncertainty: mediumrelevance: highcoding-agents instruction-loading agent-harnessesmicrolatencyAnthropic
What is this?
A Claude Code user reported that, in their audit of 480 main sessions and about 1,200 subagent transcripts, nested CLAUDE.md instructions were usually loaded only after Claude used the native Read tool in that directory. The user said Auto Mode’s Bash-first guidance coincided with far fewer nested files loading before edits, and that Bash-based edits also bypassed some PostToolUse hooks. This is a firsthand, single-repository report, not a measure of all users; a linked GitHub issue describes a similar reproduction, but the supplied sources do not establish Anthropic’s confirmation or the issue’s current status. Later sources report AGENTS.md support and a separate rollout error, so the instruction-loading behavior may have changed across versions.
Why it matters
The added reports reinforce that coding-agent behavior around repository instructions can silently depend on file layout and configuration, so users should verify loaded rules; they do not establish how prevalent or consequential the original behavior is across installations.
Current assessment
A user reported auditing 480 main Claude Code sessions and about 1,200 subagent transcripts in one repository, finding nested CLAUDE.md files loaded before the first edit in 10% of sessions with Bash-first guidance versus 79% without it and 80% in older sessions. They report that nested rules loaded through native Read but not Bash file access, and that Bash edits bypassed some Edit/Write-matched hooks. A linked GitHub issue offers a similar firsthand reproduction; neither establishes prevalence across users or current-version behavior. Claude Code later added AGENTS.md support, but reports indicate default handling depends on whether CLAUDE.md is present and can be configured to load both. A new HN item titled “In 1 in 6 repos with both files, Claude Code never loads the AGENTS.md” suggests a potentially broader configuration issue, but no methodology or supporting detail is available in this evidence. The original Read-versus-Bash behavior remains unresolved; users should verify loaded instructions in their installed version and mode, and enforce critical constraints through hooks, wrappers, or CI. Discussion is currently quiet.
Measured heat
now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 2185h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (14) — ⭐ canonical anchor
Interpretation history
2026-11-14T12:22:05Z
A new HN item claims that AGENTS.md is never loaded in one in six repositories containing both instruction files, extending the concern from individual reproductions to a possible prevalence issue. The item supplies no underlying methodology or evidence here, and this adjacent AGENTS.md behavior does not establish whether the original nested CLAUDE.md Read-versus-Bash issue persists.
2026-11-07T03:27:44Z
New comments describe importing or symlinking AGENTS.md as a practical workaround, reinforcing that teams can mitigate instruction-file mismatches through configuration. They do not establish whether the original nested CLAUDE.md Read-versus-Bash behavior persists, and the comments add no material new evidence beyond workarounds already noted.
2026-11-04T02:26:19Z
The original report remains a credible, firsthand but single-repository finding; later reports show instruction-file selection is configurable and version-sensitive, not that the nested-CLAUDE.md loading behavior was fixed. The new demonstration concerns AGENTS.md being skipped by default when CLAUDE.md is present, a related instruction-discovery pitfall rather than independent confirmation of the original Read-versus-Bash mechanism; attention has cooled substantially.
2026-10-22T03:23:14Z
audience grounding: high — This is a consequential reliability issue in the coding-agent harness, not a model-capability comparison: project instructions and hooks matter only if the agent actually loads or triggers them. One user’s transcript audit suggests Auto Mode’s Bash-first guidance can undermine nested rules in a monorepo, but the evidence is user-reported and version-sensitive. Later reports show Claude Code’s instruction-file behavior continued to evolve, so users should verify what their installed version loaded rather than assume the original finding still applies.
Decision trace
- 11-14 23:22attention_candidatematerial_reprice
- 11-14 23:22repriceA new HN item claims that AGENTS.md is never loaded in one in six repositories containing both instruction files, extending the concern from individual reproductions to a possible prevalence issue. Th
- 11-14 23:21attention_candidateattach
- 11-14 23:21attachThe study adds evidence to the existing question of whether Claude Code reliably loads repository instructions.
- 11-14 23:21propose_attachThe study adds evidence to the existing question of whether Claude Code reliably loads repository instructions.
- 11-07 14:27repriceNew comments describe importing or symlinking AGENTS.md as a practical workaround, reinforcing that teams can mitigate instruction-file mismatches through configuration. They do not establish whether
- 11-07 14:27review_screenNew firsthand comments report that importing or symlinking AGENTS.md through CLAUDE.md makes the shared instructions load in Claude Code, offering a practical workaround to the configuration-dependent
- 11-07 14:27review_screenjev screen borderline (noul=0.40) — luna review
- 11-04 20:21sensor_dirtycomment_update
- 11-04 14:21sensor_dirtycomment_update
- 11-04 13:26attention_candidatematerial_reprice
- 11-04 13:26repriceThe original report remains a credible, firsthand but single-repository finding; later reports show instruction-file selection is configurable and version-sensitive, not that the nested-CLAUDE.md load
- 11-04 13:26review_reactivatedThe original report remains a credible, firsthand but single-repository finding; later reports show instruction-file selection is configurable and version-sensitive, not that the nested-CLAUDE.md load
- 11-04 13:22attention_candidateattach
- 11-04 13:22attachThe controlled examples add specific evidence that Claude Code may omit AGENTS.md when CLAUDE.md is also present.
- 11-04 13:22propose_attachThe controlled examples add specific evidence that Claude Code may omit AGENTS.md when CLAUDE.md is also present.
- 11-01 16:29review_dormant28 days without material information; scheduled checks stopped
- 10-26 13:30review_screenjev screen: no material development (noul=0.03)
- 10-26 13:30drop_targetsquiet through full ladder or over cap 8
- 10-22 14:23groundThis is a consequential reliability issue in the coding-agent harness, not a model-capability comparison: project instructions and hooks matter only if the agent actually loads or triggers them. One u
- 10-19 00:10attention_routeThe editor compared this story and chose to keep watching.
- 10-18 22:35attention_routeThis directly impacts Scott's router project's markdown-defined Claude Code agents which depend on nested CLAUDE.md delivery. The indicated Read-vs-shell regression test and deny-permissions
- 10-18 22:03repriceNew evidence (reddit.post.1x8zotz) adds practical context — CLAUDE.md files often live outside git, so shell-based access missing them is a real deployment risk — but does not advance the core Read-vs
- 10-18 21:25attention_routeThis directly impacts Scott's router project's markdown-defined Claude Code agents which depend on nested CLAUDE.md delivery. The indicated Read-vs-shell regression test and deny-permissions
- 10-18 21:22attention_candidateattach
- 10-18 21:22attachPractical user report about CLAUDE.md files living outside git, directly contextualizing the nested-instruction-loading case's finding that shell-based access misses these files.
- 10-18 21:22propose_attachPractical user report about CLAUDE.md files living outside git, directly contextualizing the nested-instruction-loading case's finding that shell-based access misses these files.
- 10-11 21:11review_screenNew comments discuss AGENTS.md vs CLAUDE.md precedence configuration (already documented in assessment as known behavior) and personal CLAUDE.md usage patterns. None address the core Read-vs-shell mec
- 10-11 21:10review_screenjev screen borderline (noul=0.50) — luna review
- 10-07 20:24repricebestpromptfinder's post adds a second, documented (not defective) mechanism of the same failure class — AGENTS.md silently skipped whenever a CLAUDE.md exists — widening the case's meaning f
- 10-07 20:23attachSecond, distinct mechanism (documented AGENTS.md-vs-CLAUDE.md precedence) of repo conventions silently not reaching the coding agent — same failure class the case is re-judging.
- 10-07 20:22propose_attachSecond, distinct mechanism (documented AGENTS.md-vs-CLAUDE.md precedence) of repo conventions silently not reaching the coding agent — same failure class the case is re-judging.
- 10-05 16:22review_screenjev screen: no material development (noul=0.09)
- 10-04 17:20sensor_dirtycomment_update
- 10-04 16:32repriceA third independent account (mudmohammad's transcript token accounting: CLAUDE.md/agent configs unloaded in 9/10 real sessions) shifts the case's meaning from 'mechanism plausibly bypas
- 10-04 16:32groundIndependently converges with Manners-vs-Physics and Guardrail Illusion: Claude Code's on-access instruction loading is a probability barrier keyed to the model's tool choice, and mudmohammad
- 10-04 16:24review_reactivatedA third independent account (mudmohammad's transcript token accounting: CLAUDE.md/agent configs unloaded in 9/10 real sessions) shifts the case's meaning from 'mechanism plausibly bypas
- 10-04 16:23attachMeasured transcript accounting finds CLAUDE.md and agent configs unloaded in 9/10 sessions plus quantified context-bloat and subagent model-inheritance waste — practical evidence that repo instruction
- 10-04 16:23propose_attachMeasured transcript accounting finds CLAUDE.md and agent configs unloaded in 9/10 sessions plus quantified context-bloat and subagent model-inheritance waste — practical evidence that repo instruction
- 10-03 17:17review_dormantscheduled targets exhausted or 28 quiet days