Skip to content

smart routing: route Codex v2 subagents - #409

Merged
lilly-luo merged 14 commits into
mainfrom
lilly/codex-subagent
Aug 29, 2026
Merged

smart routing: route Codex v2 subagents#409
lilly-luo merged 14 commits into
mainfrom
lilly/codex-subagent

Conversation

@lilly-luo

@lilly-luo lilly-luo commented Aug 28, 2026

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
Screen.Recording.2026-08-28.at.6.40.13.PM.mov

Comment thread src/ucode/smart_routing/codex_routing.py
Comment thread src/ucode/smart_routing/v2.py
Comment thread src/ucode/smart_routing/v2.py
@lilly-luo
lilly-luo merged commit 2727132 into main Aug 29, 2026
2 checks passed
@lilly-luo
lilly-luo deleted the lilly/codex-subagent branch August 29, 2026 03:40
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.

2 participants