[BUG] /code-review skill is now being automatically loaded in sub-agents the code-review skill spawns. Causing it to keep recursively making more agents
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I have been using the inbuilt /code-review quite often for a while now. I have noticed that in the last 2 days, maybe since around 2.1.208 when I am using this inbuilt command now, that the sub-agents it spawns are now also loading this same skill inside themselves, causing them to then spawn the same 8 agents again inside itself.
I can see this is happening be looking at one of the sub-agents the main agent spawns, and it reads:
● Skill(code-review)
Successfully loaded skill
I've not seen this before, and now because some of the spawned sub-agents load it again, it causes them to act like the main agent and spawn another 8 sub-agents.
Seems very inefficient.
An example:
The "Angle C — cross-file tracer" spawned, with a prompt it was given that started like:
"You are doing a code review focused on cross-file impact. For the diff below, find callers of changed functions, check whether the change breaks any call site, and check for ordering/timing dependencies."
Then it loaded this:
● Skill(code-review)
Successfully loaded skill
And it's first thoughts were:
"The user wants a code review using the /code-review skill. The skill has already been loaded and I need to follow its instructions. Let me start by getting the diff and then running the review angles."
And it started spinning up all the 8 angles again in more sub-agents.
What Should Happen?
The /code-review skill should act as before, and not be auto-loaded in the sub-agents it spawns.
Error Messages/Logs
Steps to Reproduce
Use the /code-review skill.
Currently running Sonnet 4.6
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.207
Claude Code Version
2.1.209
Platform
AWS Bedrock
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_