feat: extract and surface AI model and version#44
Open
abhinavgautam01 wants to merge 2 commits into
Open
Conversation
Signed-off-by: abhinavgautam01 <abgautam1017@gmail.com>
MoralCode
reviewed
May 31, 2026
Contributor
MoralCode
left a comment
There was a problem hiding this comment.
I was skeptical at first given this is a new PR filed so close time-wise to your other one, but overall I like how small and concise the diff is.
Leaving this as comments to see if other contributors/maintainers have feedback, but overall i think this is a good change. I'd like to see maybe more robust parsing that isnt just focused on two frontier models, but id probably be fine with iterating on that over time
Signed-off-by: abhinavgautam01 <abgautam1017@gmail.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.
fixes #29
Description
Previously, all detection data was lumped into a single
Detailstring, making it difficult to systematically identify the exact AI models and versions being used. This PR introduces dedicated fields forModelandVersionin our core detection structures and surfaces them natively in the CLI outputs.Changes Made
ModelandVersionfields to thedetection.Findingstruct.detection/gitnotes/gitnotes.goto directly capture the model fromprompt.AgentID.Modelinstead of burying it in the detail string.detection/coauthor/coauthor.goto pull out explicit model strings fromCo-Authored-Bytrailers (e.g.aider (gpt-4o)now capturesgpt-4o,Claude Opus 4capturesClaude Opus 4, etc.).output/output.go) to automatically append[model_name]next to the tool name if a model was successfully extracted.coauthor_test.goto rigorously assert model extractions and verified all project tests pass natively.Testing
go test ./...passes without errors.Aider [gpt-4o]).