Description
When using the Agent tool to spawn subagents in Claude Code CLI, the documentation states that SendMessage should be available to continue a previously spawned agent with its context preserved. However, SendMessage does not appear in the available tools list, making it impossible to resume an existing subagent. Each Agent call starts a fresh agent with no memory of prior interactions.
Additionally, the debug logs show repeated errors on subagent stop:
[ERROR] [hook:SubagentStop] Processor metrics: Session metadata not found - session must be created before processing
[ERROR] [hook:SubagentStop] Processor conversations: Session metadata not found - session must be created before processing
[WARN] [sso-session-sync] Sync had failures: Session not found
This suggests subagent sessions are not being registered properly in the session store.
Steps to Reproduce
- Start Claude Code CLI (
claude)
- Ask Claude to spawn a subagent via the
Agent tool
- Attempt to continue the same agent by referencing its
agentId from the response
- Claude reports that
SendMessage is not available in its tool list and spawns a new agent instead
Expected Behavior
SendMessage is available as a tool so Claude can resume the subagent with full context preserved (as documented in the Agent tool description).
Actual Behavior
SendMessage is absent from the available tools list. Every follow-up spawns a new agent without context. Subagent stop hooks log Session metadata not found errors.
Environment
| Field |
Value |
| OS |
Windows 11 Enterprise 10.0.26100 |
| Node.js |
v24.13.0 |
| npm |
11.6.2 |
| CodeMie CLI |
0.3.2 |
| CodeMie Code agent |
0.0.47 |
| Claude Code |
installed via npm |
| Shell |
bash (Git Bash) |
| Model |
claude-sonnet-4-6 |
| CodeMie URL |
https://codemie.lab.epam.com |
Installed Agents
- CodeMie Code (0.0.47)
- Claude Code (installed via npm — deprecated)
CodeMie Doctor Output
Full doctor output
Node.js: v24.13.0 ✓
npm: 11.6.2 ✓
Python: 3.14.2 ✓
uv: not found (optional)
AWS CLI: not found (optional)
Active Profile: default
Provider: ai-run-sso
CodeMie URL: https://codemie.lab.epam.com
API Key: proxy-ha***dled
Model: claude-sonnet-4-6
SSO: operational, session expires in 19 hours
CodeMie Code: 0.0.47 ✓
Claude Code: installed via npm (deprecated)
Git: gitlab remote detected
Recent Errors from Logs
ERROR and WARN entries from recent logs (~/.codemie/logs/)
[hook:SubagentStop] Processor metrics: Session metadata not found - session must be created before processing
[hook:SubagentStop] Processor conversations: Session metadata not found - session must be created before processing
[sso-session-sync] Sync had failures: Session not found
[SessionStore] Cannot start activity tracking - session not found
These errors repeat for every subagent invocation (session ID: 7aa20179-728e-492c-8c1c-a428416ca2a6).
Full logs available at: ~/.codemie/logs/debug-2026-08-20.log and debug-2026-08-19.log
Description
When using the
Agenttool to spawn subagents in Claude Code CLI, the documentation states thatSendMessageshould be available to continue a previously spawned agent with its context preserved. However,SendMessagedoes not appear in the available tools list, making it impossible to resume an existing subagent. EachAgentcall starts a fresh agent with no memory of prior interactions.Additionally, the debug logs show repeated errors on subagent stop:
This suggests subagent sessions are not being registered properly in the session store.
Steps to Reproduce
claude)AgenttoolagentIdfrom the responseSendMessageis not available in its tool list and spawns a new agent insteadExpected Behavior
SendMessageis available as a tool so Claude can resume the subagent with full context preserved (as documented in the Agent tool description).Actual Behavior
SendMessageis absent from the available tools list. Every follow-up spawns a new agent without context. Subagent stop hooks logSession metadata not founderrors.Environment
Installed Agents
CodeMie Doctor Output
Full doctor output
Recent Errors from Logs
ERROR and WARN entries from recent logs (~/.codemie/logs/)
These errors repeat for every subagent invocation (session ID: 7aa20179-728e-492c-8c1c-a428416ca2a6).
Full logs available at: ~/.codemie/logs/debug-2026-08-20.log and debug-2026-08-19.log