[BUG] /pr-comments command explicitly hardcodes the model to claude-3-5-haiku-20241022 - ignoring ANTHROPIC_SMALL_FAST_MODEL env var

Resolved 💬 3 comments Opened Jul 23, 2025 by ts-shu Closed Aug 12, 2025

Environment

  • Platform (select one):

all

  • Claude CLI version: 1.0.59 - looks to be since 1.0.57
  • Operating System: all
  • Terminal: all

Bug Description

/pr-comments hardcodes the model to claude-3-5-haiku-20241022 thus ignoring the ANTHROPIC_SMALL_FAST_MODEL override

Steps to Reproduce

  1. ANTHROPIC_SMALL_FAST_MODEL=claude-sonnet-4@20250514 claude
  2. /pr-comments #in repl
  3. doesn't use claude-sonnet-4@20250514 attempts to use claude-3-5-haiku-20241022, observable in logs

Expected Behavior

ANTHROPIC_SMALL_FAST_MODEL override is respected

Actual Behavior

ANTHROPIC_SMALL_FAST_MODEL override is not respected

Additional Context

in cli.js, one can see it's explicitly hardcoded to claude-3-5-haiku-20241022

ITB={type:"prompt",name:"pr-comments",description:"Get comments from a GitHub pull request",progressMessage:"fetching PR comments",model:"claude-3-5-haiku-20241022",isEnabled:()=>!0,isHidden:!1,userFacingName(){return"pr-comments"},async getPromptForCommand(A){return[{type:"text",text:`You are an AI assistant integrated into a git-based version control system. Your task is to fetch and display comments from a GitHub pull request.

Haiku may not be available in certain environments / ignores user preference

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗