Human vs. AI – Diff-based line-level provenance for text under agentic editing
TL;DR Highlight
Git history alone gives line-level scores for human versus agent authorship, no file markup needed
Who Should Read
A developer worried that coding agents overwrite code or README openers they wrote by hand
Core Mechanics
- A tool to keep human-written lines safe
- Text a human wrote or edited should be treated as close to sacred, and agents should be hesitant to touch it.
- Agent-made slop is fair game for edits.
- It works from version history, not markup
- Plain text such as markdown must work as is.
- It only relies on every version having an identifiable author, human or agent.
- Output is islands in a sea
- Human-authored lines are islands inside a sea of machine text.
- It tracks coherent pieces of text, not just single lines.
- Joining, splitting and dilution are handled so results do not collapse into all sea or all island.
- The CLI prints a 0 to 1 score per range
- 1.00 means fully human and 0.00 means fully agent.
- 0.46 means human-written originally but modified by agents to some degree.
- Example: us-vs-them --ours dan@eighttrigrams.net README.md
- Use either --ours or --theirs
- --ours lists the humans and everyone else counts as an agent.
- --theirs lists the agents and everyone else counts as human.
- Passing both is rejected, so name the shorter list.
- degradations works as a gate
- It returns human lines that a proposed new version would remove or lower in score.
- An empty result means the edit costs the human nothing, so the agent may write.
Community Reactions
- Commits often carry the human's name anyway
- One commenter said that when an agent works locally, all git commits have their authorship.
- That makes history-based separation harder.
- Who wrote it should not matter
- One view was that risky code should carry comments, regardless of how the bytes were generated.
- They understood the README opener use case.
- A team already does similar tracking
- One team also marks lines that are AI generated but human modified.
- They count any change of 1 character or more.
- Annotations work but are sometimes ignored
- One commenter uses annotations and said agents ignore them in maybe 1 of 100 cases.
- They still see enough cases to notice it.
How to Apply
- Separate agent commit authors first
- Set a different git user.email for agent work today.
- This builds history that tools like us-vs-them can use.
- Add a README opener rule to agent instructions
- Add a line to a file like CLAUDE.md telling agents not to edit the human-rewritten opener.
- Allow them to rewrite or append the lower parts.
- Gate writes with degradations
- In a Clojure project, call degradations on the agent's proposed version before writing.
- Write the file only when the result is empty.
Try It
# Prompt for Claude Code (simplified version of the us-vs-them idea)
From now on, follow these rules when editing {{file path}}.
- Use git log to check who changed each line of this file.
- Treat lines authored by {{my email}} as human-written and do not edit them without a strong reason.
- Lines by any other author may be edited freely.
- If you must change a human line, explain why first and ask for permission.
First, list the ranges of human-written lines.
Next steps: to compare with the original CLI, install bbin, run make install, then run us-vs-them --ours {{my email}} {{file path}}.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques