Skip to content

[ENHANCEMENT] Add Anthropic Advisor Tool support for Claude executor models #12094

@TDFSE

Description

@TDFSE

Problem (one or two sentences)

Roo-Code users cannot use Anthropic's Advisor Tool beta that allows cheaper executor models to consult a stronger advisor model mid-generation within a single API request.

Context (who is affected and when)

Roo-Code users running claude-haiku-4-5-20251001, claude-sonnet-4-6, or claude-opus-4-6. Currently no way to enable the Advisor Tool in Roo-Code settings.

Desired behavior (conceptual, not technical)

A new "Advisor Tool (Beta)" toggle in the Anthropic provider's Advanced settings section. When enabled, Roo-Code adds the required beta header and injects the advisor tool definition into the API request. Users can optionally set a max_uses cap to control advisor call frequency and cost.

Constraints / preferences (optional)

Only supported on the Anthropic direct API (not OpenRouter or other proxies). The only valid executor→advisor pair is any supported Claude 4.x model → claude-opus-4-6. This is a beta feature and the API shape may change before GA.

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

Advisor Tool toggle appears in Advanced settings for supported models only. When enabled, the anthropic-beta: advisor-tool-2026-03-01 header is sent and the advisor tool definition is injected into the tools array with correct type, name, model, and optional max_uses. Settings persist across restarts with no regressions on existing Anthropic requests when disabled.

Proposed approach (optional)

Follow the existing anthropicBeta1MContext checkbox pattern: add new fields to anthropicSchema in packages/types/src/provider-settings.ts, add UI controls to webview-ui/src/components/settings/providers/Anthropic.tsx, and inject the beta header and tool definition in src/api/providers/anthropic

Trade-offs / risks (optional)

Beta feature — API shape may change before GA. Advisor tokens are billed at Opus rates; without a max_uses cap, costs could increase unexpectedly for users unfamiliar with the billing model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions