<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Milenko Mitrovic</title>
    <description>The latest articles on DEV Community by Milenko Mitrovic (@subzone).</description>
    <link>https://dev.to/subzone</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3991911%2F3ea6866d-a142-41b0-9bb1-b2568cc7b45b.jpg</url>
      <title>DEV Community: Milenko Mitrovic</title>
      <link>https://dev.to/subzone</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/subzone"/>
    <language>en</language>
    <item>
      <title>Stop Re-explaining Your Codebase to AI — Give It Permanent Memory Instead</title>
      <dc:creator>Milenko Mitrovic</dc:creator>
      <pubDate>Fri, 19 Jun 2026 05:52:16 +0000</pubDate>
      <link>https://dev.to/subzone/stop-re-explaining-your-codebase-to-ai-give-it-permanent-memory-instead-3bpd</link>
      <guid>https://dev.to/subzone/stop-re-explaining-your-codebase-to-ai-give-it-permanent-memory-instead-3bpd</guid>
      <description>&lt;h1&gt;
  
  
  I Built a Local Knowledge Graph That Tells AI Agents "What Breaks If I Change This?"
&lt;/h1&gt;

&lt;p&gt;Every time I start a new AI coding session, the same thing happens: I re-explain my architecture, my conventions, my service dependencies. The AI doesn't remember. It doesn't know that &lt;code&gt;store.py&lt;/code&gt; is imported by 8 other modules, that Milenko owns the auth service, or that postgres is a single point of failure.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Knowledge Master&lt;/strong&gt; — a local knowledge graph that gives AI agents permanent memory of your codebase.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes it different from "just another RAG"
&lt;/h2&gt;

&lt;p&gt;Most RAG tools embed your code into vectors and return "similar chunks." That's fancy grep. It doesn't understand relationships.&lt;/p&gt;

&lt;p&gt;Knowledge Master builds an actual &lt;strong&gt;graph&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Repo → USES_TECH → Python, FastAPI, Docker
Repo → DEFINES_SERVICE → auth-service → DEPENDS_ON → postgres
Person → AUTHORED → Document → IMPORTS → Document
Function → DEFINED_IN → File → IN_REPO → Repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This lets it answer questions that flat search can't:&lt;/p&gt;

&lt;h3&gt;
  
  
  "What breaks if I change this?"
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;km blast-radius store.py
💥 Blast radius: store.py
├── Definite impact
│   ├── 📄 cli.py &lt;span class="o"&gt;(&lt;/span&gt;IMPORTS&lt;span class="o"&gt;)&lt;/span&gt;
│   ├── 📄 server.py &lt;span class="o"&gt;(&lt;/span&gt;IMPORTS&lt;span class="o"&gt;)&lt;/span&gt;
│   ├── 📄 web.py &lt;span class="o"&gt;(&lt;/span&gt;IMPORTS&lt;span class="o"&gt;)&lt;/span&gt;
│   ├── 📄 api.py &lt;span class="o"&gt;(&lt;/span&gt;IMPORTS&lt;span class="o"&gt;)&lt;/span&gt;
│   └── 📄 connectors.py &lt;span class="o"&gt;(&lt;/span&gt;IMPORTS&lt;span class="o"&gt;)&lt;/span&gt;
├── Likely affected
│   └── ⚙️ falkordb &lt;span class="o"&gt;(&lt;/span&gt;Service, owns affected file&lt;span class="o"&gt;)&lt;/span&gt;
└── Possibly affected
    └── 👤 User
&lt;span class="o"&gt;![&lt;/span&gt; &lt;span class="o"&gt;](&lt;/span&gt;https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/mk0kohpdg09euf0ibazz.png&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;Person, AUTHORED affected file&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This uses &lt;strong&gt;real static analysis&lt;/strong&gt; — Python AST, tree-sitter for TypeScript/Go/Rust/Java/C# — to trace actual import dependencies. Not text similarity.&lt;/p&gt;

&lt;h3&gt;
  
  
  "Is it safe to touch this?"
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;km safe-to-change auth/service.py
Risk: RISKY
├── Blast radius: 12 entities
├── Test coverage: &lt;span class="nb"&gt;yes&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;3 &lt;span class="nb"&gt;test &lt;/span&gt;files&lt;span class="o"&gt;)&lt;/span&gt;
└── Affected: api.py, gateway.py, user-service...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Combines blast radius + test coverage detection into a risk score: &lt;strong&gt;safe / risky / dangerous&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  "Who owns this code?"
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;km who-owns src/payments/stripe.py
Owner: Alex &lt;span class="o"&gt;(&lt;/span&gt;weight: 0.85&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Git blame weighted by recency — recent changes count more than ancient history.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your repos
    ↓ km index
┌─────────────────────────────┐
│  FalkorDB (Graph + Vector)  │
│                             │
│  Nodes: Repo, Document,    │
│  Person, Service, Tech,    │
│  Function, Convention      │
│                             │
│  Edges: IMPORTS, DEPENDS_ON,│
│  AUTHORED, OWNS, USES_TECH │
│                             │
│  + Vector embeddings for    │
│    semantic search          │
└─────────────────────────────┘
    ↓ MCP protocol
Your AI agent (Claude, Cursor, Copilot, Kiro)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything runs locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;FalkorDB&lt;/strong&gt; — graph database with built-in vector search (single Docker container)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama&lt;/strong&gt; — local embeddings (nomic-embed-text, 274MB)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tree-sitter&lt;/strong&gt; — structural code parsing for 7 languages&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No cloud, no API keys, no data leaves your machine&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7 Languages supported
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Language&lt;/th&gt;
&lt;th&gt;Static Analysis&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Python&lt;/td&gt;
&lt;td&gt;AST import graph, function/class extraction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript/JS&lt;/td&gt;
&lt;td&gt;tree-sitter imports, exports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Go&lt;/td&gt;
&lt;td&gt;tree-sitter imports, exported functions/types&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rust&lt;/td&gt;
&lt;td&gt;tree-sitter use/mod, pub items&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Java&lt;/td&gt;
&lt;td&gt;tree-sitter imports, public classes/methods&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C#&lt;/td&gt;
&lt;td&gt;tree-sitter using directives, public members&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terraform&lt;/td&gt;
&lt;td&gt;Module dependencies, resource/variable extraction&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  MCP Server — AI agents use it directly
&lt;/h2&gt;

&lt;p&gt;Knowledge Master exposes 8 tools via the Model Context Protocol:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What the AI agent can do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;search&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Semantic search with re-ranking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;blast_radius&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;"What breaks if I change X?"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;safe_to_change&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Risk assessment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;who_owns&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;File ownership&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;check_conventions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;"Does this follow our patterns?"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;index_repo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add a new repo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;index_directory&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add docs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Knowledge base stats&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Setup for any AI tool is one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;km setup cursor    &lt;span class="c"&gt;# or claude, kiro, copilot, amazonq&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx &lt;span class="nb"&gt;install &lt;/span&gt;knowledge-master
km start
km index ~/your-project
km search &lt;span class="s2"&gt;"how does authentication work"&lt;/span&gt;
km blast-radius auth/service.py
km safe-to-change auth/service.py
km serve  &lt;span class="c"&gt;# web UI with graph visualization&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/subzone/knowledge-master" rel="noopener noreferrer"&gt;github.com/subzone/knowledge-master&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI&lt;/strong&gt;: &lt;code&gt;pipx install knowledge-master&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docs&lt;/strong&gt;: &lt;a href="https://subzone.github.io/knowledge-master" rel="noopener noreferrer"&gt;subzone.github.io/knowledge-master&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I'd love feedback — especially on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What languages/frameworks should be prioritized next?&lt;/li&gt;
&lt;li&gt;Would you prefer deeper call-graph analysis or more connectors (Slack, Jira)?&lt;/li&gt;
&lt;li&gt;Is the MCP integration the right bet, or would a VS Code extension be more useful?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed, open source, built for developers who are tired of re-explaining their codebase to AI.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devtools</category>
      <category>opensource</category>
      <category>python</category>
    </item>
  </channel>
</rss>
