[BUG] Using a mono-repo - Claude falsely claims my `CLAUDE.md` has external file references, when it doesn't.

Resolved 💬 3 comments Opened May 26, 2025 by asgeo1 Closed Nov 30, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.126
  • Operating System: macOS 15.5
  • Terminal: Kitty w/ tmux

Bug Description

Claude is claiming I have external references, but I surely don't

This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories.

<img width="1343" alt="Image" src="https://github.com/user-attachments/assets/ba5e5b35-40e4-4862-bff9-77d21c05a9ac" />

I'm very sure it's confused about this.

Steps to Reproduce

  1. I create a CLAUDE.md with nothing but this content:

``markdown
@AGENTS.md
``

I do this because it seems better to have all that info in a more standard file location, that other agents can read and respect (i.e. OpenAI codex)

FWIW, I'm also in a mono-repo, and created this in a subdirectory of the monorepo (both files are in that subdirectory)

  1. Obviously AGENTS.md needs to exist too, so create that with whatever content
  1. Start claude in the monorepo subdirectory.

Expected Behavior

Claude should start normally and read/respect the content in AGENTS.md

Actual Behavior

Claude prompts with the This project's CLAUDE.md imports files outside the current working directory message.

I have to allow it to "read external file imports" - even though I don't have any external file imports.

Other than that, Claude starts normally and does seem to read/respect the AGENTS.md file.

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗