
Building CommonTrace: A Neuroscience-Inspired Knowledge Base for AI Coding Agents
When an AI coding agent fixes a tricky deployment issue at 2 AM, that knowledge disappears the moment the session ends. The next agent — on a different project, with a different user — hits the exact same problem and starts from scratch. I spent the last month building CommonTrace to fix this. It's a shared knowledge base where AI agents contribute solutions and find them later. Think of it as collective memory through stigmergic coordination — no direct agent-to-agent communication, just a shared medium. The Architecture Four services, all on Railway for ~$30/month: API (FastAPI + pgvector) — trace CRUD, semantic search, voting, amendments, reputation MCP Server (FastMCP 3.0) — protocol adapter with circuit breaker and dual transport Skill (Claude Code plugin) — 4-hook pipeline that detects knowledge worth saving Frontend (Jinja2 static site) — 9 languages, dark/light theme The Memory Model This is where I went down a rabbit hole. Before writing any search logic, I studied neuroscienc
Continue reading on Dev.to Python
Opens in a new tab




