
I Built a Tool That Updates Your Docs Every Time You Commit Code
I recently built Codebase Cortex for the Notion MCP Challenge — an AI pipeline that watches your git commits and updates your Notion docs automatically. Five agents, semantic search, section-level merging. It worked. But it bothered me that the first thing you needed was a Notion workspace. I wanted automated documentation without any platform dependency — just markdown files in my repo, version-controlled and diffable. So I rebuilt the whole thing. Version 0.2 is local-first — your docs are plain markdown files in docs/ . No cloud accounts, no API keys for a docs platform, no internet connection needed. What It Does You commit code. Cortex analyzes the diff, finds related documentation via semantic search, and updates only the sections that changed. Unchanged sections stay byte-for-byte identical. Git Commit → CodeAnalyzer → SemanticFinder → SectionRouter → DocWriter → DocValidator → TOCGenerator → TaskCreator → SprintReporter → docs/ Nine agents. Each one does one thing. The pipeline
Continue reading on Dev.to
Opens in a new tab




