[Bug] File Import Instruction Parsing Failure in Claude Code
Resolved 💬 4 comments Opened Sep 1, 2025 by marcoscale98 Closed Jan 5, 2026
Bug Description
Claude Code doesn't follow strictly the instructions in the file imported with @ in CLAUDE.md.
I need a clear explaination from Anthropic on how File Import is handled by CC and what are the best practices.
This is the file import structure:
CLAUDE.md
⎿ test/README.md
⎿ test/claude-code-behaviors.md
In the last file, I have this instruction that CC didn't follow:
3. **Run After Each Test**: Execute `mvn test -Dtest=YourTestClass -Dmaven.surefire.timeout=600` after each individual test implementation
Environment Info
- Platform: linux
- Terminal: windows-terminal
- Version: 1.0.98
- Feedback ID: a9a24a1f-4c52-4c9a-bb52-bfa2332a2a98
Errors
[{"error":"Error: No results found for your query.\n\nIMPORTANT: This tool searches for literal code patterns that would appear in files, not keywords or natural language queries. For example:\n- Instead of 'react hook state', search for 'useState('\n- Instead of 'error handling', search 'catch ('\n at FQB (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:13692)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1858:8561)\n at async jM5 (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:11270)\n at async wmB (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:7469)\n at async PM5 (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:6332)\n at async RM5 (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:5869)\n at async LE (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:3007)\n at async LE (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:3821)\n at async LE (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3533:3821)","timestamp":"2025-08-31T17:12:29.867Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:440:20)\n at Object.readFileSync (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:683:11563)\n at vVA (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:746:8719)\n at Object.call (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1752:936)\n at call.next (<anonymous>)\n at UM (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:2956)\n at file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1771:1038\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-31T17:35:18.936Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at $V (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:1184)\n at file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:912\n at Array.map (<anonymous>)\n at YX (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:903)\n at ogB (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3178:9325)\n at TD (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n at zc (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n at Z9 (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n at jb (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n at hD (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-08-31T17:38:46.918Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at $V (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:1184)\n at file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:912\n at Array.map (<anonymous>)\n at YX (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:903)\n at ogB (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3178:9325)\n at TD (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n at zc (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n at Z9 (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n at jb (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n at hD (file:///home/marco/.npm-global/lib/node_modules/@anthropic-ai
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗