Claude Code "--add-dir" Arguement
Game Changer for Full-Stack Development
· 1 min read

Just discovered an incredibly powerful feature: the “--add-dir” flag that lets Claude Code treat multiple repositories as a single codebase. This is revolutionary for full-stack workflows.
Why this matters:
✨ Claude Code can seamlessly work across your frontend and backend repos simultaneously
✨ Create UI components in the frontend while generating the matching API endpoints in your backend
✨ Ensure perfect synchronization between client and server code
✨ No more context switching between different Claude Code sessions
Example:cd my-frontend
claude --add-dir ../my-backend
Now Claude has full visibility across both codebases and can make coordinated changes that keep everything in sync. It's like having a senior full-stack developer who never loses track of the bigger picture.
🔗 Check out my detailed guide on additional directories: https://www.claude-code-training.com/cookbook/additional-directories
Exciting announcement: I'm now offering Claude Code training. Schedule training for you or your team.
🔗 Explore the full training site: https://www.claude-code-training.com/
Stay Updated
Subscribe to get more insights delivered to your inbox.
Originally published on Substack.