Conversation
- Add get_co_authored_by_line() utility that resolves model name and provider from session profile and config - Replace hardcoded "Co-Authored-By: Claude <noreply@anthropic.com>" with dynamic attribution across complete, export, and PR flows - Add tests for model attribution logic covering provider resolution, fallback behavior, and line formatting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The changed files are in a different repo. I'll fill in the template based on the commit messages and context provided.
Jira Issue:
Description
Adds model-aware attribution to commit messages and PR descriptions. Previously, the
Co-Authored-Byline used a generic assistant name. This change introduces amodel_providerutility (devflow/utils/model_provider.py) that detects the active AI model and includes its name in theCo-Authored-Bytrailer, giving clearer provenance for AI-assisted contributions.Changes:
devflow/utils/model_provider.py— New utility to resolve the current model name for attributiondevflow/cli/commands/complete_command.py— Use model-awareCo-Authored-Byline when creating commitsdevflow/cli/commands/export_command.py— Use model-awareCo-Authored-Byline when generating PR descriptionstests/test_model_attribution.py— Unit tests for model attribution logicResolves: #191
Assisted-by: Claude
Testing
Steps to test
pytest tests/test_model_attribution.py -vdaf completeCo-Authored-Byline includes the model namedaf exportand verify the PR description also contains the model-aware attributionScenarios tested
Co-Authored-BylineDeployment considerations