DEDUPED We read 1,000+ AI sources. You read one email. Subscribe free

AI USE CASES

How to move repo state into PostgreSQL and object storage for scale-out with git-ai

Switch a gitai repo to a database plus object storage so any server node can be added or rebuilt.

Who it is forInfrastructure engineer planning to run several gitai nodes behind one repository

The problemRepository state tied to one node's disk means you cannot add nodes or recover one that dies.

The outcomeYour repositories are imported and served in authoritative mode from a database and object storage, with nodes acting as rebuildable caches.

What you need first

  • Linux or macOS
  • Go 1.26, a C toolchain, Meson and Ninja (the build compiles a bundled Git)
  • No paid keys needed; conflict resolution can use any LLM provider, a deterministic tool, or none
  • SQLite or PostgreSQL plus object storage (file, S3, GCS, Azure) only if you move the repo state off local Git

Steps

  1. Read doc/graft/STORAGE.md
  2. Add a [graft.storage] section to your config.toml
  3. Start in shadow mode and import your repositories
  4. Switch to authoritative mode once imports check out

Prompt for your agent

In feder-cr/git-ai, follow doc/graft/STORAGE.md to add a [graft.storage] section using <database-url> and <object-store>, start in shadow mode and import <repo>. Verify the import completed before suggesting the switch to authoritative.

Caveat. The README lists garbage collection of packs in the storage core as a known gap, so storage can grow without cleanup.

About git-ai

Version control built for coding agents instead of humans, so many agents can work on one codebase without stepping on each other. View feder-cr/git-ai on GitHub.

More with git-ai

See all use cases for feder-cr/git-ai

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page