<?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: Vidisha Gupta</title>
    <description>The latest articles on DEV Community by Vidisha Gupta (@vidisha_gupta_fd25c9a7087).</description>
    <link>https://dev.to/vidisha_gupta_fd25c9a7087</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%2F4189491%2F082bb0da-d7c7-4c5b-840d-2c29de080948.png</url>
      <title>DEV Community: Vidisha Gupta</title>
      <link>https://dev.to/vidisha_gupta_fd25c9a7087</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vidisha_gupta_fd25c9a7087"/>
    <language>en</language>
    <item>
      <title>"Incident Brain: Giving an AI Agent a Graph Memory for Production Outages" published: true</title>
      <dc:creator>Vidisha Gupta</dc:creator>
      <pubDate>Sat, 17 Oct 2026 17:36:21 +0000</pubDate>
      <link>https://dev.to/vidisha_gupta_fd25c9a7087/incident-brain-giving-an-ai-agent-a-graph-memory-for-production-outagespublished-true-3889</link>
      <guid>https://dev.to/vidisha_gupta_fd25c9a7087/incident-brain-giving-an-ai-agent-a-graph-memory-for-production-outagespublished-true-3889</guid>
      <description>&lt;p&gt;When production goes down, the first ten minutes are not about fixing. They are about asking questions. What else will break? Who knows this system? Has this happened before?&lt;/p&gt;

&lt;p&gt;The answers exist, but they are scattered across a service map, a team chart and old postmortems. Someone has to stitch them together by hand, under pressure. That is the problem I wanted to solve for &lt;strong&gt;Graph Hacks&lt;/strong&gt; by WeMakeDevs and FalkorDB.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Incident Brain&lt;/strong&gt; is an agent that keeps its context in a FalkorDB graph. You type something like "payments-api is returning 500 errors", and it answers with:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Blast radius:&lt;/strong&gt; every downstream service affected, by hop distance&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who to ask:&lt;/strong&gt; people ranked by ownership and hands-on experience&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Similar past incidents:&lt;/strong&gt; root cause, fix and who fixed it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proof:&lt;/strong&gt; the exact nodes, edges and Cypher behind each claim, highlighted in a live graph&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then you can log the incident. It is written back to the graph, so the next similar outage finds it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a graph?
&lt;/h2&gt;

&lt;p&gt;These questions are all about connections. "What breaks if this service fails?" is a multi-hop problem. In SQL it means recursive joins. In FalkorDB it is one readable query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cypher"&gt;&lt;code&gt;&lt;span class="k"&gt;MATCH&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;f:&lt;/span&gt;&lt;span class="n"&gt;Service&lt;/span&gt; &lt;span class="ss"&gt;{&lt;/span&gt;&lt;span class="py"&gt;name:&lt;/span&gt; &lt;span class="n"&gt;$name&lt;/span&gt;&lt;span class="ss"&gt;})&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="ss"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;:DEPENDS_ON&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="o"&gt;..&lt;/span&gt;&lt;span class="m"&gt;4&lt;/span&gt;&lt;span class="ss"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;s:&lt;/span&gt;&lt;span class="n"&gt;Service&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="k"&gt;DISTINCT&lt;/span&gt; &lt;span class="n"&gt;s.name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That single query became one tool the agent can call. The agent never guesses. Every fact in its answer comes from a tool that ran a Cypher query and returned real nodes and edges.&lt;/p&gt;

&lt;h2&gt;
  
  
  How FalkorDB is used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-hop traversal&lt;/strong&gt; for the blast radius&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;shortestPath&lt;/strong&gt; to explain why one service impacts another&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph algorithms&lt;/strong&gt; (PageRank) to rank affected services by importance&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Persistent memory:&lt;/strong&gt; each logged incident becomes a node with AFFECTED, FIXED_BY and SIMILAR_TO edges, so memory survives restarts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-graph support:&lt;/strong&gt; a shared company graph plus a separate memory graph per team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you remove FalkorDB, the product stops working. The graph is not decoration, it is the brain.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Python, FastAPI, the official FalkorDB Python client, LLM tool calling, a force-directed graph view in the browser, and Docker. The whole thing starts with one command: &lt;code&gt;docker compose up&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A challenge I hit
&lt;/h2&gt;

&lt;p&gt;[Replace this with your real challenge. Example: "My first version let the model answer from its own knowledge, and it invented a service that did not exist. I fixed it by forcing every answer to come from tool results and returning node IDs as sources." Use whatever really happened.]&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;[Write 2 or 3 honest lines from your experience. Example: "Designing the graph schema first made everything else easier. Once relationships were clear, the tools were small and simple."]&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Live demo:
[&lt;a href="https://incident-brain-ashen.vercel.app/" rel="noopener noreferrer"&gt;https://incident-brain-ashen.vercel.app/&lt;/a&gt; ]&lt;/li&gt;
&lt;li&gt;GitHub: [&lt;a href="https://github.com/vidishagupta/incident-brain" rel="noopener noreferrer"&gt;https://github.com/vidishagupta/incident-brain&lt;/a&gt; ]&lt;/li&gt;
&lt;li&gt;Demo video: [&lt;a href="https://youtu.be/tgIFDHjhuek?si=hZQJeaH4cgNR8uqV" rel="noopener noreferrer"&gt;https://youtu.be/tgIFDHjhuek?si=hZQJeaH4cgNR8uqV&lt;/a&gt; ]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Built for &lt;strong&gt;#GraphHacks&lt;/strong&gt; with FalkorDB and WeMakeDevs. If you build agents, try giving them a graph. The difference between guessing and following relationships is big.&lt;/p&gt;

</description>
      <category>falkordb</category>
      <category>ai</category>
      <category>python</category>
      <category>hackathon</category>
    </item>
  </channel>
</rss>
