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

How to give an agent a sparse checkout of only the paths it needs with Git AI

Clone through the graft CLI and materialize just the folders the agent will edit.

Short answer: Build with make build and try examples/graft/quickstart.sh to see a server, cache and two agents; then run ./_build/bin/graft to 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. All steps.

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

  1. Build with make build and try examples/graft/quickstart.sh to see a server, cache and two agents
  2. Run ./_build/bin/graft to see the CLI and its commands
  3. Clone with graft clone against your server, then narrow it with graft sparse to the paths the agent needs
  4. 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

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