Skip to content

Amazon Q Developer Cli Alignment Issues

0

I'm using q Developer cli, it seems as though Claude 4 Sonnet is falling out of alignment. Degraded suggestions in code completion, silly mistakes in naming convetions, an inability to find functions in given context and an Overall degraded experience. Instead of 4.0 it feels like a much early model 3.5 or even 3.0. It causes me to switch to different coding agents that are immediately able to solve the problem I give them with the same context. I've cleared caches and restarted sessions, are there other ways to check alignment during a chat session?

2 Answers
0

Based on your description of alignment issues with Claude 4 Sonnet in the Amazon Q Developer CLI, there are a few things you can check and try:

First, ensure you're actually using Claude 4 Sonnet. The CLI defaults to Claude 3.7 Sonnet when no specific model is selected. You can verify your current model during an active chat session with the /model command, which will show which model you're currently using.

To explicitly use Claude 4 Sonnet, you can:

  • During an active chat, use the /model command and select claude-4-sonnet
  • Start a new chat with q chat --model claude-4-sonnet
  • Set it as your default model using q settings chat.defaultModel claude-4-sonnet

Make sure you're using the latest version of Amazon Q Developer CLI (v1.11.0 or newer), as earlier versions may not properly support Claude 4 Sonnet.

For better code generation results, try these best practices:

  • Provide more context in your prompts
  • Include relevant import libraries to help the model understand the context
  • Create code skeletons with comments to guide the model
  • Be specific in your prompts rather than using general instructions
  • Maintain clear and focused context in your scripts

If you're still experiencing issues, you might try experimenting with different prompting techniques or even temporarily switching to another model like Claude 3.7 Sonnet to compare performance.

Unfortunately, there isn't a specific "alignment check" feature during chat sessions, but providing feedback when you encounter issues can help improve the system over time.
Sources
Access Claude Sonnet 4 in Amazon Q Developer CLI | AWS DevOps & Developer Productivity Blog
Best practices for code generation with Amazon Q Developer - AWS Prescriptive Guidance
Troubleshooting code generation scenarios in Amazon Q Developer - AWS Prescriptive Guidance
Selecting a model for chat on the command line - Amazon Q Developer

answered 8 months ago
0

Q Develoerp CLI Fail

I'm getting the same model using Kiro. Why am I being refused the SOTA models. I have a pro subscription. This is an issue that has persisted for over a month without a resolution.

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.