Each agent and skill fileError
Two Claude Code subagents with the same name
Duplicate agent id or name: Two agents share an id or a personal name, so delegation is ambiguous.
Why it matters
The name field is the id Claude Code uses to call a subagent. Two files with one name usually come from a copied file that was never renamed; from then on, which file answers a request is not something you control.
A request for this agent can reach either file, so the work goes to the wrong agent or to both.
An example that triggers it
A small Claude Code project. The marked lines are the ones the check cites.
.claude/agents/security-review.md---name: reviewerdescription: Reviews code for security issues. Use before a release.tools: Read, Greppersona: Omar---You are Omar. Never edit files; report each security finding with file and line..claude/agents/reviewer.md---name: reviewerdescription: Reviews code for bugs and readability. Use after code changes.tools: Read, Greppersona: Ines---You are Ines. Never edit files; report findings with file and line.What Crafthall HQ reports
The output of /crafthall-hq:open --report on this example, generated by the plugin's own check when this page was built.
1. [high] Duplicate agent id or name – .claude/agents/reviewer.md:2 2 agents share the id "reviewer", so "ask reviewer" can reach either. Fix: Give each agent a unique id.
How to fix it
Give the copied agent its own name. A name that matches the file name (security-reviewer in security-reviewer.md) makes the next duplicate easy to spot.
.claude/agents/security-review.md---name: security-reviewerdescription: Reviews code for security issues. Use before a release.tools: Read, Greppersona: Omar---You are Omar. Never edit files; report each security finding with file and line.Run on the fixed project, the check reports nothing for this rule.
How the check works
All `name:` values compared; two files declare the same one. It reads your files with text patterns, on your machine – no model, so the same files give the same result every run.
Check your own team
Install the free plugin, then run /crafthall-hq:open in your project. It runs all checks, not only this one.
claude plugin install crafthall-hq --marketplace crafthall/plugins