Who it is forA platform engineer who needs to run several gitai server nodes that scale out and share one consistent state.
The problemLocal Git repositories on one machine cannot be shared safely by several server nodes handling many agents.
The outcomeRepository state is kept in a database with a changeset log and packs live in object storage, and any server node can rebuild its cache.
What you need first
- Linux or macOS
- Go 1.26
- A C toolchain
- Meson and Ninja (the build compiles a bundled Git)
- Git and a clone of https://github.com/feder-cr/git-ai.git
Steps
- Read doc/graft/STORAGE.md for the storage core design and the supported database and object storage options.
- Copy
examples/graft/config.tomland adapt it for your server. - Add a
[graft.storage]section and start inshadowmode. - Import your repositories while the server runs in shadow mode.
- Switch the storage mode to
authoritativeas described in doc/graft/STORAGE.md.
Prompt for your agent
In the repository git-ai, read doc/graft/STORAGE.md and list the storage modes and the supported database and object storage backends. Start the server with `_build/bin/gitaly serve config.toml` using your storage section, and confirm the server runs in shadow mode before any switch.
Caveat. The README lists garbage collection of packs in the storage core as a known gap, so storage will grow until that is handled.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for feder-cr/git-ai and "Move repository state into SQLite or PostgreSQL and object storage"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer