Git hook records self-reported AI model details on commits
state: watchingheat: lowuncertainty: highrelevance: mediumcoding-agent-provenance model-identificationSenthil Kumaran
What is this?
Senthil Kumaran’s open-source GitHub project, “Model Identification hook for Git Commits,” adds a Git hook that rejects AI-authored commits unless their message includes a model and related details such as harness, effort, and confidence. After a commit, it copies that self-identification into Git notes, where a review tool can list status and attach reviewer comments. The project says it works with agents that run `git commit`; humans can bypass the check, and merges and reverts are exempt. Its README explicitly warns that the identification is self-reported and can be false. The supplied evidence is the project’s own README and its Show HN post; it does not establish adoption or independent validation.
Why it matters
A small but practical experiment in making AI-assisted software development more legible: teams could see which model and harness reportedly produced a commit, then organize review around that record. If adopted, this could support comparisons of tools and clearer review practices. It is not reliable proof of authorship, because the model identity and confidence are self-reported and Git notes require explicit pushing; the project does not establish broader uptake.
Current assessment
Senthil Kumaran’s open-source Git hook enforces a commit-message trailer with self-reported AI model and related details, then copies it into Git notes for a review workflow. The project says it works with agents that run git commit; humans can bypass the check, merges and reverts are exempt, and notes are not pushed by default. This records claims rather than verifying provenance, and the supplied evidence establishes neither adoption nor improved review or evaluation. A separate Show HN item titled “Git blame for AI code, down to the agent session” suggests adjacent interest, but its evidence here is only a title with no description or link, so its relationship and implementation remain unknown.
Measured heat
now 0 pts/hpeak 8 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 194h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p29 vs 2096 stories at the 168h mark (now 194h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)
Evidence (3) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Show HN: Git Hook for Model IdentifationRetrieved article excerptOpen article · Retrieved 2026-11-19T05:23:03.469458+00:00 # Model Identification hook for Git Commits
It is desirable to have model and model properties identification in git
commits authored by AI models. This repository provides a git hook that
enforces a commit message format and a review workflow.
Every AI-authored commit carries a one-line self-identification, so a stronger
model can review it later and know who wrote it and how sure they were.
A git hook can't instruct a model directly, so `commit-msg` **rejects the
commit with instructions**. The agent reads the error, adds the trailers, and
retries. It works with any agent that runs `git commit`.
## What a commit looks like
```
Add retry backoff to fetch
Model: claude-sonnet-5-5 harness=claude-code effort=high conf=medium
```
Full format and rules: [SPEC.md](https://github.com/orsenthil/git-hook-model-identification/blob/main/SPEC.md).
## Install
```
cd your-repo && /path/to/install.sh # this repo only (core.hooksPath -> this project's hooks/)
/path/to/install.sh --global # all repos (copies hooks to ~/.config/git/hooks)
```
Global install copies the hooks, so re-run it after updating them. It also
overrides any per-repo `.git/hooks`.
## Use
- Agents: commit normally; if rejected, follow the printed instructions.
- Humans: `GIT_HUMAN_COMMIT=1 git commit ...` skips the check. Merges, reverts are exempt automatically
## Review workflow
`post-commit` copies the `Model` trailer into `git notes --ref=model-id` with `Review-Status: pending`.
```
bin/model-review list [range] # self-ID + status per commit
bin/model-review comment <sha> "<text>" # reviewer comment -> refs/notes/model-review; marks reviewed
git push origin refs/notes/model-id refs/notes/model-review # notes are not pushed by default
```
The trailer in the commit message is the source of truth; notes are an index
and can be lost on amend/rebase.
## Limits
The identification is self-reported: a model can misstate its own ID or
confidence if it is instructed to do so.
## License
Apache License 2.0 - see [LICENSE](https://github.com/orsenthil/git-hook-model-identification/blob/main/LICENSE) for details. Copyright 2026 Senthil Kumaran. | orsenthil | 2 | 0 |
| 🟧 echo.github ⭐ | The repository README presents this as original work: “This repository provides a git hook that enforces a commit message format and a revie | Senthil Kumaran (@orsenthil) | — | — |
| 🟧 hn | Show HN: Git blame for AI code, down to the agent session | keepplain | 3 | 0 |
Interpretation history
2026-11-21T23:23:32Z
A separate Show HN post describes a related goal—tracing AI-generated code to an agent session—but the supplied record contains no description or link establishing how it works or whether it uses this project. It is a possible adjacent approach, not evidence of adoption or validation for the self-reported commit hook; attention remains low after the original post’s brief peak.
2026-11-19T05:23:25Z
audience grounding: medium — A small but practical experiment in making AI-assisted software development more legible: teams could see which model and harness reportedly produced a commit, then organize review around that record. If adopted, this could support comparisons of tools and clearer review practices. It is not reliable proof of authorship, because the model identity and confidence are self-reported and Git notes require explicit pushing; the project does not establish broader uptake.
Decision trace
- 11-22 10:23repriceA separate Show HN post describes a related goal—tracing AI-generated code to an agent session—but the supplied record contains no description or link establishing how it works or whether it uses this
- 11-22 10:21attention_candidateattach
- 11-22 10:21attachTracing code changes back to agent sessions adds useful provenance context to AI-code attribution tooling.
- 11-22 10:21propose_attachTracing code changes back to agent sessions adds useful provenance context to AI-code attribution tooling.
- 11-19 16:24attention_candidatecreate
- 11-19 16:24promote_anchororigin walk conf 0.88
- 11-19 16:23groundA small but practical experiment in making AI-assisted software development more legible: teams could see which model and harness reportedly produced a commit, then organize review around that record.
- 11-19 16:23createThe repository provides a concrete, usable provenance workflow for multi-model coding, though its self-reported labels cannot verify which model actually produced a commit.