Skip to content

feat(delegation): let agents spawn sub-agents without an @ mention - #478

Open
Adam-Dalloul wants to merge 1 commit into
xintaofei:mainfrom
Adam-Dalloul:feat/self-initiated-delegation
Open

feat(delegation): let agents spawn sub-agents without an @ mention#478
Adam-Dalloul wants to merge 1 commit into
xintaofei:mainfrom
Adam-Dalloul:feat/self-initiated-delegation

Conversation

@Adam-Dalloul

@Adam-Dalloul Adam-Dalloul commented Aug 16, 2026

Copy link
Copy Markdown

Merge order

  1. This PR first (#478)
  2. Then #480 (Settings toggle for the same spawn-without-@ behavior)

#480 includes this commit. Merge this on its own; do not squash #480 first.


The delegate_to_agent tool already runs for every agent when delegation is enabled. The tool description told models that an @Agent / codeg://agent/ mention is the trigger, so they waited for one.

This updates the description (and the agent_type field) so a parent may spawn a listed agent on its own when a sub-task is independent and another listed slug is a better fit. An @ mention must still be honored. Slugs stay the advertised enum (built-ins plus custom:). The child still starts cold; this is not a whole-conversation fan-out, and it is not Grok's native spawn_subagent.

Tests

  • tools_list_returns_three_delegation_tools now asserts the self-initiate wording and that the old "mention IS the trigger" copy is gone.

No UI change. No secrets. One concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant