Skip to content

fix(orchestrator): respect KG action template CLI tool in routing engine#819

Merged
AlexMikhalev merged 1 commit intomainfrom
fix/routing-cli-override
Apr 17, 2026
Merged

fix(orchestrator): respect KG action template CLI tool in routing engine#819
AlexMikhalev merged 1 commit intomainfrom
fix/routing-cli-override

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

  • Fix routing engine to extract cli_tool from RoutingDecision.candidate when use_routing_engine = true, so that KG action templates (e.g. /home/alex/.local/bin/claude) override the agent default cli_tool (e.g. opencode)
  • Update taxonomy model names from version-pinned to Claude CLI aliases (haiku, sonnet, opus) so they resolve to latest automatically

Problem

When use_routing_engine = true, the RoutingDecisionEngine returns both model and cli_tool from the KG route action template, but spawn_agent() only extracted the model and discarded the CLI tool. Agents with cli_tool = opencode stayed on opencode even when KG routes specified claude CLI for anthropic models.

Testing

  • 412 orchestrator tests pass
  • Deployed on bigbox, verified end-to-end: @adf:developer mention detected, KG routed to haiku via review_tier, agent spawned with cli=/home/alex/.local/bin/claude model=Some("haiku"), completed successfully

Refs #579

When use_routing_engine is enabled, the RoutingDecisionEngine returns
both model and cli_tool from the KG route action template, but
spawn_agent() only extracted the model and discarded the CLI tool.

Also updates taxonomy model names from version-pinned to aliases
(haiku/sonnet/opus) so Claude CLI resolves to latest automatically.

Refs #579
@AlexMikhalev AlexMikhalev merged commit 8e454cb into main Apr 17, 2026
11 of 14 checks passed
@AlexMikhalev AlexMikhalev deleted the fix/routing-cli-override branch April 17, 2026 11:18
@github-actions
Copy link
Copy Markdown
Contributor

Documentation Preview

Your documentation changes have been deployed to:
https://4126892e.terraphim-docs.pages.dev

This preview will be available until the PR is closed.

AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
…ine (#819)

When use_routing_engine is enabled, the RoutingDecisionEngine returns
both model and cli_tool from the KG route action template, but
spawn_agent() only extracted the model and discarded the CLI tool.

Also updates taxonomy model names from version-pinned to aliases
(haiku/sonnet/opus) so Claude CLI resolves to latest automatically.

Refs #579
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