[BUG] Agents are installed in wrong folder if not in project root when running /agents
Resolved 💬 6 comments Opened Aug 19, 2025 by joakimriedel Closed Jan 7, 2026
Environment
- Platform (select one):
- [ x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.84
- Operating System: macOS
- Terminal: Terminal App
Bug Description
If the /agents command is used to install a new agent, and you currently are in a subfolder (due to previous claude code work), the agent will be installed in a new .claude/commands folder in the subfolder. The install wizard will be completed, but the agent will never run unless moved into the correct folder.
Steps to Reproduce
- Start claude
- Do some work that put you in a subfolder (which is not always clear unless statusbar is installed)
- Install an agent for Project (not User)
Expected Behavior
Agent should be installed in correct project root folder
Actual Behavior
Installed in wrong location
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗