DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to move repository state into SQLite or PostgreSQL and object storage with Git AI

Add a graft storage section, import in shadow mode, then switch to authoritative.

Short answer: Read doc/graft/STORAGE.md for the storage core design and the supported database and object storage options; then copy examples/graft/config.toml and adapt it for your server; add a [graft.storage] section and start in shadow mode. All steps.

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

  1. Read doc/graft/STORAGE.md for the storage core design and the supported database and object storage options.
  2. Copy examples/graft/config.toml and adapt it for your server.
  3. Add a [graft.storage] section and start in shadow mode.
  4. Import your repositories while the server runs in shadow mode.
  5. Switch the storage mode to authoritative as 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer