hackernews.medium.com 7 min read Original Source

Who knew Git would one day be replaced

He probably never imagined that, more than two decades later, a swarm of AI that never clocks off would write code so fast that Anthropic would simply swap out Git in its core code repository.

Git has stuck with programmers for over twenty years. Why is it suddenly struggling in the hands of AI?

The trouble lies in “distributed.”

Git was originally designed with Linux kernel developers in mind. Copy the repository to your laptop, and the code and its history go with you.

On a plane, on a train, on a remote island… even without internet, you could comfortably edit code. Once you got online again, you’d push your changes to everyone else.

For humans, this was convenient.

But many of Anthropic’s tasks are now handed off to AI Agents that stay connected around the clock in server rooms.

They often run tasks in temporary workspaces, finish in a few minutes, and then the workspace gets torn down. The next time they start a job, they have to set up the code all over again.

What’s that like? It’s like wanting to look at just one problem in a textbook, but having to haul the entire set of textbooks first. One person doing this occasionally is fine—but tens of millions of round trips? Who can handle that?

According to figures released by Anthropic: in May 2026, an average of about 2,500 code changes were merged per day; by September, that number had already exceeded 30,000.

Just pulling the code out, the automated testing system had to do this about 25 million times a day. This automated code-checking pipeline is called CI—essentially “automated homework grading.”

The main branch history of the repository is close to 100 GB, and even a compressed working copy exceeds 25 GB. If a full copy had to be fetched every single time, the theoretical traffic would exceed 600 PB per day—that’s over six hundred million GB.

Note that this is a hypothetical figure assuming “full download every time.” They’d already adopted measures like downloading less, fetching only partial files, taking snapshots, and adding mirror servers—but the repeated syncing and maintenance kept getting harder and harder.

So Anthropic simply pulled together a team of 7 people, who, with Claude’s help, spent 5 months building a new tool called Scion, and completed the migration of the core code repository.

The core idea is simple: since AI is always online, why should it have to carry the entire repository on its back?

The heavy lifting—history records, merging changes—gets handed off to a central server.

On the AI side, only the files actually needed, plus a small cache, are kept. If it just wants to know the difference between two versions of code, it can simply ask the server, without first pulling down the whole repository.

Even the way records are kept has changed. Scion records “which files changed relative to the previous version,” while file contents are stored separately and located via an identifier.

Many AIs can submit changes at the same time. When it’s time to update the shared main version that everyone uses, the system checks: “Is the old version I’m about to update still the one I just saw?” If someone else has already made changes first, it can’t simply overwrite them.

This way, not everyone has to line up in one long queue from start to finish.

As for questions like “who changed this line” or “what did this file used to look like,” the system prepares separate query data for that—some computed ahead of time, some computed on demand—avoiding having to flip through the entire ledger from scratch every time.

They also built a three-tier cache: first check if the same machine has it, then check if the same region has it, and only if it truly can’t be found does it go fetch it from the backend.

Once a piece of content is stored, it’s never modified again, so later tasks can just reuse it. According to the official statement, the cache hit rate exceeds 99%. In other words, the vast majority of reads can be served from nearby, ready-made data.

The results were pretty striking: compared to the original Git mirroring scheme, the CPU and memory requirements for the related infrastructure dropped to roughly 1/200, fetching code went from minutes down to seconds, and it freed up about a quarter of CI’s CPU capacity.

Of course, the central service still has to stay stable and online at all times.

So Scion was custom-built for the combination of “AI writing code at high frequency + a massive code repository.” For most of us, Git is still a perfectly suitable choice.

A similar kind of trouble has also shown up in chip design.

Before a chip actually goes into production, engineers first simulate how it works on a computer. Which signals turn to 0 and which turn to 1, and when—all of this gets recorded, and when plotted, it becomes a series of waveforms.

You can think of it as the chip’s “running ledger.” It’s not unusual for this to reach tens of GB, or even a TB, once things get complex.

A human can stare at the chart and flip back and forth. But asking AI to read through the entire ledger like an article? The amount it can hold in its “head” at once is limited, and it fills up fast.

Researchers at institutions including Columbia University and Google DeepMind came up with BTTF, taking a different approach: first organize the ledger into a SQLite database, then have the AI query it with specific questions.

A database is essentially an electronic ledger that supports fast lookups. SQL is a language for asking it questions.

For example: “Between seconds 100 and 105, which signal had a problem?”

The AI turns the question into a query, and the database pulls out only the handful of relevant records. After reviewing them, the AI decides what to check next.

It’s like looking up grades—you go straight to a specific class or a specific student, instead of reading through every exam paper in the whole school from the start.

In the ledger, one table records “what this signal is called and where it belongs,” and another table records “when it changed to what value,” with the two tables linked by an ID.

If a record says it changed to 1 at 10 seconds and to 0 at 20 seconds, then at 15 seconds it’s still 1. No new record in between means no change—it shouldn’t be interpreted as missing data. Queries also need to match up signal IDs, time units, and the chip design version correctly, to avoid pulling from the wrong ledger.

In one set of experiments in the paper, the database shrank from 1420 MB to 395 MB, and query time dropped from about 410.5 milliseconds to 94.8 milliseconds.

BTTF also divides the work among several AIs: one breaks down the question, one queries the ledger, one cross-checks against the chip design, and one double-checks for errors like querying the wrong time or missing results. When a signal’s state is unclear, it traces backward in time to find where the problem started.

The research team ran experiments using 4.2 GB of waveform data, 18,450 signals, and 150 expert-annotated questions, achieving a query execution accuracy of 95.33%.

GitHub’s story is even more interesting: for some tasks, it actually replaced a general-purpose large language model.

Programs frequently use secret keys. You can think of them as a “pass” that grants access to some service—if leaked, someone else might be able to impersonate you.

GitHub needs to help developers check whether these passes have accidentally been slipped into their code.

The tricky part is that a seemingly random string of characters could be a real secret key, or it could just be a test sample, or even just a checksum number.

Previously, the process was to first scan for suspicious strings by format, then have a general-purpose large language model judge based on context. It worked, but over the course of a day, the wait times and costs added up to something significant.

So GitHub kept the earlier format-based screening, but handed the subsequent judgment over to a specially trained model called ModernBERT.

It’s also AI, just one that focuses intently on a single task: looking at the string, the variable names, the file location, and the surrounding code to judge whether it looks like a real secret key.

There’s no need to compose an explanation word by word like in a chat every single time.

According to the official results: in offline testing, the metric for “how accurate the reports are” improved by 13%, and the metric for “how many real secret keys can be found” improved by 19%.

In live experiments, the median scan time after code upload dropped by 86%, and model serving costs dropped by over 98%.

Looking back, these stories are all connected: the faster AI writes code, the more easily downstream steps—fetching code, checking for issues, running tests—turn into bottlenecks.

Tools originally designed for the pace of human work now have to adapt to a swarm of AI that never clocks off and works simultaneously.

Whether the time programmers save ultimately turns into genuinely good software delivered to users still depends on whether the rest of the pipeline can keep up—a whole series of familiar, human-centered tools now all have to consider how to become more efficient in the age of AI.

References

Redesigning source control at Anthropic

GitHub: Detecting leaked secrets with a dedicated model

BTTF: A research paper on having AI query chip simulation waveforms