{"slug": "we-store-our-agent-s-knowledge-in-markdown-and-git-on-purpose", "title": "We Store Our Agent's Knowledge in Markdown and Git on Purpose", "summary": "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.", "body_md": "ENGINEERING\n\n# We Store Our Agent's Knowledge in Markdown and Git, on Purpose\n\nBy Subhojit Banerjee (Staff Engineering) · Dec 2026 · 4 min read\n\nBefore reaching for Postgres, MongoDB, or a graph database, ask what properties an agent knowledge store actually needs. Git already provides almost all of them.\n\nThe 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.\n\n## Why Git Fits Before a Database Does\n\nGit already has the properties a governed knowledge store needs, and a database would force us to rebuild them:\n\n- 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.\n- 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.\n- Tests stay hermetic. The whole corpus fits in memory, so CI runs with no external services, no network calls, and no flakiness.\n- Everyone can edit it. Any SRE can fix a runbook without learning a query language or a custom note format.\n\n## Two Rules That Prevent Drift\n\nTwo 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.\n\nNetflix’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.\n\nA 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.\n\n## Key Takeaways\n\n- Use git pull requests as the structural review gate for agent knowledge.\n- Restrict entity relationships to a closed vocabulary so metadata cannot drift.\n- Keep plain text as the source of truth and treat any search index or graph as a rebuildable artifact.", "url": "https://wpnews.pro/news/we-store-our-agent-s-knowledge-in-markdown-and-git-on-purpose", "canonical_source": "https://www.abundanceai.com/insights/agent-knowledge-in-markdown-and-git/", "published_at": "2026-12-04 22:44:40+00:00", "updated_at": "2026-12-04 23:15:27.262825+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Subhojit Banerjee", "Netflix", "Kafka", "git", "MongoDB", "Postgres"], "also_reported_by": [], "takeaway": "Store agent knowledge as markdown in git with a closed relation vocabulary (ownedBy, consumes, supersedes) and treat any index or graph as a rebuildable artifact, which keeps the corpus in memory for hermetic CI and makes git log and blame answer what the agent knew at any past commit.", "recommendation": {"advice": "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.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/we-store-our-agent-s-knowledge-in-markdown-and-git-on-purpose", "markdown": "https://wpnews.pro/news/we-store-our-agent-s-knowledge-in-markdown-and-git-on-purpose.md", "text": "https://wpnews.pro/news/we-store-our-agent-s-knowledge-in-markdown-and-git-on-purpose.txt", "jsonld": "https://wpnews.pro/news/we-store-our-agent-s-knowledge-in-markdown-and-git-on-purpose.jsonld"}}