Skip to content

feat(ai): send the task reasoning effort to a Claude gateway group #7974

Description

@dan-petty

Problem

The owner decided on 2026-11-30 that each job of the Service that uses Claude Sonnet runs at the reasoning effort high. Nothing sets it.

  • The pydantic-ai bridge sends no reasoning effort to a gateway group, so ai.tasks.<task>.reasoning_effort has no effect on a Claude group.
  • get_tier_model builds a ladder tier of the implement job with the settings of no task.
  • The gateway then sends Anthropic no effort, and the model takes its own default. For Sonnet 5.5 the default is high, so the jobs run at it by the choice of the vendor and not of the config.

Change

  • The model of a Claude group sends the reasoning effort of its task.
  • A ladder tier takes the settings of the task implement.
  • k8s/devops/configmap.yaml sets reasoning_effort: high on the tasks stage, stage_review, fix_plan, fix_plan_review, implement and implement_split.

Done when

The request of a plan run and of an implement step on a Claude group holds reasoning_effort: high.

Alternatives check of 2026-11-30: in-use.
The repository already uses this tool.
Tool: pydantic-ai (https://github.com/pydantic/pydantic-ai), MIT, last activity 2026-12-01, maintained.
Reason: pydantic-ai already sends reasoning_effort from ModelSettings and accepts extra_body, so the bridge can pass the task effort. The project must still map the task config and give ladder tiers the implement settings.

Covers:

  • ModelSettings.reasoning_effort sends the effort in the request
  • extra_body merges provider-specific fields into the request body
  • ModelSettings apply per agent and per run

Lacks:

  • Reads no project task config for reasoning effort
  • Ladder tier builders get no task settings by default
  • No gateway-group routing or model-name selection

Activity

  1. added
    type/feature
    scope/ai
    source/agent
    status/new
    value/medium
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/medium
    priority/p2-medium
    on Nov 30, 2026
  4. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • pydantic-ai AnthropicModelSettings thinking budget reasoning effort, results: 5
    • pydantic-ai reasoning effort setting Anthropic Claude gateway, results: 5
    • litellm anthropic reasoning_effort thinking parameter passthrough, results: 5
    • pydantic-ai ModelSettings reasoning_effort, results: 5
    • ai.pydantic.dev api models anthropic, results: 5
    • pydantic-ai documentation Anthropic thinking model settings, results: 5
    • pydantic-ai AnthropicModelSettings thinking, results: 5
    • pydantic pydantic-ai github repository, results: 5
    • "reasoning_effort" pydantic_ai ModelSettings extra_body, results: 5
    • site:ai.pydantic.dev ModelSettings reasoning_effort, results: 5

    Sources:

  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Dec 1, 2026
  6. removed
    status/in-review
    on Dec 1, 2026
  7. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Live since 2026-12-01 02:48 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/aisource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions