Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(providers): default anthropic and claude_cli to claude-haiku-5-5 (#3093)
Sama839260b984e
diff --git a/docs/agent/CLAUDE_CODE_PROVIDER.md b/docs/agent/CLAUDE_CODE_PROVIDER.mdindex 41df2bb80..76a3712d2 100644--- a/docs/agent/CLAUDE_CODE_PROVIDER.md+++ b/docs/agent/CLAUDE_CODE_PROVIDER.md@@ -27,7 +27,7 @@ To persist the choice, put it in `.repowise/config.yaml`:```yamlprovider: claude_cli-model: claude_cli/claude-haiku-4-5+model: claude_cli/claude-haiku-5-5```### Prerequisites@@ -83,7 +83,7 @@ booked into the `llm_costs` ledger (at $0.00) so `repowise costs` shows the run.### Default model-`claude_cli/claude-haiku-4-5` is the default, matching the `anthropic` provider,+`claude_cli/claude-haiku-5-5` is the default, matching the `anthropic` provider,whose docstring calls haiku "ample for doc pages". To choose another:```bashdiff --git a/docs/reference/CONFIG.md b/docs/reference/CONFIG.mdindex f17393872..934e87f33 100644--- a/docs/reference/CONFIG.md+++ b/docs/reference/CONFIG.md@@ -700,12 +700,12 @@ export ANTHROPIC_API_KEY="sk-ant-..."| Model | Notes ||-------|-------|-| `claude-sonnet-4-6` | Default, best balance of quality and cost |+| `claude-sonnet-4-6` | Best balance of quality and cost || `claude-opus-4-6` | Highest quality, higher cost |-| `claude-haiku-4-5-20251001` | Fastest, lowest cost |+| `claude-haiku-5-5` | Default, fastest, lowest cost |```bash-repowise init --provider anthropic --model claude-haiku-4-5-20251001+repowise init --provider anthropic --model claude-haiku-5-5```### OpenAI (GPT)diff --git a/packages/cli/src/repowise/cli/ui/provider_selection.py b/packages/cli/src/repowise/cli/ui/provider_selection.pyindex d0bed1769..110070746 100644--- a/packages/cli/src/repowise/cli/ui/provider_selection.py+++ b/packages/cli/src/repowise/cli/ui/provider_selection.py@@ -37,12 +37,12 @@ from repowise.core.reasoning import ReasoningMode, normalize_reasoning_PROVIDER_DEFAULTS: dict[str, str] = {"gemini": "gemini-3.5-flash-lite","openai": "gpt-5.6-luna",- "anthropic": "claude-haiku-4-5",+ "anthropic": "claude-haiku-5-5","deepseek": "deepseek-v4-flash","kimi": "kimi-for-coding","edenai": "mistral/mistral-small-latest","codex_cli": "codex_cli/default",- "claude_cli": "claude_cli/claude-haiku-4-5",+ "claude_cli": "claude_cli/claude-haiku-5-5","opencode": "opencode/default","ollama": "qwen3.5:4b","openrouter": "google/gemini-3.5-flash-lite",diff --git a/packages/core/src/repowise/core/cost_estimator/pricing.py b/packages/core/src/repowise/core/cost_estimator/pricing.pyindex c2af21950..476828f1c 100644--- a/packages/core/src/repowise/core/cost_estimator/pricing.py+++ b/packages/core/src/repowise/core/cost_estimator/pricing.py@@ -38,6 +38,7 @@ _COST_TABLE_EXACT: dict[str, tuple[float, float]] = {"claude-opus-4-6": (0.005, 0.025), # $5 / $25 per MTok"claude-sonnet-4-6": (0.003, 0.015), # $3 / $15 per MTok"claude-haiku-4-5": (0.001, 0.005), # $1 / $5 per MTok+ "claude-haiku-5-5": (0.0001, 0.0005), # $0.10 / $0.50 per MTok, prompts <= 100K# DeepSeek V4 — https://api-docs.deepseek.com/quick_start/pricing"deepseek-v4-flash": (0.00027, 0.00110), # $0.27 / $1.10 per MTok"deepseek-v4-pro": (0.00055, 0.00219), # $0.55 / $2.19 per MTokdiff --git a/packages/core/src/repowise/core/generation/cost_tracker.py b/packages/core/src/repowise/core/generation/cost_tracker.pyindex 27f9ee0bb..5d1b7f116 100644--- a/packages/core/src/repowise/core/generation/cost_tracker.py+++ b/packages/core/src/repowise/core/generation/cost_tracker.py@@ -32,6 +32,8 @@ _PRICING: dict[str, dict[str, float]] = {"claude-sonnet-5": {"input": 3.0, "output": 15.0},"claude-sonnet-4-6": {"input": 3.0, "output": 15.0},"claude-haiku-4-5": {"input": 1.0, "output": 5.0},+ # Prompts over 100K tokens bill at $0.50/$2.50; doc-page prompts stay under.+ "claude-haiku-5-5": {"input": 0.1, "output": 0.5},"claude-3-5-sonnet-20241022": {"input": 3.0, "output": 15.0},# OpenAI — GPT-5 family (the models Codex sessions report). Rates per 1M# input/output; verify against current OpenAI pricing before relying ondiff --git a/packages/core/src/repowise/core/providers/llm/anthropic.py b/packages/core/src/repowise/core/providers/llm/anthropic.pyindex de4378aca..4ccf10928 100644--- a/packages/core/src/repowise/core/providers/llm/anthropic.py+++ b/packages/core/src/repowise/core/providers/llm/anthropic.py@@ -5,7 +5,7 @@ prompts — Anthropic's API caches prompts > 1024 tokens and charges ~10% ofthe normal input price on cache hits.Recommended models (as of 2026):- - claude-haiku-4-5 — fastest and cheapest (default; ample for doc pages)+ - claude-haiku-5-5 — fastest and cheapest (default; ample for doc pages)- claude-sonnet-4-6 — best quality/cost ratio- claude-opus-4-6 — highest quality, most expensive"""@@ -109,7 +109,7 @@ class AnthropicProvider(SdkClientOwner, BaseProvider):Args:api_key: Anthropic API key. Falls back to ANTHROPIC_API_KEY env var.- model: Model identifier. Defaults to claude-haiku-4-5.+ model: Model identifier. Defaults to claude-haiku-5-5.base_url: Optional custom API base URL (for proxies/self-hosted endpoints).rate_limiter: Optional pre-configured RateLimiter. If None, no rate limitingis applied (useful when the caller manages concurrency via semaphore).@@ -118,7 +118,7 @@ class AnthropicProvider(SdkClientOwner, BaseProvider):def __init__(self,api_key: str | None = None,- model: str = "claude-haiku-4-5",+ model: str = "claude-haiku-5-5",base_url: str | None = None,rate_limiter: RateLimiter | None = None,cost_tracker: CostTracker | None = None,@@ -286,6 +286,9 @@ class AnthropicProvider(SdkClientOwner, BaseProvider):async with self._client.messages.stream(**kwargs) as stream:async for event in _iter_anthropic_stream_events(stream):yield event+ blocks = _thinking_turn_blocks(await stream.get_final_message())+ if blocks:+ yield ChatStreamEvent(type="assistant_content", content_blocks=blocks)def _translate_anthropic_errors() -> AbstractContextManager[None]:@@ -296,6 +299,19 @@ def _translate_anthropic_errors() -> AbstractContextManager[None]:)+def _thinking_turn_blocks(message: Any) -> list[dict[str, Any]] | None:+ """The turn's content blocks as params, when it holds thinking to replay.++ Models that think by default (Haiku 5.5 and later) lose their reasoning+ mid tool loop unless the tool-calling turn is sent back unmodified, so+ the whole turn is kept rather than rebuilt from its text and tool calls.+ """+ content = message.content+ if not any(block.type in ("thinking", "redacted_thinking") for block in content):+ return None+ return [block.to_dict(exclude_none=True) for block in content]++def _to_anthropic_tool(tool: dict[str, Any]) -> dict[str, Any]:"""Convert one OpenAI-format tool definition to Anthropic's shape."""fn = tool.get("function", tool)@@ -432,6 +448,8 @@ def _to_anthropic_messages(messages: list[dict[str, Any]]) -> list[dict[str, Any],})+ elif role == "assistant" and msg.get("provider_content"):+ result.append({"role": "assistant", "content": msg["provider_content"]})elif role == "assistant":content_blocks: list[dict[str, Any]] = []# Text contentdiff --git a/packages/core/src/repowise/core/providers/llm/base.py b/packages/core/src/repowise/core/providers/llm/base.pyindex 7864378f7..2bb141455 100644--- a/packages/core/src/repowise/core/providers/llm/base.py+++ b/packages/core/src/repowise/core/providers/llm/base.py@@ -49,6 +49,7 @@ _FIXED_TEMPERATURE_PREFIXES = ("claude-opus-4-8","claude-opus-5","claude-sonnet-5",+ "claude-haiku-5","claude-fable-5","claude-mythos-5",)@@ -639,15 +640,20 @@ class ChatStreamEvent:- ``tool_result``: tool execution result (from internal loops) in ``tool_call`` + ``tool_result_data``- ``usage``: token counts in ``input_tokens`` / ``output_tokens``- ``stop``: end of generation (may follow tool_start if stop_reason is tool_use)+ - ``assistant_content``: the turn's provider-native blocks in ``content_blocks``,+ after ``stop``. The caller stores them on the assistant message as+ ``provider_content`` so the same provider can replay the turn verbatim+ (Anthropic thinking blocks must accompany their tool results)."""- type: str # text_delta | tool_start | tool_result | usage | stop+ type: str # text_delta | tool_start | tool_result | usage | stop | assistant_contenttext: str | None = Nonetool_call: ChatToolCall | None = Nonetool_result_data: dict[str, Any] | None = None # populated for tool_result eventsstop_reason: str | None = None # end_turn | tool_use | max_tokensinput_tokens: int = 0output_tokens: int = 0+ content_blocks: list[dict[str, Any]] | None = None # populated for assistant_contentToolExecutor = (diff --git a/packages/core/src/repowise/core/providers/llm/claude_cli.py b/packages/core/src/repowise/core/providers/llm/claude_cli.pyindex ff8c996c4..d113d194a 100644--- a/packages/core/src/repowise/core/providers/llm/claude_cli.py+++ b/packages/core/src/repowise/core/providers/llm/claude_cli.py@@ -53,7 +53,7 @@ log = structlog.get_logger(__name__)# Matches the anthropic provider's default, whose docstring calls haiku "ample# for doc pages". Overridable with --model / REPOWISE_MODEL.-_DEFAULT_MODEL = "claude-haiku-4-5"+_DEFAULT_MODEL = "claude-haiku-5-5"_LABEL_PREFIX = "claude_cli/"_MODEL_NAME_RE = re.compile(r"^[a-zA-Z0-9][a-zA-Z0-9._/\-]*$")@@ -223,9 +223,9 @@ class ClaudeCliProvider(BaseProvider):"""LLM provider backed by ``claude -p`` (Claude Code headless mode).Args:- model: Claude model slug (e.g. ``claude-haiku-4-5``,+ model: Claude model slug (e.g. ``claude-haiku-5-5``,``claude-sonnet-4-6``). Persisted labels like- ``claude_cli/claude-haiku-4-5`` are accepted and normalized.+ ``claude_cli/claude-haiku-5-5`` are accepted and normalized.rate_limiter: Accepted for interface consistency; the provider alsobounds its own subprocess fan-out."""@@ -269,8 +269,8 @@ class ClaudeCliProvider(BaseProvider):# curated list rather than discovery.return (ProviderModelOption(- model=_model_label("claude-haiku-4-5"),- label="claude-haiku-4-5",+ model=_model_label("claude-haiku-5-5"),+ label="claude-haiku-5-5",reasoning_modes=_SUPPORTED_REASONING_MODES,recommended=True,source="fallback",diff --git a/packages/server/src/repowise/server/chat_prompt.py b/packages/server/src/repowise/server/chat_prompt.pyindex 905ef9f55..dc01d7186 100644--- a/packages/server/src/repowise/server/chat_prompt.py+++ b/packages/server/src/repowise/server/chat_prompt.py@@ -132,9 +132,20 @@ def _with_navigation_context(return contextualized-def assistant_tool_call_message(text: str, tool_calls: list[dict[str, Any]]) -> dict[str, Any]:- """The assistant turn that requested *tool_calls*, with its text when any."""+def assistant_tool_call_message(+ text: str,+ tool_calls: list[dict[str, Any]],+ provider_content: list[dict[str, Any]] | None = None,+) -> dict[str, Any]:+ """The assistant turn that requested *tool_calls*, with its text when any.++ *provider_content* is the provider's own record of the turn, kept so it+ can replay it verbatim on the next call of the same request. Stored+ history never carries it, which the provider accepts.+ """message: dict[str, Any] = {"role": "assistant"}+ if provider_content:+ message["provider_content"] = provider_contentif text:message["content"] = textmessage["tool_calls"] = [diff --git a/packages/server/src/repowise/server/provider_config.py b/packages/server/src/repowise/server/provider_config.pyindex 592173b8b..3f8ee3c51 100644--- a/packages/server/src/repowise/server/provider_config.py+++ b/packages/server/src/repowise/server/provider_config.py@@ -51,8 +51,8 @@ PROVIDER_CATALOG: list[dict[str, Any]] = [{"id": "anthropic","name": "Anthropic",- "default_model": "claude-haiku-4-5",- "models": ["claude-haiku-4-5", "claude-sonnet-4-6", "claude-opus-4-6"],+ "default_model": "claude-haiku-5-5",+ "models": ["claude-haiku-5-5", "claude-sonnet-4-6", "claude-opus-4-6"],"env_keys": ["ANTHROPIC_API_KEY"],"requires_key": True,},@@ -133,9 +133,9 @@ PROVIDER_CATALOG: list[dict[str, Any]] = [{"id": "claude_cli","name": "Claude Code (Local CLI)",- "default_model": "claude_cli/claude-haiku-4-5",+ "default_model": "claude_cli/claude-haiku-5-5","models": [- "claude_cli/claude-haiku-4-5",+ "claude_cli/claude-haiku-5-5","claude_cli/claude-sonnet-4-6","claude_cli/claude-opus-4-6",],diff --git a/packages/server/src/repowise/server/routers/chat.py b/packages/server/src/repowise/server/routers/chat.pyindex beaee3947..932389343 100644--- a/packages/server/src/repowise/server/routers/chat.py+++ b/packages/server/src/repowise/server/routers/chat.py@@ -198,6 +198,7 @@ class _AgentTurn:self.provider = providerself.llm_messages = llm_messagesself.text_parts: list[str] = []+ self.provider_content: list[dict[str, Any]] | None = Noneself.tool_calls: list[dict[str, Any]] = []self.aborted = Falseself.truncated = False@@ -293,6 +294,9 @@ class _AgentTurn:if event.type == "text_delta" and event.text:self.text_parts.append(event.text)return _sse_event("data", {"type": "text_delta", "text": event.text})+ if event.type == "assistant_content":+ self.provider_content = event.content_blocks+ return Nonetc = event.tool_callif not tc:return None@@ -315,8 +319,13 @@ class _AgentTurn:async def _run_pending(self, pending: list[dict[str, Any]]) -> AsyncIterator[str]:"""Run the tool calls the provider left to us and feed the results back."""- self.llm_messages.append(assistant_tool_call_message("".join(self.text_parts), pending))+ self.llm_messages.append(+ assistant_tool_call_message(+ "".join(self.text_parts), pending, provider_content=self.provider_content+ )+ )self.text_parts.clear()+ self.provider_content = Nonefor tc in pending:result = await self.execute(tc["name"], tc["arguments"])yield self._tool_result(tc["id"], tc["name"], tc["arguments"], result)diff --git a/packages/ui/src/dashboard/quick-actions.tsx b/packages/ui/src/dashboard/quick-actions.tsxindex 4fa958d64..495b0a843 100644--- a/packages/ui/src/dashboard/quick-actions.tsx+++ b/packages/ui/src/dashboard/quick-actions.tsx@@ -29,6 +29,7 @@ const COST_TABLE_EXACT: Record<string, [number, number]> = {"claude-opus-4-6": [0.005, 0.025],"claude-sonnet-4-6": [0.003, 0.015],"claude-haiku-4-5": [0.001, 0.005],+ "claude-haiku-5-5": [0.0001, 0.0005],"deepseek-v4-flash": [0.00014, 0.00028],"deepseek-v4-pro": [0.00174, 0.00348],};diff --git a/packages/web/src/components/settings/provider-section.tsx b/packages/web/src/components/settings/provider-section.tsxindex dea994101..4b0b041da 100644--- a/packages/web/src/components/settings/provider-section.tsx+++ b/packages/web/src/components/settings/provider-section.tsx@@ -38,11 +38,11 @@ const FLAG_ONLY_PROVIDERS = ["mock"] as const;const MODEL_PLACEHOLDERS: Record<string, string> = {gemini: "gemini-3.5-flash-lite",openai: "gpt-5.6-luna",- anthropic: "claude-haiku-4-5",+ anthropic: "claude-haiku-5-5",deepseek: "deepseek-v4-flash",kimi: "kimi-for-coding",edenai: "mistral/mistral-small-latest",- claude_cli: "claude_cli/claude-haiku-4-5",+ claude_cli: "claude_cli/claude-haiku-5-5",opencode: "opencode/default",ollama: "qwen3.5:4b",litellm: "groq/llama-3.1-70b-versatile",diff --git a/tests/unit/generation/test_cost_pricing.py b/tests/unit/generation/test_cost_pricing.pyindex 1f8469330..77d216270 100644--- a/tests/unit/generation/test_cost_pricing.py+++ b/tests/unit/generation/test_cost_pricing.py@@ -69,6 +69,10 @@ def test_family_prefix_covers_sonnet_and_haiku_variants() -> None:assert get_model_pricing("claude-haiku-5") == {"input": 1.0, "output": 5.0}+def test_haiku_5_5_is_priced_below_the_haiku_family_rate() -> None:+ assert get_model_pricing("claude-haiku-5-5") == {"input": 0.1, "output": 0.5}++def test_gpt5_variants_resolve_by_tier_qualifier() -> None:assert get_model_pricing("gpt-5.5-nano") == {"input": 0.20, "output": 1.25}assert get_model_pricing("gpt-5.5-mini") == {"input": 0.75, "output": 4.50}diff --git a/tests/unit/server/test_chat_router.py b/tests/unit/server/test_chat_router.pyindex b55468a9f..a30ad14e1 100644--- a/tests/unit/server/test_chat_router.py+++ b/tests/unit/server/test_chat_router.py@@ -244,6 +244,34 @@ async def test_an_unrelated_question_still_calls_tools_normally():execute.assert_awaited_once()+async def test_provider_content_is_replayed_on_the_tool_call_turn():+ """Thinking blocks must reach the next call alongside the tool results."""+ app = await _make_app()+ blocks = [+ {"type": "thinking", "thinking": "", "signature": "sig"},+ {"type": "tool_use", "id": "t1", "name": "get_risk", "input": {"targets": ["src/b.py"]}},+ ]+ provider = _ScriptedProvider(+ [+ [+ _tool("t1", "get_risk", {"targets": ["src/b.py"]}),+ ChatStreamEvent(type="assistant_content", content_blocks=blocks),+ ],+ [_text("Risky.")],+ ]+ )+ execute = AsyncMock(return_value={"targets": {}})++ with patch(_PROVIDER, return_value=provider), patch(_EXECUTE, execute):+ await _post(app, {"message": "Is b.py risky?"})++ assistant = provider.calls[1]["messages"][-2]+ assert assistant["role"] == "assistant"+ assert assistant["tool_calls"][0]["id"] == "t1"+ assert assistant["provider_content"] == blocks++# ---------------------------------------------------------------------------# Loop exhaustion# ---------------------------------------------------------------------------diff --git a/tests/unit/test_providers/test_anthropic_provider.py b/tests/unit/test_providers/test_anthropic_provider.pyindex abfe23ff8..eb0a5940c 100644--- a/tests/unit/test_providers/test_anthropic_provider.py+++ b/tests/unit/test_providers/test_anthropic_provider.py@@ -11,9 +11,9 @@ import pytestpytest.importorskip("anthropic", reason="anthropic SDK not installed")-from anthropic.types import TextBlock, ThinkingBlock+from anthropic.types import TextBlock, ThinkingBlock, ToolUseBlock-from repowise.core.providers.llm.anthropic import AnthropicProvider+from repowise.core.providers.llm.anthropic import AnthropicProvider, _to_anthropic_messagesfrom repowise.core.providers.llm.base import GeneratedResponse, ProviderError, RateLimitError# ---------------------------------------------------------------------------@@ -28,7 +28,7 @@ def test_provider_name():def test_default_model():p = AnthropicProvider(api_key="sk-ant-test")- assert p.model_name == "claude-haiku-4-5"+ assert p.model_name == "claude-haiku-5-5"def test_api_key_from_env(monkeypatch):@@ -65,7 +65,7 @@ def test_available_model_options_uses_models_endpoint(monkeypatch):"id": "claude-sonnet-4-6","display_name": "Claude Sonnet 4.6",},- {"id": "claude-haiku-4-5"},+ {"id": "claude-haiku-5-5"},]}@@ -89,7 +89,7 @@ def test_available_model_options_uses_models_endpoint(monkeypatch):assert sonnet.reasoning_modes == ("auto",)assert sonnet.recommended is False# The default model is the one flagged as recommended.- haiku = next(option for option in options if option.model == "claude-haiku-4-5")+ haiku = next(option for option in options if option.model == "claude-haiku-5-5")assert haiku.recommended is True@@ -186,6 +186,19 @@ async def test_generate_sends_correct_params():assert kw["messages"] == [{"role": "user", "content": "user msg"}]+async def test_generate_omits_temperature_for_haiku_5_5():+ """Haiku 5.5 returns a 400 for any non-default sampling parameter."""+ provider = AnthropicProvider(api_key="sk-ant-test", model="claude-haiku-5-5")+ create = AsyncMock(return_value=_make_mock_response())++ with patch("anthropic.AsyncAnthropic") as mock_client:+ mock_client.return_value.messages.create = create+ provider._client = mock_client.return_value+ await provider.generate("system msg", "user msg", temperature=0.1)++ assert "temperature" not in create.call_args.kwargs++async def test_generate_skips_thinking_block_before_text():provider = AnthropicProvider(api_key="sk-ant-test")mock_response = _make_mock_response()@@ -241,3 +254,63 @@ async def test_api_status_error():provider._client = mock_client.return_valuewith pytest.raises(ProviderError):await provider.generate("sys", "user")+++# ---------------------------------------------------------------------------+# Chat: thinking blocks survive the tool loop+# ---------------------------------------------------------------------------+++def _finished_stream(content: list) -> MagicMock:+ """A stream with no events left, only the accumulated final message."""+ stream = MagicMock()+ stream.__aenter__.return_value = stream+ stream.__aiter__.return_value = []+ stream.get_final_message = AsyncMock(return_value=MagicMock(content=content))+ return stream+++async def _stream_events(content: list) -> list:+ provider = AnthropicProvider(api_key="sk-ant-test", model="claude-haiku-5-5")+ provider._client = MagicMock()+ provider._client.messages.stream = MagicMock(return_value=_finished_stream(content))+ return [e async for e in provider.stream_chat([], [], "sys")]+++async def test_stream_chat_emits_turn_content_when_it_thought():+ events = await _stream_events(+ [+ ThinkingBlock(type="thinking", thinking="", signature="sig"),+ ToolUseBlock(type="tool_use", id="t1", name="get_risk", input={"a": 1}),+ ]+ )++ assert [e.type for e in events] == ["assistant_content"]+ assert events[0].content_blocks == [+ {"type": "thinking", "thinking": "", "signature": "sig"},+ {"type": "tool_use", "id": "t1", "name": "get_risk", "input": {"a": 1}},+ ]+++async def test_stream_chat_emits_nothing_extra_without_thinking():+ events = await _stream_events([TextBlock(type="text", text="hi")])++ assert events == []+++def test_assistant_provider_content_is_replayed_verbatim():+ blocks = [+ {"type": "thinking", "thinking": "", "signature": "sig"},+ {"type": "text", "text": "Checking."},+ {"type": "tool_use", "id": "t1", "name": "get_risk", "input": {"a": 1}},+ ]+ message = {+ "role": "assistant",+ "content": "Checking.",+ "tool_calls": [+ {"id": "t1", "type": "function", "function": {"name": "get_risk", "arguments": "{}"}}+ ],+ "provider_content": blocks,+ }++ assert _to_anthropic_messages([message]) == [{"role": "assistant", "content": blocks}]diff --git a/tests/unit/test_providers/test_claude_cli_provider.py b/tests/unit/test_providers/test_claude_cli_provider.pyindex 25b2cb66b..b009a4fc3 100644--- a/tests/unit/test_providers/test_claude_cli_provider.py+++ b/tests/unit/test_providers/test_claude_cli_provider.py@@ -94,17 +94,17 @@ def claude_on_path(monkeypatch):def test_provider_name_and_default_model(claude_on_path):provider = ClaudeCliProvider()assert provider.provider_name == "claude_cli"- assert provider.model_name == "claude_cli/claude-haiku-4-5"+ assert provider.model_name == "claude_cli/claude-haiku-5-5"@pytest.mark.parametrize(("given", "expected"),[- (None, "claude-haiku-4-5"),+ (None, "claude-haiku-5-5"),("claude-sonnet-4-6", "claude-sonnet-4-6"),# A persisted label must round-trip rather than become "claude_cli/claude_cli/...".("claude_cli/claude-sonnet-4-6", "claude-sonnet-4-6"),- ("claude_cli/default", "claude-haiku-4-5"),+ ("claude_cli/default", "claude-haiku-5-5"),],)def test_model_normalization_round_trips(given, expected):@@ -144,7 +144,7 @@ def test_reasoning_modes_match_the_claude_cli_effort_flag(claude_on_path):def test_available_model_options_are_labelled(claude_on_path):options = ClaudeCliProvider().available_model_options()assert [o.model for o in options] == [- "claude_cli/claude-haiku-4-5",+ "claude_cli/claude-haiku-5-5","claude_cli/claude-sonnet-4-6","claude_cli/claude-opus-4-6",]@@ -589,4 +589,4 @@ def test_resolves_through_the_registry(claude_on_path):provider = get_provider("claude_cli")assert provider.provider_name == "claude_cli"- assert provider.model_name == "claude_cli/claude-haiku-4-5"+ assert provider.model_name == "claude_cli/claude-haiku-5-5"diff --git a/tests/unit/test_providers/test_cost_estimator.py b/tests/unit/test_providers/test_cost_estimator.pyindex 8a00c4af7..cfd309e7b 100644--- a/tests/unit/test_providers/test_cost_estimator.py+++ b/tests/unit/test_providers/test_cost_estimator.py@@ -30,6 +30,7 @@ from repowise.cli.cost_estimator.heuristics import heuristic_tokens("claude-opus-4-6", 0.005, 0.025),("claude-sonnet-4-6", 0.003, 0.015),("claude-haiku-4-5", 0.001, 0.005),+ ("claude-haiku-5-5", 0.0001, 0.0005),# Free/local models("mock", 0.0, 0.0),("llama3", 0.0, 0.0),diff --git a/website/claude-cli.md b/website/claude-cli.mdindex 6a35352cc..753756da6 100644--- a/website/claude-cli.md+++ b/website/claude-cli.md@@ -42,7 +42,7 @@ Or persist it in `.repowise/config.yaml`:```yamlprovider: claude_cli-model: claude_cli/claude-haiku-4-5+model: claude_cli/claude-haiku-5-5```## Two directions, one name@@ -55,7 +55,7 @@ does not enable the other.## Choosing a model-`claude_cli/claude-haiku-4-5` is the default, matching the `anthropic` provider.+`claude_cli/claude-haiku-5-5` is the default, matching the `anthropic` provider.```bashrepowise init --provider claude_cli --model claude_cli/claude-sonnet-4-6@@ -69,7 +69,7 @@ repowise init --provider claude_cli --model claude-opus-4-6| Model | Notes ||---|---|-| `claude-haiku-4-5` | Fastest, and ample for doc pages. Default. |+| `claude-haiku-5-5` | Fastest, and ample for doc pages. Default. || `claude-sonnet-4-6` | Better prose, slower. || `claude-opus-4-6` | Highest quality, heaviest on subscription limits. |diff --git a/website/configuration.md b/website/configuration.mdindex eeef2bbdd..ce353a994 100644--- a/website/configuration.md+++ b/website/configuration.md@@ -93,12 +93,12 @@ export ANTHROPIC_API_KEY="sk-ant-..."| Model | Notes ||-------|-------|-| `claude-sonnet-4-6` | Default — best balance of quality and cost |+| `claude-sonnet-4-6` | Best balance of quality and cost || `claude-opus-4-6` | Highest quality, higher cost |-| `claude-haiku-4-5-20251001` | Fastest, lowest cost |+| `claude-haiku-5-5` | Default, fastest, lowest cost |```bash-repowise init --provider anthropic --model claude-haiku-4-5-20251001+repowise init --provider anthropic --model claude-haiku-5-5```---