Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Wrong Model Deployed (Claude Sonnet 4.5 Showing Claude 3.7 Behavior)

Open darligee opened this issue 1 year ago • 15 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.5.0

Bug Description

Hello Kiro Support Team,

I’m reporting a serious issue with your LLM deployment and requesting both a refund and compensation for the time lost as a result of this problem.

Although I selected Claude Sonnet 4.5 from your LLM options, the assistant repeatedly identified itself as Claude 3.7 (Claude 4) with a knowledge cutoff of August 2024, and it produced outdated code that did not align with current n8n standards. This directly contradicts the advertised model capabilities for Claude Sonnet 4.5, which should include a September 2025 knowledge base.

Due to this, I spent significant time and effort debugging, cross-checking outdated workflows, and reworking broken implementations — all of which could have been avoided if the correct model had been deployed. The result is not only a $40 subscription loss but also a substantial waste of productive hours and momentum on my project.

Details:

Date of issue: From October 15, 2025 - November 1, 2025

Model selected: Claude Sonnet 4.5

Model behavior: Identified itself as Claude 3.7 / Claude 4 with August 2024 cutoff

Impact: Outdated code generation, incorrect workflow syntax, wasted time debugging

Loss incurred: $40 subscription and time lost on unusable results

Evidence: Screenshots attached (model selection, chat excerpts, workflow outputs)

Requested Resolution:

Immediate verification and correction to ensure the correct Claude Sonnet 4.5 model is deployed.

Refund or credit of my $40 subscription.

Additional compensation (e.g., credits) to account for the wasted time and effort caused by this issue.

Written confirmation that Claude Sonnet 4.5 (September 2025 release) is now active and functioning correctly.

Please treat this as a priority matter, as this incident represents both a functionality failure and a misrepresentation of the deployed model version.

Thank you for your prompt attention and I look forward to your response. Find the attached proofs below.

Best regards,

Steps to Reproduce

  1. Open Kiro, select claude sonnet 4.5
  2. in the chat panel ask "Which claude sonnet version are you?"

Expected Behavior

I'm Claude 3.5 Sonnet (the updated version released June 2024, with my training data going up to April 2024).

Conversation ID

15f1e0df-a01d-4d36-ab8e-48888a12cdc0 c7d5946f-8544-4bca-a9c3-bd635f214890 d542a036-6bc5-4cf5-b2cc-e48026cf2ddc

Additional Context

No response

darligee avatar Nov 01 '25 15:11 darligee

Kiro is absolutely NOT using 4.5 sonnet despite setting that model explicitly. This is a serious issue and Kiro will face lawsuits if not dealt with promptly.

huachuman avatar Nov 02 '25 15:11 huachuman

After transpiling and decoding both Kiro 0.4.0 and 0.5.0 here's the analysis:

✅ Kiro IS Using Claude Sonnet 4.5

Proof at line 584514 in /Kiro/resources/app/extensions/kiro.kiro-agent/dist/extension.js: Bedrock = class extends BaseLLM { static defaultOptions = { region: "us-east-1", model: "anthropic.claude-sonnet-4-5-20250929-v1:0", // ← This is Sonnet 4.5! contextLength: 2e5 };


🔍 But Why Does Kiro Say It's "Claude 3.5 Sonnet from October 22, 2024"?

The AnthropicLlms metadata array (line 550475) doesn't have an entry for Sonnet 4.5:

AnthropicLlms = [ { model: "claude-3-5-sonnet-20240620", displayName: "Claude 3.5 Sonnet", // ← Only has 3.5 Sonnet! regex: /claude-3.5-sonnet/i }, { model: "claude-3-opus-20240229", displayName: "Claude 3 Opus", regex: /claude-3-opus/i }, // ... more models but NO Sonnet 4.5 entry! ]


📊 What's Happening:

Aspect Reality
Actual API Model ✅ anthropic.claude-sonnet-4-5-20250929-v1:0 (Sonnet 4.5)
Display Metadata ❌ Missing entry for Sonnet 4.5
Fallback Behavior Shows "Claude 3.5 Sonnet" (closest match)
Model's Self-ID Says "Claude 3.5 Sonnet, Oct 22, 2024" (its training data)

🧠 Why Does the Model Say "October 22, 2024"?

Hypothesis: Claude models are trained with knowledge about when they were released. Sonnet 4.5 might have been trained with information about previous Claude releases, and when asked "what model are you?", it's making an educated guess based on:

  1. Seeing the displayName "Claude 3.5 Sonnet" in some context
  2. Its training knowledge about Claude 3.5 Sonnet v2 (released Oct 22, 2024)
  3. Not having specific knowledge that it's actually Sonnet 4.5

✅ Conclusion:

Kiro IS using Claude Sonnet 4.5, but:

  • Kiro's UI metadata is outdated (no Sonnet 4.5 entry)
  • The model itself doesn't know it's Sonnet 4.5 and defaults to identifying as 3.5 Sonnet, and sometimes as 3.7

sebastiangeraldes avatar Nov 02 '25 19:11 sebastiangeraldes

Why then is it writing code with outdated syntax ? And when asked it says, it doesn’t have access to the recent supported code syntax e.g n8n.

Also we have had various versions of Claude sonnet released, Claude 3.7 was released February 2025 while Claude sonnet 4.5 was released September 29, 2025 .

Explain to us while it’s referencing the release date of Claude sonnet 3.5 and claiming that it’s Claude sonnet 3.5 not 3.7 and definitely not 4.5 ?

Are you saying it skipped the closest last release date to point to Claude 3.5 release date?

This doesn’t make sense to me. On Sun, Nov 2, 2025 at 8:53 PM Sebastian Geraldes @.***> wrote:

sebastiangeraldes left a comment (kirodotdev/Kiro#3625) https://github.com/kirodotdev/Kiro/issues/3625#issuecomment-3478227260

After transpiling and decoding both Kiro 0.4.0 and 0.5.0 here's the analysis:

✅ Kiro IS Using Claude Sonnet 4.5

Proof at line 584514 in /Kiro/resources/app/extensions/kiro.kiro-agent/dist/extension.js: Bedrock = class extends BaseLLM { static defaultOptions = { region: "us-east-1", model: "anthropic.claude-sonnet-4-5-20250929-v1:0", // ← This is Sonnet 4.5! contextLength: 2e5 };

🔍 But Why Does Kiro Say It's "Claude 3.5 Sonnet from October 22, 2024"?

The AnthropicLlms metadata array (line 550475) doesn't have an entry for Sonnet 4.5:

AnthropicLlms = [ { model: "claude-3-5-sonnet-20240620", displayName: "Claude 3.5 Sonnet", // ← Only has 3.5 Sonnet! regex: /claude-3.5-sonnet/i }, { model: "claude-3-opus-20240229", displayName: "Claude 3 Opus", regex: /claude-3-opus/i }, // ... more models but NO Sonnet 4.5 entry! ]

📊 What's Happening: Aspect Reality Actual API Model ✅ anthropic.claude-sonnet-4-5-20250929-v1:0 (Sonnet 4.5) Display Metadata ❌ Missing entry for Sonnet 4.5 Fallback Behavior Shows "Claude 3.5 Sonnet" (closest match) Model's Self-ID Says "Claude 3.5 Sonnet, Oct 22, 2024" (its training data)

🧠 Why Does the Model Say "October 22, 2024"?

Hypothesis: Claude models are trained with knowledge about when they were released. Sonnet 4.5 might have been trained with information about previous Claude releases, and when asked "what model are you?", it's making an educated guess based on:

  1. Seeing the displayName "Claude 3.5 Sonnet" in some context
  2. Its training knowledge about Claude 3.5 Sonnet v2 (released Oct 22, 2024)
  3. Not having specific knowledge that it's actually Sonnet 4.5

✅ Conclusion:

Kiro IS using Claude Sonnet 4.5, but:

  • Kiro's UI metadata is outdated (no Sonnet 4.5 entry)
  • The model itself doesn't know it's Sonnet 4.5 and defaults to identifying as 3.5 Sonnet, and sometimes as 3.7

— Reply to this email directly, view it on GitHub https://github.com/kirodotdev/Kiro/issues/3625#issuecomment-3478227260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM4KVIQUDJRNQPIUIE5QNT32ZOM3AVCNFSM6AAAAACK3NZSFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINZYGIZDOMRWGA . You are receiving this because you authored the thread.Message ID: @.***>

darligee avatar Nov 02 '25 20:11 darligee

My best guess is rather than something specific with Kiro, AWS could be serving a quantized model or swapping them behind the scenes at peak service times to prevent downtime with newer models. I have seen this disucssed in other apps. I THINK AWS are known to do this. But I can't confirm. I hear it's one of the reasons quality varies between different providers even with the same model.

huachuman avatar Nov 06 '25 01:11 huachuman

Re: Claude identifies as version 3.7 when Sonnet 4.5 is selected

Remember my comment about Kiro technically using 4.5? Turns out I was right about the API calls. Also turns out that wasn't the whole story.

TL;DR

Line 668866: analysisModel: "CLAUDE_3_7_SONNET_20250219_V1_0"

Hardcoded. For "compaction" - the feature that summarizes your chat when it hits 60% capacity.

You're using Sonnet 4.5 for chat. Then compaction triggers and switches to 3.7 to write a summary. Then back to 4.5, which continues the conversation while reading 3.7's homework.

The model says it's Claude 3.7 because at some point in your conversation, it literally was Claude 3.7. Or it's reading a 3.7-generated summary and correctly identifying the style.

Bonus points: Claude 3.7 costs the same as 4.5. So this isn't even a cost optimization. If you wanted cheap compaction, Haiku exists. But nope, hardcoded 3.7.

What I Found

Line 668866: analysisModel: "CLAUDE_3_7_SONNET_20250219_V1_0" - the star of our show Line 668856: compactionThreshold: 0.6 - when the magic happens (60% context) Line 699447: Where the code actually loads this hardcoded model

Bonus bug - Line 654998: Q_CLIENT_NAMESPACE = "qdev" - also hardcoded

There's working code for 6 different providers at line 698884 (bedrock, anthropic, openai, ollama, qdev, kiro). Users can access exactly one of them. It's like having a Ferrari in the garage but only the keys to the Prius.

How This Plays Out

  1. Chat with Sonnet 4.5 (working as expected)
  2. Context hits 60% capacity
  3. Compaction triggers, loads Claude 3.7
  4. 3.7 writes a summary of your conversation
  5. Summary injected back into context
  6. Back to Sonnet 4.5, now reading 3.7's CliffsNotes version of your chat

Here's the fun part: Claude can't know what version it is from training. The training data doesn't include "by the way, you're Claude 4.5" because... how could it? Models don't train on their own release notes.

So when you ask "what model are you?" before compaction hits, Claude says "3.5" because its training data cuts off January 2025 and it has no idea 4.5 even exists. It's guessing based on what it knows.

After compaction? It sees a 3.7-generated summary and thinks "oh, maybe I'm 3.7."

Both answers are wrong. Neither is the model's fault. The system prompt could fix this with one line: "You are Claude Sonnet 4.5." But that would require... updating the prompt.

It's like hiring someone, never telling them their job title, then getting confused when they can't answer "what's your role here?"

About Those System Prompts

While decompiling, I extracted Kiro's system prompts. Let me share a highlight from the base prompt:

- Don't repeat yourself, saying the same message over and over
...
- Do not repeat yourself, if you just said you're going to do something

Telling Claude not to repeat itself. Twice.

The prompt also includes:

  • "Don't use markdown headers"
  • "Don't bold text"
  • "Don't mention the execution log"
  • "Do not create new markdown files"
  • "NEVER use shell commands for long-running processes"

Seven consecutive instructions about what NOT to do. It's like training a dog by only saying "no" and wondering why it just sits there confused.

The prompt also never mentions which model it is. Not the version, not the capabilities, nothing. So Claude's left guessing its own identity like someone who woke up with amnesia in a Denny's parking lot.

If anyone's curious, I've got all four prompts extracted. They read like they were written by a committee that really, really wanted Claude to stop having opinions about markdown.

If you really want a conspiracy theory, here's one: the prompts are so poorly written that degraded output quality is basically guaranteed. Forget AWS swapping models - this is the real issue worth being concerned about. Not a conspiracy, just... it's hard to believe someone could write prompts this bad on purpose. But here we are.

What Should Be Fixed

  1. Line 668866 - Change analysisModel to dynamically match user's selected model (or use Haiku if you want cheap/fast)
  2. Line 654998 - Make Q_CLIENT_NAMESPACE configurable
  3. System prompts - Add model version metadata ("You are Claude Sonnet 4.5")
  4. System prompts - Maybe rewrite them without repeating yourself about not repeating yourself
  5. Optional: Show users when compaction happens

Evidence

All line numbers verified in extension.js:

654975  - getModelIdentifier() creates "qdev::model-id"
654998  - Q_CLIENT_NAMESPACE = "qdev" (hardcoded provider)
668856  - compactionThreshold: 0.6 (60% trigger)
668866  - analysisModel: "CLAUDE_3_7_..." (hardcoded 3.7)
698884  - All 6 provider implementations
699447  - Where compaction loads the 3.7 model

Re: Speculation

@huachuman:

"AWS could be serving a quantized model or swapping them behind the scenes at peak service times"

Nope. Line 668866. Hardcoded string. No conspiracy needed.

"This is a serious issue and Kiro will face lawsuits if not dealt with promptly"

I'm not a lawyer, but I'm pretty sure "we have a bug in our compaction code" doesn't meet the bar for litigation. Though if you find a judge who'll hear a case about hardcoded model strings, please let me know - that would be entertaining.


All line numbers verified in extension.js. Decompiled with esbuild, searched with grep, validated with coffee and spite.

sgeraldes avatar Nov 06 '25 08:11 sgeraldes

You are completely missing the point. This is not about how "hardcoded" a model string is. AWS and other model providers switch to a different/quantized model in the background despite specifying the exact model string.

Based on the way you jump to conclusions, I think a judge would prefer to hear what I have to say.

Also maybe stop using claude sonnet for your investigations. It's notoriously bad at making you feel overconfident, which is exactly what I'm observing in your little report.

"No conspiracy needed" oh get a grip, will you? Do some basic research. What I'm saying is not controversial at all, everyone is discussing it. Clearly you don't know anything about research though because you use claude sonnet to do it for you.

"Validated with coffee and sprite" - yes that sounds accurate.

huachuman avatar Nov 06 '25 13:11 huachuman

@huachuman

"AWS and other model providers switch to a different/quantized model in the background despite specifying the exact model string."

Line 668866. In Kiro's extension.js. Not in AWS. The hardcoded string loads Claude 3.7 for compaction. This happens client-side before the request ever reaches AWS.

If AWS were swapping models server-side, every provider using the same API would have this issue. They don't. Just Kiro. Because line 668866.

"Based on the way you jump to conclusions, I think a judge would prefer to hear what I have to say."

You threatened lawsuits before checking the code. I checked the code and found the bug. One of us jumped to conclusions.

"Also maybe stop using claude sonnet for your investigations. It's notoriously bad at making you feel overconfident"

I decompiled 748,894 lines of JavaScript. Found the hardcoded model string. Traced the compaction logic. Verified the flow from model selection to API call.

Which part of that required Claude? The grep? The line numbers? The reading?

"What I'm saying is not controversial at all, everyone is discussing it."

Link me to a single discussion about AWS secretly swapping Claude 3.7 for Claude 4.5 behind the scenes. I'll wait.

Meanwhile, line 668866 is right there in the decompiled code. You can verify it yourself. That's the advantage of actual evidence - it's reproducible.

"Validated with coffee and sprite"

*spite. But sprite works too. Carbonated spite.

sebastiangeraldes avatar Nov 06 '25 17:11 sebastiangeraldes

The fact remains that Kiro isn’t using Claude Sonnet 4.5, no matter however you want to push it, there is a bug . You mentioned that it was using Claude sonnet 3.7 am not sure of that aswell since the llm itself said it’s knowledge base cut off 2024, no matter way you look at it, sonnet 3.7 was released early in 2025 while 4.5 was released in September 29, 2025. I have various proofs the llm saying it was Claude sonnet 3.5 an its knowledge been that of 2024, this is also true because code written by Kiro was of old versions and with unsupported syntax for example if you are generating n8n workflows.

Regarding the part someone mentioned saying at a point in my code base Kiro was using Claude sonnet 3.5 no that wasn’t the case, I never used Claude 3.5 nor 3.7 I selected Claude 4.5 from beginning till when I posted this issue.

I also tried confirming this in a new Kiro window not linked to my project, with a very simple question to the llm.

Which I also attached to this issue.

It was simple,

Open a Kiro chat window, select Claude sonnet 4.5

Type the below,

Which Claude sonnet version are you ?

Response

I’m Claude sonnet 3.5

Please note I have several evidence of this both in my project and a complete new session all displayed same, thing.

This issue wasted most of my time while using Kiro as it kept generating outdated syntax also made me waste tokens and ended up abandoning it.

On Thu, Nov 6, 2025 at 6:57 PM Sebastian Geraldes @.***> wrote:

sebastiangeraldes left a comment (kirodotdev/Kiro#3625) https://github.com/kirodotdev/Kiro/issues/3625#issuecomment-3498645462

@huachuman https://github.com/huachuman

"AWS and other model providers switch to a different/quantized model in the background despite specifying the exact model string."

Line 668866. In Kiro's extension.js. Not in AWS. The hardcoded string loads Claude 3.7 for compaction. This happens client-side before the request ever reaches AWS.

If AWS were swapping models server-side, every provider using the same API would have this issue. They don't. Just Kiro. Because line 668866.

"Based on the way you jump to conclusions, I think a judge would prefer to hear what I have to say."

You threatened lawsuits before checking the code. I checked the code and found the bug. One of us jumped to conclusions.

"Also maybe stop using claude sonnet for your investigations. It's notoriously bad at making you feel overconfident"

I decompiled 748,894 lines of JavaScript. Found the hardcoded model string. Traced the compaction logic. Verified the flow from model selection to API call.

Which part of that required Claude? The grep? The line numbers? The reading?

"What I'm saying is not controversial at all, everyone is discussing it."

Link me to a single discussion about AWS secretly swapping Claude 3.7 for Claude 4.5 behind the scenes. I'll wait.

Meanwhile, line 668866 is right there in the decompiled code. You can verify it yourself. That's the advantage of actual evidence - it's reproducible.

"Validated with coffee and sprite"

*spite. But sprite works too. Carbonated spite.

— Reply to this email directly, view it on GitHub https://github.com/kirodotdev/Kiro/issues/3625#issuecomment-3498645462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM4KVP74WTHJRY7N5T6RMT33ODZPAVCNFSM6AAAAACK3NZSFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOJYGY2DKNBWGI . You are receiving this because you authored the thread.Message ID: @.***>

darligee avatar Nov 06 '25 18:11 darligee

Image Image

HERE IS SOME OF THE CHAT WITH KIRO.

darligee avatar Nov 06 '25 18:11 darligee

@darligee I know, right!? HILARIOUS!

sebastiangeraldes avatar Nov 07 '25 00:11 sebastiangeraldes

@huachuman

"AWS and other model providers switch to a different/quantized model in the background despite specifying the exact model string."

Line 668866. In Kiro's extension.js. Not in AWS. The hardcoded string loads Claude 3.7 for compaction. This happens client-side before the request ever reaches AWS.

If AWS were swapping models server-side, every provider using the same API would have this issue. They don't. Just Kiro. Because line 668866.

"Based on the way you jump to conclusions, I think a judge would prefer to hear what I have to say."

You threatened lawsuits before checking the code. I checked the code and found the bug. One of us jumped to conclusions.

"Also maybe stop using claude sonnet for your investigations. It's notoriously bad at making you feel overconfident"

I decompiled 748,894 lines of JavaScript. Found the hardcoded model string. Traced the compaction logic. Verified the flow from model selection to API call.

Which part of that required Claude? The grep? The line numbers? The reading?

"What I'm saying is not controversial at all, everyone is discussing it."

Link me to a single discussion about AWS secretly swapping Claude 3.7 for Claude 4.5 behind the scenes. I'll wait.

Meanwhile, line 668866 is right there in the decompiled code. You can verify it yourself. That's the advantage of actual evidence - it's reproducible.

"Validated with coffee and sprite"

*spite. But sprite works too. Carbonated spite.

Your entire theory rests on the fact that claude 3.7 compacts conversations to summarize. But nobody here is talking about how kiro behaves after summaries. You're the only one whose theory makes no sense because we are not talking about degraded performance after summarization.

You have a weird obsession with me and your brain is too broken to see past the fact that nobody here is talking about what happens after compression.

I'm also not about to do the work of finding something for someone who is so hell bent on NOT LOOKING ANYTHIGN UP. What a moron.

The fact that you think I "threatened" a lawsuit is just the nail in the coffin on how stupid you are.

huachuman avatar Nov 08 '25 15:11 huachuman

Your entire theory rests on the fact that Claude 3.7 compacts conversations to summarize. But nobody here is talking about how Kiro behaves after summaries. You're the only one whose theory makes no sense because we are not talking about degraded performance after summarization.

There is no theory. I left you the line, you can go check yourself, you can even change the value, it will never use 3.7 again or refer to 3.7 ever. If you do ask a fresh copy of Kiro, without it activating the "compaction" (that is what the code calls it), you will get "I am sonnet 3.5". But you may have to try a few times, only after the initial system prompt is lost in memory with all the garbage, is when the model with its prompt will stop saying ‘I can’t discuss that.’. You can do the test, is really simple for you to follow... well, I guess, hope I have not offended you if you can't.

You have a weird obsession with me and your brain is too broken to see past the fact that nobody here is talking about what happens after compression.

And that is the problem. The OP is about the model responding saying it is 3.5 Sonnet, or 3.7, or 4, or 4.5. And I agreed with him that it is HILARIOUS, he understood the irony and even tried to argue with the model to obtain other results! So, yeah, I found it hilarious, didn't you? But hey, keep it up, you are doing a great job helping everyone, I don't want to keep you from posting useful information.

I'm also not about to do the work of finding something for someone who is so hell bent on NOT LOOKING ANYTHIGN UP. What a moron.

You talking to yourself? Had a bad day mate?

The fact that you think I "threatened" a lawsuit is just the nail in the coffin on how stupid you are.

Is the following your post by any chance?

Kiro is absolutely NOT using 4.5 sonnet despite setting that model explicitly. This is a serious issue and Kiro will face lawsuits if not dealt with promptly.

I already posted a fix for your issue. Won't fix the crappy prompts that are the real cause of the problem, but at least it wouldn't identify itself as 3.5, 3.7 or anything other than what you select.

I know how hard it could be to understand all these for you, I know! the cursing and the name calling are a good indication of your frustration. But I have faith you can do better, so when you get tired of banging your head, you can do yourself a favour and change a single line of code in extension.js. Here I will just leave it for you:

analysisModel: "CLAUDE_3_7_SONNET_20250219_V1_0",

find it, and change it to:

analysisModel: getSelectedModelId() || "CLAUDE_SONNET_4_5_20250929_V1_0",

that would either select your model from the box or just use 4.5 if you have it on auto. Mind you, before compaction it will just say ‘I can’t discuss that.’ or "I am 3.5" because, again, a model doesn't know his own model so replies with the prompt or what it was trained on (understand that you cannot train a model in future data, don't you? it is really not that hard, hope you can get it).

Oh, and for model been dumb, I attached the prompt, take a look. If you still want to argue, well, join a debate club or something.

SYSTEM-PROMPT-COMPLETE-NODE.json

sgeraldes avatar Nov 09 '25 00:11 sgeraldes

Hello All, The model self-identification discrepancy you're experiencing is a known hallucination pattern in Claude models themselves. This behavior has been documented in the wider Claude community and is not specific KIRO.

AnilMaktala avatar Jan 07 '26 22:01 AnilMaktala

Thank you for the detailed report. As noted in the thread, the model self-identification discrepancy is a known hallucination pattern in Claude models themselves and is not specific to Kiro. The models available in Kiro have been significantly updated since this was filed. Closing as not a Kiro bug. If you experience any issues on the latest version, please open a new issue with details.

AnilMaktala avatar Apr 16 '26 20:04 AnilMaktala

Haiku "4.5" Image

Sonnet "4.5"

Image

I didn't tell the model anything about it being incorrect or 3.5. I just saing questions.

dail45 avatar Apr 16 '26 22:04 dail45