cd /news/ai-agents/show-hn-git-hook-for-model-identifat… · home › topics › ai-agents › article
[ARTICLE · art-172368] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: Git Hook for Model Identifation

A developer released a Git hook and accompanying format specification that lets AI models self-identify in commit messages, tagging each commit with fields such as model name, harness, effort and confidence level. The developer built the tool after using multiple models — including Claude, Codex, Grok via cursor-agent, Z.ai, Deepseek, Hy4 via OpenCode and agy — and finding no way to tell which commit came from which model. The stated goal is for a higher-ranked model to verify other models' output and suggest changes, similar to a senior engineer reviewing junior engineers' work.

key takeaway

A Git hook plus commit-message format spec records model name, harness, effort and confidence per AI-authored commit, so a stronger model can review weaker models' output.

read1 min views7 publishedNov 19, 2026

I have started using multiple models (Claude, Codex, Grok via cursor-agent, Z.ai, Deepseek, Hy4 via OpenCode, agy) etc, and I realized that I not able to identify which commit was made by which model. After looking around and not finding anything, I create a format specification that will let Model self-identify itself. The goal is a higher ranked model can verify the output of other models and suggest changes. It is similar how to a Senior Engineer will review the output of Junior Engineers. As Humans, we know which model is behaving well, and which we can trust more.

My AI based commits have a identification like this.

Add retry backoff to fetch

Model: claude-sonnet-5-5 harness=claude-code effort=high conf=medium

Model: opencode/hy4-flash-free harness=opencode effort=high conf=medium

In using this, I get an intuition what I can expect when I fire off model on a particular task.

Comments URL: [https://news.ycombinator.com/item?id=50556343](https://news.ycombinator.com/item?id=50556343)

Points: 1

── more in #ai-agents 4 stories · sorted by recency
── more on @git 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-git-hook-for…] indexed:0 read:1min 2026-11-19 · —