Skip to content

smart routing: route Codex v2 subagents - #409

Open
lilly-luo wants to merge 5 commits into
mainfrom
lilly/codex-subagent
Open

smart routing: route Codex v2 subagents#409
lilly-luo wants to merge 5 commits into
mainfrom
lilly/codex-subagent

Conversation

@lilly-luo

Copy link
Copy Markdown
Collaborator

Summary

  • initialize the Codex PreToolUse spawn-agent routing hook when ENABLE_SMART_ROUTING_V2=1
  • reuse the existing Unity Gateway routing command and pass all cached compatible models
  • preserve existing user PreToolUse hooks while layering the V2 hook into app-server config

Testing

  • .venv/bin/pytest tests/test_codex_smart_routing_v2.py tests/test_codex_routing.py tests/test_agent_codex.py tests/test_lint.py -q
  • .venv/bin/ruff check .
  • full suite: 2,021 passed; remaining failures/errors require local socket permissions unavailable in the sandbox

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