feder-cr / git-ai
git clone https://github.com/feder-cr/git-ai.git
v0.3.0 · today
Git designed for AI agents.
—
stars, 24h
+1.2k
stars, 7 days · #57
+1.2k
stars, 30 days · #255
1.2k
★ total · +1246% this week
137
forks · 1 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageGo
License—
Created2026-10-15 (5d ago)
Last pushtoday
Watchers27
OwnerUser
GitHub topics
Links
- GitHub: github.com/feder-cr/git-ai
- Homepage: https://www.anthropic.com/engineering/redesigning-source-control
- Releases · Issues · Hacker News mentions
README excerpt
Git designed for AI agents. Anthropic built **Scion**, a faster version control system for coding agents, and described it in Redesigning source control: a server-centric system built for hundreds of agents that read, write and land code at the same time. Scion is internal to Anthropic and is not available to the public. So I built **gitai**: an open-source version of that design that anyone can run, and that the community can improve and maintain together. MIT licensed. Vendor neutral: the server never calls a language model, and every AI feature works with any provider, or none. gitai is an independent implementation of the publicly described design. It is not affiliated with or endorsed by Anthropic. --- ## Why Classic Git hosting was built for humans who clone a repository, work for hours and push once. Coding agents work differently: thousands of short-lived tasks, each touching a few files, each wanting to land in seconds, all on the same branches. Full clones, merge queues and client-side history walks become the bottleneck. Scion's answer is to move the work to the server: clients stay online and fetch only what they need, history questions are answered (and cached) by the server, changes land through a compare-and-swap instead of a queue, every update is an entry in a changeset log, and the repository state lives in a consistent database plus object storage so servers scale out. gitai implements these ideas, with normal Git repositories underneath. ## The Scion ideas, implemented | Scion idea | In gitai | |---|---| | **Always-online clients** that fetch exactly what they need | `ObjectService` serves single objects and sparse trees; `graft clone` and `graft sparse` materialize only the paths you ask for. | | **Source control as an API**: history runs on the server | Blame, path history, ancestry and code search run server-side and are memoized as derived data, computed once per commit. | | **Landing without a merge queue** | `UserLand` rebases a change onto the current tip and lands it with a compare-and-swap; concurrent lands on one branch are batched into a single reference update. | | **Automatic conflict resolution** | A conflicting land is resolved by a resolver you choose (any LLM provider, a deterministic tool, or none) through a versioned, vendor-neutral protocol. A model's resolution is only a proposal: it lands by itself only if the `verify.command` you configure passes on the exact tree that would land, and otherwise the agent gets the conflict package with the proposal. The deterministic rules you configure need no such condition of their own, and are verified on the exact tree as well when you turn the verification on (`verify.enabled`). | | **Changeset log** | Every accepted reference update is recorded with its operation and actor in a dense, ordered log that clients list or watch live. | | **Storage core: a database and object storage, stateless servers** | Each change is a changeset in a write-ahead log in SQLite or P