Skip to content

smart routing: route Claude subagents - #408

Open
lilly-luo wants to merge 8 commits into
mainfrom
lilly/claude-subagent
Open

smart routing: route Claude subagents #408
lilly-luo wants to merge 8 commits into
mainfrom
lilly/claude-subagent

Conversation

@lilly-luo

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

Copy link
Copy Markdown
Collaborator

Summary

  • initialize a Claude Code PreToolUse hook for Agent calls when ENABLE_SMART_ROUTING_V2=1
  • pass the discovered compatible Anthropic model menu and subagent prompt to Unity Gateway smart routing
  • override the subagent tool input with the selected Claude model
  • preserve the existing legacy Claude routing path when V2 is disabled

Testing

  • uv run pytest tests/test_claude_smart_routing_v2.py tests/test_claude_routing.py tests/test_cli.py -q
  • uv run ruff check .
  • uv run ruff format --check src/ tests/
Screenshot 2026-08-28 at 12 32 45 PM

@lilly-luo lilly-luo changed the title Route Claude prompts and subagents with smart routing v2 Route Claude subagents with smart routing v2 Aug 28, 2026
@lilly-luo
lilly-luo changed the base branch from main to claude-route-selector-api August 28, 2026 02:42
Base automatically changed from claude-route-selector-api to main August 28, 2026 14:11
@lilly-luo lilly-luo changed the title Route Claude subagents with smart routing v2 smart routing: route Claude subagents Aug 28, 2026
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