Enable agent teams (SendMessage) by default - #288
Open
pufit wants to merge 1 commit into
Open
Conversation
The CLI gates SendMessage behind CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS, but the Agent tool advertises it either way — its description and every spawn result tell the model to resume a sub-agent with SendMessage, so the model reaches for a tool that was never registered. Nerve loads no settings files (setting_sources=[]), so the env dict is the flag's only route into the CLI. Add agent.agent_teams (default true) and emit the var from the claude backend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
agent.agent_teams(defaulttrue), which setsCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1for the CLI subprocess.Why
The CLI gates the
SendMessagetool behind that flag, but the Agent tool advertises it regardless — its own description says "Use SendMessage with the agent's ID or name to continue a previously spawned agent with its context intact", and every spawn result repeats it (use SendMessage with to: '<id>'). With the flag off, the model is told to resume sub-agents with a tool that was never registered: it tries, and it fails. Upstream report: anthropics/claude-code#35240Nerve loads no settings files (
setting_sources=[]), so~/.claude/settings.jsoncan't carry the flag the way it does for CLI/extension users — theenvdict built in the claude backend is the only route in.Verified
Probed with a standalone SDK client using Nerve's exact option shape (
setting_sources=[], explicitenv, stream-json transport), CLI 2.1.207:SendMessagein init toolsTOOL_MISSINGThe raw
claude -ppath listsSendMessagein the init handshake either way, so the SDK option shape had to be reproduced to see the real gate.Notes
POST /api/config/reload, same seam as the rest ofagent.*.3029 passed.