Claude Code Agents Don't Automatically Read Project Documentation

How Claude Code Agents Handle Project Documentation
When working with Claude Code's agent system, developers should be aware of a specific limitation in how subagents access project documentation. According to a user report from r/ClaudeAI, when Claude Code dispatches agents to handle coding tasks, those agents operate with limited context.
Key Details from the Source
The issue was discovered during a debugging session where an agent repeatedly hit documented gotchas. When asked why it ignored the documented warnings, the agent responded: "I didn't read CLAUDE.md before writing the callback. I had the codebase patterns in my prompt context from the exploration phase, but when I dispatched the Sonnet agent to write the OAuth routes, the agent prompt described what to build, not what gotchas to check against."
The agent further clarified: "The Sonnet subagents only see what I put in their prompt. They don't automatically read CLAUDE.md, MEMORY.md, or any project context unless I explicitly tell them to."
Practical Implications
- Subagents like Sonnet work only with the context provided in their specific prompt
- Project documentation files (CLAUDE.md, MEMORY.md) are not automatically loaded
- Agents write code from scratch without consulting existing gotcha lists unless explicitly instructed
- This can lead to agents repeating documented issues that could have been avoided
This behavior means developers need to be explicit about including documentation references when dispatching agents to handle specific coding tasks. The agents maintain the codebase patterns from the exploration phase but don't automatically reference project-specific documentation files.
📖 Read the full source: r/ClaudeAI
👀 See Also

Short system prompts improve Claude's adherence and reduce token waste
A developer discovered that replacing a 3,847-word system prompt with several tiny focused prompts (total ~200 words) eliminated Claude's drift and forgotten instructions.

OpenClaw Implements API Cost Fix and Local Model Tool Improvements
OpenClaw has rolled out key updates addressing API usage costs and improving local model tool integrations, enhancing developer experience and operational efficiency.

Claude Code Visual: Practical Notes on Hooks, Subagents, MCP, and CLAUDE.md
A developer shares practical experience using Claude Code Visual, covering MCP hook syntax, CLAUDE.md for project context, subagent delegation patterns, and the /loop command for recurring tasks.

A Two-Step AI Workflow for Legacy Code Modernization
A Reddit post outlines a two-step 'reverse engineering' approach for using AI with legacy code: first extract business logic into a technology-agnostic Business Requirement Document, then use a 'Master Architect' prompt to rebuild from scratch with modern best practices.