cd /news/ai-agents/our-agents-memory-lives-on-a-git-bra… · home › topics › ai-agents › article
[ARTICLE · art-178276] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Our agents' memory lives on a git branch. We were reading it through the API, one file at a time.

A developer whose team stores agent-learned artifacts — specs, evidence, fix state, stories and team insights — on an orphan git branch called `kandi-store` described how a build that read the branch through GitHub's REST API, one request per file on every sync, burned through the 5,000-requests-per-hour quota shared across all tools and locked the engineer out of their own work every ten minutes. Switching to a per-machine git mirror cut the machine from roughly 950 store requests an hour to zero, since a `git fetch` transfers only what changed and costs no API quota. The team added guards — a per-component request budget in CI, a lint rejecting GitHub calls outside their client, and a cap on background calls — to prevent a repeat.

recommendation

If your agent memory lives in git, sync it with `git fetch` and commits instead of per-file REST calls, and add a CI request budget plus a lint blocking GitHub calls outside your client.

more in playbook: Designing agent systems
by read2 min views5 publishedNov 29, 2026

A short update from the series on evidence-based agentic development.

Our SDLC keeps everything the agents learn — specs, evidence, fix state, stories, team insights — on an orphan git branch called kandi-store. That gives us change control for free: every change is a commit, with history, diff and revert.

Then we shipped a build that read that branch through GitHub's REST API, one request per file, on every sync, whether anything had changed or not. GitHub gives a user 5,000 requests an hour, shared by every tool on every machine. The new build spent it in minutes, and I was locked out of my own work every ten minutes.

The numbers from that day:

The fix was obvious once I said it out loud: it's a git branch, so sync it with git. Each machine keeps a mirror. Catching up is one git fetch, which transfers only what changed and costs no API quota at all. A change is one commit, pushed once. A sync with nothing new is one fetch and nothing else.

That machine went from about 950 store requests an hour to zero. Synced this way, the store behaves like a message stream: a commit is a message, a push sends it, a fetch receives exactly what's new, in order.

We also added guards so a feature can't do this again: a request budget per component in CI, a lint that rejects GitHub calls outside our client, and a cap on background calls.

The lesson: when the data is in git, use git.

This is one of the write-ups behind my talk at Build Stuff in Vilnius this December, the 15th edition, under the theme The Age of Agency.

Control Your Fate at the Metal

Wednesday 2 December, 15:00, Human OS Lab room. 45 minutes.

If you're coming, say hello. If you're not yet, `2026SPEAKER_20` takes 20% off a ticket.

#BuildStuff15 #buildstuffconf #AgeOfAgency @buildstuffconf [https://buildstuff.events](https://buildstuff.events)
── more in #ai-agents 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/our-agents-memory-li…] indexed:0 read:2min 2026-11-29 · —