Chapter 3: Git for the Agentic Age cover

Chapter 3: Git for the Agentic Age

AgentSpek - A Beginner's Companion to the AI Frontier

by Joshua Ayson

A commit co-authored by Claude raises new questions for Git: what one commit should hold when a day of work takes twenty-five minutes, and how to record who wrote what.

Rich Hickey asked how we factor programs so that when we look at any given part, we can understand it. That question matters more now than when he asked it in 2011, because the volume of code we produce has increased by an order of magnitude and the source of that code has become ambiguous.

A New Kind of Commit

Here is the shape of one, written for this chapter as an example:

commit 7f8a9b2c1e4d6f9a2b5a8c1f4d7a0b3c6e9f2a5c
Author: j@joshuaayson.com
Co-authored-by: Claude <noreply@anthropic.com>
Date: Wed Oct 15 14:32:18 2025 -0700

    Add content processing pipeline with graph database integration

    Claude designed the Neo4j relationship schema and implemented
    the core ETL logic. I refined the error handling and optimized
    for our specific content structure.

    Generated with Claude Code

This commit message tells a story that would have been impossible five years ago, a record of collaboration between a human and something that is not human. Neither could have produced it alone.

Two of the terms in that message need plain words. Neo4j is a graph database, which stores content as a web of relationships instead of rows in tables. ETL, extract-transform-load, is the plumbing that moves data from one system into another. Both will come up again.

Git was built for human-paced development. Linus Torvalds created it in 2005 out of frustration with existing version control. “I’m an egotistical bastard, and I name all my projects after myself. First Linux, now git.” Beneath the humor was a serious intent, a distributed system that could keep up with the Linux kernel’s development pace.

AI changes those assumptions. When your pair programming partner can generate a thousand lines of tested code in thirty seconds, and you can try a dozen architectures in the time it used to take to build one, how you use version control has to change with it. The line between human and machine contributions has moved past blurry into irrelevant. What is left is building software that works, with a history that tells the truth about how it came to be.

Semantic History

The fundamental unit of Git is the commit. What should a commit represent when AI can generate substantial changes in seconds?

Classic Git philosophy says a commit is a logical unit of change, one feature, one commit, something you can revert on its own, with a message that explains the why. Alan Perlis helped write ALGOL in 1958, a language meant in part for publishing algorithms so other people could read them. Version control extended that idea of a readable record to the evolution of programs. That model assumes human speed and human limits.

In my own work, what used to take from 10 AM to 5 PM can now happen between 10:00 and 10:25. You describe the feature to AI, review what it generated, refine the edge cases, check the tests. The same unit of work, in a fraction of the day.

Should this be one commit or five? That depends on what story you want your history to tell.

Organize around intention instead of time. Intent commits hold the human decisions, which authentication approach, how long sessions last, which features now and which later, where to store sensitive data. Implementation commits hold the technical execution, co-authored, with the authorship written in. Refinement commits hold the review and the fixes, like the security gap a human found in the first AI pass. The collaboration continues.

That keeps the human decisions and the technical details both, and the history tells the truth about how the software got built.


You’ve read the opening sections of this chapter. The full chapter (Branches as Hypotheses, Honest Attribution, CI/CD Inverted, The Social Reality, Patterns That Work Now, Where This Goes) continues in the book.