frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Using Git to attribute AI-generated code

https://github.com/mesa-dot-dev/agentblame
5•remolacha•1h ago

Comments

remolacha•1h ago
OP here.

We recently open-sourced a small tool we built internally to help answer a question we couldn't find a good solution for: How do you evaluate AI coding agents on a real production codebase?

Like most teams, we had lots of opinions about which agents and models "felt" best, but no hard data. The missing piece wasn’t analysis; it was attribution. We needed to know which lines of code were written by which agent/model, without changing how engineers work.

The key insight was that Git already gives us most of what we need.

By reverse-engineering how tools like Cursor and Claude Code modify files, we attach attribution metadata directly to Git whenever an AI agent edits code. Engineers don’t have to opt in or change their workflows.

Once that data exists, we can run fairly simple queries to answer questions like:

- merged lines per dollar by agent/model

- bug rates correlated with AI-generated code

- how different developers actually use AI in practice

An unexpected side effect was code review: once we surfaced AI attribution in pull requests, reviews got faster because reviewers could focus on AI-generated code in sensitive areas.

We've open-sourced the data capture layer and code review extension so other teams can experiment with this approach. For us, the most valuable part wasn't which agent "won," but finally having a way to measure it at all.

Happy to answer questions or hear critiques.

reena_signalhq•1h ago
This is a smart approach to the AI attribution problem. As more code is AI-generated, tracking provenance becomes critical for debugging and compliance.

One question: How do you handle cases where AI-generated code is heavily edited by humans? Does it still count as "AI-generated" or does it become "human-written"?

Also curious about performance impact - does adding this metadata to every commit slow down large repos?

OliverGilan•1h ago
Maintainer here.

In the case where a human edits a previously AI-generated line we simply track that as a human-produced line of code. We are thinking of making this a distinct subcategory because there's a lot of useful info in that data.

Regarding performance we haven't done rigorous benchmarks but we've been using this internally and haven't noticed any problems

Why Voice AI that works in the US often struggles in EMEA

https://telnyx.com/resources/why-voice-ai-fails-in-emea-and-what-infrastructure-has-to-do-with-it
1•abhi_telnyx•54s ago•1 comments

AWS European Sovereign Cloud

https://aws.eu/
1•kristianpaul•1m ago•0 comments

Sparse tongue hair explains why queen bees stop foraging when workers emerge

https://phys.org/news/2026-01-sparse-tongue-hair-queen-bees.html
1•gmays•1m ago•0 comments

Tailscale the Terraform Way

https://tailscale.com/blog/open-source-terraform-module
1•gpi•4m ago•0 comments

Claude Code Diff View in Claude Desktop and Web

https://twitter.com/claudeai/status/2011925349341483413
1•mfiguiere•5m ago•0 comments

Nintendo Bans Infamous Japanese "Adult Only" Animal Crossing Island

https://automaton-media.com/en/news/nintendo-bans-infamous-japanese-adult-only-animal-crossing-is...
1•randycupertino•7m ago•0 comments

Are the layoffs at Tailwind a trend that can be extrapolated?

1•qcardona•7m ago•0 comments

U.S. carbon pollution rose in 2025, a reversal from prior years

https://www.nbcnews.com/science/climate-change/us-carbon-pollution-rose-2025-reversal-rcna253859
1•gmays•8m ago•0 comments

Use nasm preprocessor to write clean x86 asm

https://pmasschelier.github.io/nasm-preprocessor/
1•thaisstein•8m ago•0 comments

Pools of Extraction: How I Hack on Software Projects with LLMs (2025)

https://blog.almaer.com/pools-of-extraction-how-i-hack-on-software-projects-with-llms/
1•mooreds•10m ago•0 comments

Is AI breaking the historical pattern of tech expanding jobs?

https://www.erikjs.com/blog/ai-renaissance-software-engineering
1•csgod•10m ago•0 comments

Why Senior Engineers Let Bad Projects Fail

https://lalitm.com/post/why-senior-engineers-let-bad-projects-fail/
5•SupremumLimit•10m ago•0 comments

Online JWT Decoder

https://fusionauth.io/dev-tools/jwt-decoder
1•mooreds•12m ago•0 comments

Show HN: Ghostty Ambient – Terminal theme switcher that learns your preferences

https://github.com/gezibash/ghostty-ambient
2•zimzima•15m ago•0 comments

The Discoveries of Continuations [pdf]

https://homepages.inf.ed.ac.uk/wadler/papers/papers-we-love/reynolds-discoveries.pdf
2•birdculture•16m ago•1 comments

Categorical Foundations for CuTe Layouts

https://arxiv.org/abs/2601.05972
1•matt_d•17m ago•0 comments

How to parametrize exception testing in PyTest?

https://borutzki.github.io/2026/01/15/how-to-parametrize-exception-testing-in-pytest.html
1•todsacerdoti•19m ago•0 comments

AMail: An Amiga IMAP and SMTP Client over SSL

https://bluewizardnet.itch.io/amail
3•doener•19m ago•0 comments

Wormholes may not exist but may reveal something deeper about time and universe

https://theconversation.com/wormholes-may-not-exist-weve-found-they-reveal-something-deeper-about...
3•bikenaga•20m ago•0 comments

Trump threatens to use the Insurrection Act to end protests in Minneapolis

https://apnews.com/article/immigration-crackdown-minnesota-shootings-renee-good-a0c368079c106b599...
8•throw0101c•20m ago•1 comments

Researchers use virtual reality to reduce anxiety about death

https://medicalxpress.com/news/2025-12-virtual-reality-anxiety-death.html
1•PaulHoule•21m ago•0 comments

Show HN: Gain App, new adaptive workout generator app – better than ChatGPT?

https://apps.apple.com/us/app/gain-ai-fitness-workout-plan/id6740370081
1•nickg•24m ago•1 comments

True Dual Stack with DHCPv6 prefix delegation (/56 to boot)

https://www.net253.net/blog/2025/9/1/true-dual-stack-with-dhcpv6-prefix-delegation-56-to-boot
1•1970-01-01•24m ago•0 comments

Neural Scaling and the Quanta Hypothesis

https://ericjmichaud.com/quanta/
1•eden-u4•25m ago•0 comments

Tormentmaxxing 'Simple Requests'

https://xeiaso.net/notes/2026/tormentmaxxing-simple-requests/
1•pantalaimon•25m ago•0 comments

Feather by Feather: On Life, Death, and Birding

https://lithub.com/feather-by-feather-on-life-death-and-birding/
2•herbertl•25m ago•0 comments

Show HN: Create animated diagrams powered by Opus 4.5

https://diagramstudio.com
1•matthewsessions•27m ago•2 comments

You can (probably) read at 900 wpm [video]

https://www.youtube.com/watch?v=NdKcDPBQ-Lw
1•dvrp•27m ago•0 comments

Poleaxed

https://notoneoffbritishisms.com/2026/01/15/poleaxed/
2•jjgreen•32m ago•0 comments

Remails: A European Mail Transfer Agent

https://tweedegolf.nl/en/blog/197/remails
3•Flundstrom2•40m ago•1 comments