Available Models
GitWhisper supports the latest Claude models across multiple generations:Claude 4 Series (Latest)
The most advanced Claude models with superior capabilities:- claude-sonnet-4-5-20250929 ⭐ (default) - Best balance of intelligence and speed
- claude-sonnet-4-20250514 - Stable Sonnet 4 release
- claude-opus-4-1-20250805 - Enhanced Opus with extended context
- claude-opus-4-20250514 - Most powerful Claude model
Claude 3.7 Series
Recent generation with excellent performance:- claude-3-7-sonnet-20250219 - Latest 3.7 release
- claude-3-7-sonnet-latest - Always uses newest 3.7 version
Claude 3.5 Series
Previous generation, still highly capable:- claude-3-5-sonnet-latest - Auto-updates to latest 3.5
- claude-3-5-sonnet-20241022 - October 2024 release
- claude-3-5-sonnet-20240620 - June 2024 release
Claude 3 Series
First generation Claude 3 models:- claude-3-opus-20240307 - Most powerful Claude 3
- claude-3-sonnet-20240307 - Balanced Claude 3
- claude-3-haiku-20240307 - Fast and efficient
The default model claude-sonnet-4-5-20250929 provides exceptional quality and is recommended for most use cases.
Usage
Basic Usage
Generate commit messages with Claude:Specific Variant
Choose a specific Claude model:Set as Default
Make Claude your default model:API Key Setup
You need an Anthropic API key to use Claude models. Get one at console.anthropic.com.- Save Permanently
- Environment Variable
- Command Line
~/.git_whisper.yamlModel Comparison
- Claude 4 Series
- Across Generations
| Model | Intelligence | Speed | Cost | Best For |
|---|---|---|---|---|
| Opus 4 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | 💰💰💰 | Complex analysis |
| Sonnet 4.5 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | 💰💰 | Balanced choice |
| Sonnet 4 | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | 💰💰 | Everyday use |
Key Features
Superior Code Understanding
Claude models excel at:- Contextual awareness - Understanding how changes fit into the broader codebase
- Intent recognition - Identifying the purpose behind code modifications
- Nuanced descriptions - Generating detailed yet concise commit messages
- Following conventions - Adhering to conventional commit formats
Large Context Window
All Claude models support 200K token context windows, allowing them to:- Analyze large diffs across many files
- Understand relationships between changes
- Maintain consistency in commit message style
Extended Thinking
Claude 4 models can engage in extended reasoning, making them particularly good at:- Complex refactoring analysis
- Identifying architectural changes
- Understanding subtle bug fixes
Code Analysis
Claude models provide exceptional code analysis:Analysis Output Includes
Model Selection Guide
When to Use Opus 4
When to Use Opus 4
Choose claude-opus-4-20250514 when:
- Working with complex, multi-layered changes
- Need deep understanding of code implications
- Dealing with subtle or nuanced modifications
- Maximum quality is more important than speed
When to Use Sonnet 4.5
When to Use Sonnet 4.5
Choose claude-sonnet-4-5-20250929 (default) when:
- You want the best balance of quality and speed
- Working with typical development workflows
- Need reliable, consistent results
- This is the recommended choice for most users
When to Use Haiku
When to Use Haiku
Choose claude-3-haiku-20240307 when:
- Speed is critical
- Working with simple, straightforward changes
- Need to minimize costs
- Dealing with high-volume commits
Multi-Language Support
Claude models work particularly well with GitWhisper’s multi-language support:Pricing
Anthropic charges based on input and output tokens. Typical usage:- Small commits: ~500-1,000 input tokens
- Medium commits: ~1,500-3,000 input tokens
- Large commits: ~5,000+ input tokens
- Output: Usually 50-150 tokens per commit message
Tips for Best Results
- Stage related changes together - Claude understands relationships between files
- Use meaningful file names - Helps Claude understand the context
- Keep commits focused - Even powerful models benefit from focused changes
- Use prefixes - Add ticket numbers for better project tracking
Troubleshooting
Invalid API Key
Invalid API Key
Rate Limit
Rate Limit
Context Length Exceeded
Context Length Exceeded
Comparison with Other Models
vs OpenAI
- Claude: Better at nuanced understanding
- OpenAI: Slightly faster response times
- Both: Excellent for code analysis
vs Gemini
- Claude: Superior reasoning
- Gemini: Larger context (2M tokens)
- Claude: More consistent quality
Next Steps
OpenAI Models
Compare with OpenAI’s GPT models
All Variants
View complete list of Claude variants
Code Analysis
Deep dive into code analysis features
Configuration
Learn more about API key setup