The idea: choose a route to a capability

Model routing chooses which model thinks about a step. Tool routing chooses how to reach a capability—for example directly over MCP, through a proxy, or through a utility. Adaptive routing can prefer a route and fall back when it is unavailable.

mini-a useutils=true adaptiverouting=true routerdeny=shell \
  goal="Use available file utilities to inspect README.md."

Run from a folder containing that file. The shell route is excluded; routing does not bypass file permissions or make an unavailable server work. If the task lacks a viable route, configure the appropriate utility or MCP connection before changing route preferences.

Use the defaults until you have observed a routing problem. Inspect tool logs to confirm the actual route taken, and see tool configuration for the allowed route names and precedence.

Adaptive Tool Routing

mini-a includes an optional rule-based routing layer that selects how each action is dispatched — direct local tool, MCP direct call, MCP proxy, shell execution, utility wrapper, or delegated subtask.

mini-a adaptiverouting=true goal="Analyze logs and report"

When adaptive routing is on, each tool action goes through a lightweight router that scores candidate routes using intent hints:

  • read vs. write intent
  • payload size
  • latency sensitivity
  • determinism preference
  • risk level
  • structured output preference
  • historical route success/failure

The router returns a selected route, rationale, and fallback chain. Failures are retried down the fallback chain (duplicate routes are skipped to prevent thrashing). Route decisions are appended to debug/audit output as [ROUTE ...] records when debug=true.

Controlling which routes are used

# Prefer MCP direct calls, fall back to proxy
mini-a adaptiverouting=true \
  routerorder="mcp_direct_call,mcp_proxy_path,utility_wrapper"

# Restrict to non-shell routes only
mini-a adaptiverouting=true routerdeny="shell_execution"

# Only allow shell and utility routes
mini-a adaptiverouting=true routerallow="shell_execution,utility_wrapper"

When adaptiverouting=false (default), mini-a preserves legacy tool dispatch behavior.