cd /news/ai-agents/we-store-our-agent-s-knowledge-in-ma… · home › topics › ai-agents › article
[ARTICLE · art-182150] src=abundanceai.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

We Store Our Agent's Knowledge in Markdown and Git on Purpose

A staff engineer at an unnamed company described storing its Kafka copilot agent's knowledge as markdown files in git rather than in MongoDB, Postgres or a graph database, arguing git already supplies the review, history and hermetic-testing properties a governed knowledge store needs. Subhojit Banerjee, writing in December 2026, said two rules prevent drift: relation types come from a closed list such as ownedBy, consumes and supersedes, and plain text remains the source of truth so any index or graph is rebuildable. Banerjee cited Netflix's ontology team, which keeps its ontology as code reviewed through pull requests, and said a database becomes worth it only once the corpus outgrows git — for operational runbooks and a few thousand entities, git is simpler, safer and easier to test.

recommendation

Keep agent knowledge as reviewed markdown in git with a closed relation vocabulary, and derive any index or graph from the text so it can be rebuilt; this works until the corpus outgrows git.

more in playbook: Designing agent systems
by read2 min views5 publishedDec 4, 2026

ENGINEERING

By Subhojit Banerjee (Staff Engineering) · Dec 2026 · 4 min read

Before reaching for Postgres, MongoDB, or a graph database, ask what properties an agent knowledge store actually needs. Git already provides almost all of them.

The question we get most often about our Kafka copilot is why we store its knowledge as markdown files in git instead of MongoDB, Postgres, or a graph database.

Why Git Fits Before a Database Does #

Git already has the properties a governed knowledge store needs, and a database would force us to rebuild them:

  • Review is built in. Every change is a pull request. A database with a write API creates a path around the review gate, and sooner or later something writes to it directly.
  • It acts as a transaction-time database. Git log, blame, and checking out a past commit answer what the agent knew during last Tuesday’s incident for free.
  • Tests stay hermetic. The whole corpus fits in memory, so CI runs with no external services, no network calls, and no flakiness.
  • Everyone can edit it. Any SRE can fix a runbook without learning a query language or a custom note format.

Two Rules That Prevent Drift #

Two rules keep markdown in git from turning into an unmanageable pile. First, relation types come from a closed list (such as ownedBy, consumes, and supersedes). Open-ended vocabularies drift, and nearly every failed knowledge-graph project breaks right there. Second, text is the source of truth. Any index or graph we add later is derived from the text and can be rebuilt at any time.

Netflix’s ontology team reached a similar conclusion at much larger scale: they keep their ontology as code, versioned and reviewed through pull requests, and every harvest writes a diff-friendly text copy that proved far more useful for debugging than expected.

A database becomes worth it once the corpus genuinely outgrows git. For operational runbooks and a few thousand entities, git is simpler, safer, and easier to test.

Key Takeaways #

  • Use git pull requests as the structural review gate for agent knowledge.
  • Restrict entity relationships to a closed vocabulary so metadata cannot drift.
  • Keep plain text as the source of truth and treat any search index or graph as a rebuildable artifact.
── more in #ai-agents 4 stories · sorted by recency
── more on @subhojit banerjee 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/we-store-our-agent-s…] indexed:0 read:2min 2026-12-04 · —