Skip to content

Custom tiers have no effect on agent requests because agenticTiers isn't user-configurable #148

@jeegankones

Description

@jeegankones

Even after getting custom routing config to load (see #147), I noticed all agent requests still route to the default agenticTiers models (kimi-k2.5, grok) instead of my custom tier definitions.

The problem is twofold:

  1. mergeRoutingConfig deep-merges tiers, classifier, scoring, and overrides from user config, but doesn't touch agenticTiers, ecoTiers, or premiumTiers. So there's no way for a user to customize which models handle agentic requests.

  2. Every agent request includes tools, which means hasToolsInRequest is always true. This makes useAgenticTiers = true whenever config.agenticTiers != null, which it always is since it comes from the defaults. Setting overrides.agenticMode: false doesn't help because it only controls isExplicitAgentic, which is ORed with hasToolsInRequest. The name agenticMode suggests it's a toggle for the whole agentic tier system, but it isn't.

The practical effect: defining custom tiers in the config does nothing for the actual agent workload, since all agent requests go through agenticTiers which can't be overridden. The only workaround I found was setting "agenticTiers": null in the routing config to force everything through regular tiers.

Suggestion: mergeRoutingConfig should merge all tier sets the same way it merges tiers, and there should be a clear way to disable agentic tier selection entirely (or agenticMode: false should actually do that).

Version: @blockrun/clawrouter@0.12.139

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions