Sub-Agent Response Handling Not Returning Output to Console

Resolved 💬 4 comments Opened Jul 25, 2025 by RickCogley Closed Aug 19, 2025

Bug Description
Hi, I'm attempting to use the new sub-agents feature (which I am hoping will help with context management), but I noticed that if I invoke a sub agent using natural language like on your docs page, nothing is ever returned to the console. I am now wondering if this is by design and if so, is there a magic phrase we can use in the agent's markdown file, to tell the main claude code thread, to show the user the answer to what they asked? The docs page implies that you can invoke, which implies that you should also be able to see some answer to the query you made.

I created an agent with /agent and tried it, but, while claude code seems satisfied with the result, I cannot see the result (CC says "perfect!" after and said it could see the result, but, I could not). See the screenshot:

<img width="2780" height="666" alt="Image" src="https://github.com/user-attachments/assets/6d9d5c7f-8eb6-45ad-b85f-a9986becc911" />

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 1.0.60
  • Feedback ID: 9297f3b2-e077-4b9f-8754-f9b2c3665773

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:924:11)\n    at execSync (node:child_process:996:15)\n    at i7 (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:865:5196)\n    at file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:49014\n    at Q (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:674:14420)\n    at kJ (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:46725)\n    at XH (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:45592)\n    at I9 (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:51640)","timestamp":"2025-07-25T06:04:35.893Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at BX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at QX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at g_B (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2525:7705)\n    at gM (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at gv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at fv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at RS (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at ZR (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-25T06:04:41.083Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at BX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at QX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at g_B (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2525:7705)\n    at gM (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at gv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at fv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at RS (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at ZR (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-25T06:04:41.095Z"}]

View original on GitHub ↗

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