Skip to content

Add Agent matcher alias for spawn_agent hooks#23789

Draft
abhinav-oai wants to merge 7 commits into
abhinav/subagent-hook-context-stackfrom
abhinav/spawn-agent-hook-alias
Draft

Add Agent matcher alias for spawn_agent hooks#23789
abhinav-oai wants to merge 7 commits into
abhinav/subagent-hook-context-stackfrom
abhinav/spawn-agent-hook-alias

Conversation

@abhinav-oai
Copy link
Copy Markdown
Collaborator

@abhinav-oai abhinav-oai commented May 21, 2026

Why

spawn_agent should be matchable by hook configs that use the Agent matcher while Codex keeps the canonical name as spawn_agent

What

  • Add a HookToolName::spawn_agent() identity that serializes spawn_agent and accepts Agent as a matcher alias.
  • Normalize the built-in plain and v1 namespaced spawn_agent tools onto that hook identity when default function-tool hook payloads are built.

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