Who it is forA team running many coding agents against one large repository.
The problemFull clones of a big repo waste disk, time and agent context.
The outcomeA workspace that contains only the requested paths, fetched on demand from the server.
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
- Build with
make buildand tryexamples/graft/quickstart.shto see a server, cache and two agents - Run
./_build/bin/graftto see the CLI and its commands - Clone with graft clone against your server, then narrow it with graft sparse to the paths the agent needs
- Check the working tree holds only those paths before handing it to the agent
Prompt for your agent
In feder-cr/git-ai, run the quickstart, then create a sparse workspace with graft clone and graft sparse for <paths>. Verify only those paths are in the working tree.
Caveat. Exact options for clone and sparse are in the Quickstart doc; check the command help before scripting.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for feder-cr/git-ai and "Give an agent a sparse checkout of only the paths it needs"
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