
What happened
With three rule files in place, launching CLAUDE_CONFIG_DIR=~/.claude-work in ~/repo pulled in the personal ~/.claude/CLAUDE.md and ~/.claude/rules/**, and the repository's AGENTS.md was not read.
Why it matters
Splitting accounts by folder can silently merge one account's conventions into another's work, so the repository's own rule file is ignored.
Summaries like this, in your inbox every morning.
Many Mac users face a practical setup: one machine, two Claude Code accounts, such as a company Team plan and a personal Max plan. The recommended fix is the CLAUDE_CONFIG_DIR environment variable, which redirects Claude Code's configuration to a per-account folder like ~/.claude-work instead of the usual ~/.claude. That moves settings.json, CLAUDE.md, skills, MCP settings, and the projects/ conversation logs into the new folder. An alias in ~/.zshrc makes the switch easy, and claude auth status shows which folder is in use.
The catch appears only in a specific layout. Claude Code reads <folder>/.claude/CLAUDE.md as project instructions while walking up from the working directory, so when the repository sits under the home folder, ~/.claude/CLAUDE.md is picked up as if it belonged to a project. Normally that file is just the personal configuration, so nothing seems wrong; with a separate work folder, it suddenly acts as another account's rules, and it also makes the repository's AGENTS.md go unread. The test confirms this is layout-dependent: a repository outside the home folder did not show the mix-in.
The proposed guard is claudeMdExcludes in the work folder's settings.json. Listing the personal CLAUDE.md restores AGENTS.md, but the rules/ folder needs its own entry, or those rules keep leaking through.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Researchers at Microsoft published a paper titled "Adoption and Impact of Command-Line AI Coding Agents: A Stu…

Meta released open weights for Muse Spark Open, an 816B-parameter model built for coding and long-running agen…
In a Zenn article, EC自動化工房 laid out a pre-generation cleanup step for product masters, adding notation rules t…

OpenAI announced GPT-6 Sol / Luna in September 2026, and the notable change was not the top model's performanc…

Three one-line requests and three requests with written completion criteria to Claude Code produced functional…

A five-person team running a Claude Code-based development setup split each decision record's reason into 推奨理由…
