Description
Currently, all commits include generic attribution regardless of which Claude model was used:
Co-Authored-By: Claude <noreply@anthropic.com>
Since DevAIFlow now supports multiple Claude models (Opus 4.6, Sonnet 4.5, Haiku 4.5) via model profiles (vertex, ollama-local, etc.), the attribution should reflect which specific model contributed to the code.
Current Behavior
All commits use the same generic attribution:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Proposed Behavior
Commits should include the specific model that was used:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Or for other models:
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Benefits
- Transparency: Clear attribution of which AI model contributed
- Accuracy: Especially important when different models (Opus vs Sonnet vs Haiku) have different capabilities
- Analytics: Teams can track which models were used for different types of work
- Historical context: Future developers can understand what AI assistance was available at the time
Implementation Considerations
-
Model Profile Mapping: The Session.model_profile field stores profile names (e.g., "vertex", "ollama-local"), not model names. Need to:
- Map profile → actual model name (e.g., "vertex" → "Claude Opus 4.6")
- Handle custom profiles or unknown profiles gracefully
-
Fallback Handling: When model info is unavailable:
- Keep existing generic "Claude" attribution
- Don't break commits if model detection fails
-
Location: Modify _generate_commit_message() in devflow/cli/commands/complete_command.py to:
- Access session's model_profile
- Resolve to actual model name
- Include in Co-Authored-By line
-
Format Options:
- Option A:
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Option B:
Co-Authored-By: Claude (Sonnet 4.5) <noreply@anthropic.com>
- Option C: Keep generic "Claude" but add comment with model
Related
Description
Currently, all commits include generic attribution regardless of which Claude model was used:
Since DevAIFlow now supports multiple Claude models (Opus 4.6, Sonnet 4.5, Haiku 4.5) via model profiles (vertex, ollama-local, etc.), the attribution should reflect which specific model contributed to the code.
Current Behavior
All commits use the same generic attribution:
Proposed Behavior
Commits should include the specific model that was used:
Or for other models:
Benefits
Implementation Considerations
Model Profile Mapping: The
Session.model_profilefield stores profile names (e.g., "vertex", "ollama-local"), not model names. Need to:Fallback Handling: When model info is unavailable:
Location: Modify
_generate_commit_message()indevflow/cli/commands/complete_command.pyto:Format Options:
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>Co-Authored-By: Claude (Sonnet 4.5) <noreply@anthropic.com>Related
Session.model_profilefield indevflow/config/models.py:779ModelProviderConfigin config models