[BUG] Agent in Agent Doesn't Work

Resolved 💬 6 comments Opened Oct 17, 2025 by r03t Closed Jan 10, 2026

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 am trying to run agent int agent and it fails. Sub agent thinks its own task.

What Should Happen?

Sub agent should be able to execute agent

Error Messages/Logs

Steps to Reproduce

I have agent that runs tasks in the yml. When I give task to call sub agent it doesn't work well sometimes. Or doesn't log correctly to the terminal.

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.21

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗