<?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: Shreyansh Surana</title>
    <description>The latest articles on DEV Community by Shreyansh Surana (@shreyansh2025).</description>
    <link>https://dev.to/shreyansh2025</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%2F4167618%2Ff3f567e7-844e-413b-b6ab-a6a032272563.png</url>
      <title>DEV Community: Shreyansh Surana</title>
      <link>https://dev.to/shreyansh2025</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreyansh2025"/>
    <language>en</language>
    <item>
      <title>I Built RepoSéance 👻: Bringing Forgotten Codebases Back to Life with Local AI</title>
      <dc:creator>Shreyansh Surana</dc:creator>
      <pubDate>Tue, 27 Oct 2026 16:54:34 +0000</pubDate>
      <link>https://dev.to/shreyansh2025/i-built-reposeance-bringing-forgotten-codebases-back-to-life-with-local-ai-p47</link>
      <guid>https://dev.to/shreyansh2025/i-built-reposeance-bringing-forgotten-codebases-back-to-life-with-local-ai-p47</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built &lt;strong&gt;RepoSéance 👻&lt;/strong&gt;, a local AI code archaeology tool that helps developers rediscover the story behind forgotten repositories.&lt;/p&gt;

&lt;p&gt;Have you ever opened an old project and wondered why you created a particular file, what you left unfinished, or what you were planning to build next?&lt;/p&gt;

&lt;p&gt;Repositories accumulate TODOs, FIXMEs, HACK markers, undocumented decisions, and unfinished ideas. When we return to them months later, the original context can feel lost.&lt;/p&gt;

&lt;p&gt;RepoSéance helps bring that context back.&lt;/p&gt;

&lt;p&gt;It scans a repository for unfinished-work markers, examines available project documentation and Git history, and uses an open-weight AI model to turn the collected evidence into a readable report.&lt;/p&gt;

&lt;p&gt;The report helps developers understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What a project appears to do.&lt;/li&gt;
&lt;li&gt;Which unfinished tasks deserve investigation.&lt;/li&gt;
&lt;li&gt;What the available Git history tells us.&lt;/li&gt;
&lt;li&gt;What practical steps could help revive the project.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It can also export the findings as a Markdown report for future reference.&lt;/p&gt;

&lt;p&gt;I chose the name RepoSéance because the experience feels a little like summoning the ghosts of old code: recovering clues about decisions and ideas that might otherwise be forgotten.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Project demo:&lt;/strong&gt; &lt;a href="https://drive.google.com/file/d/1uiXG9L_QJ0nMp-QOL2Fj3AXKK3Nie9Oc/view?usp=sharing" rel="noopener noreferrer"&gt;https://drive.google.com/file/d/1uiXG9L_QJ0nMp-QOL2Fj3AXKK3Nie9Oc/view?usp=sharing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo shows RepoSéance scanning a repository, presenting its findings, generating an AI-assisted report, and helping identify the next steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Actions:&lt;/strong&gt; The repository also includes an automated test workflow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Shreyansh2025/repo-seance/actions" rel="noopener noreferrer"&gt;View GitHub Actions&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/Shreyansh2025/repo-seance" rel="noopener noreferrer"&gt;https://github.com/Shreyansh2025/repo-seance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository includes the application code, frontend, FastAPI backend, tests, setup instructions, and GitHub Actions workflow.&lt;/p&gt;

&lt;p&gt;The project is designed to inspect repository evidence without executing or modifying the code being inspected.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built RepoSéance using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python&lt;/strong&gt; for repository scanning and application logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI&lt;/strong&gt; for the backend API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama&lt;/strong&gt; to run the AI model locally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemma 3 1B&lt;/strong&gt; for AI-assisted repository analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTML, CSS, and JavaScript&lt;/strong&gt; for the interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git&lt;/strong&gt; to examine repository history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Actions&lt;/strong&gt; to automate testing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The workflow is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The user selects a local repository.&lt;/li&gt;
&lt;li&gt;RepoSéance collects evidence from available documentation, unfinished-work markers, and Git history.&lt;/li&gt;
&lt;li&gt;The application sends the collected context to Gemma through the local Ollama API.&lt;/li&gt;
&lt;li&gt;Gemma generates a structured explanation and suggests practical next steps.&lt;/li&gt;
&lt;li&gt;The application presents the findings and allows the report to be exported as Markdown.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One important lesson came from testing the project: an AI-generated explanation can sound convincing even when the available evidence does not support it.&lt;/p&gt;

&lt;p&gt;I encountered this problem when an early report described Git commits that were not present in the sample repository. I corrected the history handling and added regression tests so that the application would not present unsupported commit history as fact.&lt;/p&gt;

&lt;p&gt;The project now has 12 passing automated tests in my local test run. I also published the repository with a GitHub Actions workflow to automate testing.&lt;/p&gt;

&lt;p&gt;This reinforced an important principle for me: AI-assisted code analysis should distinguish what the application actually found from what the model merely infers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;I chose an open-weight model because I wanted RepoSéance to be useful without requiring every repository analysis to go through a third-party AI API.&lt;/p&gt;

&lt;p&gt;Running Gemma locally through Ollama gives the application several advantages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy:&lt;/strong&gt; Source code and repository notes may contain sensitive information. Local inference lets the application analyze that material without sending it to an external AI model API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Offline capability:&lt;/strong&gt; After the model and dependencies have been downloaded, the analysis can run without an internet connection, provided the local services are running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Model control:&lt;/strong&gt; Developers can experiment with compatible models and adjust the analysis workflow as the project evolves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reproducibility and learning:&lt;/strong&gt; I can inspect how repository evidence is collected, what context reaches the model, and how its output is presented instead of treating the AI service as a black box.&lt;/p&gt;

&lt;p&gt;There are trade-offs. A local model uses the computer's memory and processing power, and it may misunderstand code or suggest incorrect next steps. Repository findings need to be checked against the actual files and history.&lt;/p&gt;

&lt;p&gt;For RepoSéance, open innovation is not just about using a model with open weights. It is about having control over the workflow, the data, and how the tool can evolve.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Every abandoned repository has a small story.&lt;/p&gt;

&lt;p&gt;Maybe it was a weekend experiment. Maybe it was an ambitious idea that ran out of time. Maybe it contains a TODO that made perfect sense when it was written but has become mysterious months later.&lt;/p&gt;

&lt;p&gt;The code remains, but the context fades.&lt;/p&gt;

&lt;p&gt;RepoSéance is my attempt to recover some of that lost context. Rather than pretending AI can know everything about a project's past, it uses the available evidence to help developers reconstruct the story and decide what to do next.&lt;/p&gt;

&lt;p&gt;The project fits the &lt;em&gt;Ghost in the Machine&lt;/em&gt; theme because the ghosts aren't supernatural. They are unfinished ideas, forgotten decisions, and clues left behind in code.&lt;/p&gt;

&lt;p&gt;Sometimes, bringing a project back to life begins with one small question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What was I trying to build here?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma — $200:&lt;/strong&gt; Gemma is the core model used to turn repository evidence into an explanation and revival plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of GitHub Copilot — $100:&lt;/strong&gt; The project includes a GitHub Actions workflow for automated testing, which aligns with the category's stated automation option.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Built for Hacktoberfest 2026 — Week 4: &lt;em&gt;Ghost in the Machine&lt;/em&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  devchallenge #hf26challenge #gemma #opensource #python
&lt;/h1&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>I Built StackTrace Sloth: A Calmer Way to Understand Programming Errors 🦥</title>
      <dc:creator>Shreyansh Surana</dc:creator>
      <pubDate>Sat, 24 Oct 2026 14:33:54 +0000</pubDate>
      <link>https://dev.to/shreyansh2025/i-built-stacktrace-sloth-a-calmer-way-to-understand-programming-errors-3b1p</link>
      <guid>https://dev.to/shreyansh2025/i-built-stacktrace-sloth-a-calmer-way-to-understand-programming-errors-3b1p</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built &lt;strong&gt;StackTrace Sloth 🦥&lt;/strong&gt;, a beginner-friendly AI debugging assistant that helps developers understand confusing error messages without spending too much time searching for explanations.&lt;/p&gt;

&lt;p&gt;You can paste a Python error or traceback, and the application generates a plain-English explanation, identifies the likely cause, and suggests practical debugging steps.&lt;/p&gt;

&lt;p&gt;I wanted to make debugging feel less frustrating, especially for beginners who are still learning how to interpret errors.&lt;/p&gt;

&lt;p&gt;The idea behind the project is simple: spend less time struggling to understand an error and more time learning how to fix it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Local demo:&lt;/strong&gt; The application currently runs on my computer.&lt;/p&gt;

&lt;p&gt;I'll include a screenshot or short screen recording showing how StackTrace Sloth analyzes an error .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo link:&lt;/strong&gt; &lt;a href="https://drive.google.com/file/d/18p2HuNBh7gKllrKSCIH8XKpjD6NWrocJ/view?usp=sharing" rel="noopener noreferrer"&gt;https://drive.google.com/file/d/18p2HuNBh7gKllrKSCIH8XKpjD6NWrocJ/view?usp=sharing&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/Shreyansh2025/stacktrace-sloth" rel="noopener noreferrer"&gt;https://github.com/Shreyansh2025/stacktrace-sloth&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository contains the FastAPI backend, frontend, setup instructions, and the code that connects the application to the local AI model.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built StackTrace Sloth using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python&lt;/strong&gt; for the backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI&lt;/strong&gt; for the API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama&lt;/strong&gt; to run the model locally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemma 3 1B&lt;/strong&gt; to generate debugging explanations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTML, CSS, and JavaScript&lt;/strong&gt; for the frontend.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The workflow is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The user pastes an error message into the web interface.&lt;/li&gt;
&lt;li&gt;FastAPI receives the error text.&lt;/li&gt;
&lt;li&gt;The backend sends it to Ollama running locally.&lt;/li&gt;
&lt;li&gt;Gemma generates an explanation and suggested debugging steps.&lt;/li&gt;
&lt;li&gt;The frontend displays the result.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The application analyzes error text rather than executing the submitted code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;I chose an open-weight model because I wanted to explore AI without depending on a third-party AI API for every request.&lt;/p&gt;

&lt;p&gt;Running Gemma locally through Ollama gives this project several advantages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy:&lt;/strong&gt; Error logs can contain file paths, code snippets, and other sensitive information. Local inference allows analysis without sending those logs to an external AI API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Control:&lt;/strong&gt; Developers can choose which compatible model to run and experiment with different models as the project evolves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Offline use:&lt;/strong&gt; Once the model and required dependencies are installed, the application can perform inference without an internet connection, provided the local services are running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Learning:&lt;/strong&gt; Using a local model helped me understand how an AI model, backend API, and frontend work together.&lt;/p&gt;

&lt;p&gt;Local inference also has trade-offs. It consumes memory and processing power, and the model may generate incorrect suggestions. Its explanations should be treated as guidance, not guaranteed fixes.&lt;/p&gt;

&lt;p&gt;For me, open innovation means having more control over how AI tools work, where data goes, and how they can be improved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Best Use of Gemma — $200&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm entering this category because Gemma is the core model used to generate the debugging explanations in StackTrace Sloth.&lt;/p&gt;

&lt;h1&gt;
  
  
  devchallenge #hf26challenge
&lt;/h1&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>I Built TraceGraph to Explain What Breaks When a Service Goes Down</title>
      <dc:creator>Shreyansh Surana</dc:creator>
      <pubDate>Sat, 17 Oct 2026 14:30:00 +0000</pubDate>
      <link>https://dev.to/shreyansh2025/i-built-tracegraph-to-explain-what-breaks-when-a-service-goes-down-46dl</link>
      <guid>https://dev.to/shreyansh2025/i-built-tracegraph-to-explain-what-breaks-when-a-service-goes-down-46dl</guid>
      <description>&lt;p&gt;When a database becomes unavailable, the first question is obvious: &lt;em&gt;what is down?&lt;/em&gt; The harder question is: &lt;strong&gt;what else could be affected, and how can we explain the connection?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That question led me to build &lt;strong&gt;TraceGraph&lt;/strong&gt;, a graph-powered incident-impact investigation prototype for &lt;a href="https://www.wemakedevs.org/hackathons/falkordb" rel="noopener noreferrer"&gt;Graph Hacks 2026&lt;/a&gt;, using FalkorDB as the source of truth for service dependencies.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/Shreyansh2025/tracegraph-falkordb-hackathon" rel="noopener noreferrer"&gt;TraceGraph on GitHub&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demo:&lt;/strong&gt; &lt;a href="https://drive.google.com/file/d/14Ei0qs_gRllNWaGJ_bcJq3BEHmF2OVZB/view?usp=sharing" rel="noopener noreferrer"&gt;https://drive.google.com/file/d/14Ei0qs_gRllNWaGJ_bcJq3BEHmF2OVZB/view?usp=sharing&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The problem: impact is about relationships
&lt;/h2&gt;

&lt;p&gt;A software system is not just a list of services. The API gateway may depend on the order service, which depends on inventory, which depends on a database. If that database fails, the impact can travel through several layers.&lt;/p&gt;

&lt;p&gt;Looking at each component separately doesn't make those connections easy to see. TraceGraph models the dependencies explicitly and follows them to answer a focused question: &lt;em&gt;if this component becomes unavailable, which other components have a dependency path to it?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The project uses synthetic demo data. It does not connect to production telemetry or confirm real outages; it demonstrates how graph relationships can support an explainable investigation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Model the dependencies in FalkorDB
&lt;/h2&gt;

&lt;p&gt;TraceGraph represents each application, service, worker, database, or queue as a &lt;code&gt;Component&lt;/code&gt; node. A directed &lt;code&gt;DEPENDS_ON&lt;/code&gt; edge records the dependency direction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A --&amp;gt; B
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means &lt;strong&gt;A depends on B&lt;/strong&gt;. Therefore, if B fails, A is a potential impact when a directed path exists from A to B.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Customer Web App
  -&amp;gt; API Gateway
  -&amp;gt; Order Service
  -&amp;gt; Inventory Service
  -&amp;gt; Inventory DB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This direction is the core design decision. A component's dependencies are not the same as the components that depend on it. TraceGraph needs to traverse dependents towards the failed component to explain potential impact.&lt;/p&gt;

&lt;h2&gt;
  
  
  The query that powers the investigation
&lt;/h2&gt;

&lt;p&gt;The backend uses a parameterized Cypher query to find paths with between one and five dependency edges:&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="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;affected:&lt;/span&gt;&lt;span class="n"&gt;Component&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="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;5&lt;/span&gt;&lt;span class="ss"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;
             &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;failed:&lt;/span&gt;&lt;span class="n"&gt;Component&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="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;affected.name&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;failed.name&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="n"&gt;affected.name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;affected_name&lt;/span&gt;&lt;span class="ss"&gt;,&lt;/span&gt;
       &lt;span class="ss"&gt;[&lt;/span&gt;&lt;span class="n"&gt;node&lt;/span&gt; &lt;span class="ow"&gt;IN&lt;/span&gt; &lt;span class="nf"&gt;nodes&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;node.name&lt;/span&gt;&lt;span class="ss"&gt;]&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;dependency_path&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;affected_name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's what matters in this query:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;DEPENDS_ON*1..5&lt;/code&gt; traverses one to five edges, bounding the search depth for this prototype.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;$name&lt;/code&gt; identifies the selected failed component as a separate query parameter instead of interpolating user text into the query.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nodes(path)&lt;/code&gt; returns the component sequence, which becomes the evidence shown to the user.&lt;/li&gt;
&lt;li&gt;The failed component is excluded from its own impact list.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Python then groups paths by affected component and removes duplicate paths. The displayed impact count is the number of distinct affected components, not the number of paths.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the demo shows
&lt;/h2&gt;

&lt;p&gt;The UI lets a user select a component and optionally ask a natural-language question. For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What happens if Inventory DB goes down?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In the sample graph, TraceGraph identifies five potentially affected components: &lt;strong&gt;Inventory Service, Order Service, API Gateway, Customer Web App, and Analytics Worker&lt;/strong&gt;. It also displays the dependency path behind each result.&lt;/p&gt;

&lt;p&gt;A second scenario helps check the edge direction. If Order Service is selected as unavailable, the demo graph identifies &lt;strong&gt;API Gateway and Customer Web App&lt;/strong&gt; as potential impacts. Inventory Service and other dependencies that Order Service uses are not automatically classified as affected by its failure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture: keep each part focused
&lt;/h2&gt;

&lt;p&gt;I kept the implementation small and split it into clear responsibilities:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Streamlit (&lt;code&gt;ui.py&lt;/code&gt;)&lt;/strong&gt; displays the component selector, question input, impact summary, and evidence paths.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI (&lt;code&gt;app/main.py&lt;/code&gt;)&lt;/strong&gt; provides endpoints including &lt;code&gt;GET /components&lt;/code&gt;, &lt;code&gt;GET /impact/{component_name}&lt;/code&gt;, &lt;code&gt;POST /ask&lt;/code&gt;, and &lt;code&gt;GET /health&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Question handling (&lt;code&gt;app/agent.py&lt;/code&gt;)&lt;/strong&gt; resolves a component mentioned in the question. Without an API key, local name matching keeps the demo runnable. Optional Groq tool calling can request graph-backed tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph tools (&lt;code&gt;app/tools.py&lt;/code&gt;)&lt;/strong&gt; expose component listing and impact tracing as explicit functions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FalkorDB (&lt;code&gt;app/database.py&lt;/code&gt;)&lt;/strong&gt; stores the nodes and edges, runs Cypher, and returns the paths used in the answer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The language model, when configured, helps resolve the question and request a tool. Python validates and executes the tool call. The impact result still comes from FalkorDB rather than being invented by the model. Without Groq credentials, the local resolver works as a fallback.&lt;/p&gt;

&lt;p&gt;Docker Compose runs FalkorDB, the FastAPI backend, and Streamlit as separate services. For local development, the published ports are bound to &lt;code&gt;127.0.0.1&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the behavior, not just the screen
&lt;/h2&gt;

&lt;p&gt;I added checks for the graph data, agent behavior, and graph-backed impact results. The tests cover the expected Inventory DB impact set, dependency direction for Order Service, unknown-component handling, and a representative multi-hop path.&lt;/p&gt;

&lt;p&gt;My local test run completed with &lt;strong&gt;8 tests passing&lt;/strong&gt;. The integration tests are opt-in and need a running FalkorDB instance, so the result is meaningful only when those tests are enabled and the database is reachable.&lt;/p&gt;

&lt;p&gt;During development I hit a couple of useful bugs. One test assertion treated a list of paths like a dictionary; inspecting the actual data shape showed that the assertion—not the query—was wrong. I also created a Python module under the wrong folder, which caused an import error until I moved it into the root &lt;code&gt;app&lt;/code&gt; package.&lt;/p&gt;

&lt;p&gt;Those errors reinforced two habits: inspect the actual value at a boundary, and make sure Python package paths match the imports the code uses. Running Docker locally also helped me understand how a UI, API, and graph database communicate as separate services.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would improve next
&lt;/h2&gt;

&lt;p&gt;TraceGraph is a prototype, not a production incident platform. Its dependency graph is synthetic and manually defined, it doesn't ingest metrics or logs, and a path indicates a possible dependency impact rather than a verified outage. Its text-based evidence paths could also be complemented by an interactive graph view.&lt;/p&gt;

&lt;p&gt;Next, I would connect the model to a service catalog or deployment metadata source, test more branching and hop-limit scenarios, add graph visualization, and evaluate results against known incident cases. A production deployment would also need appropriate authentication, access controls, persistent data, and operational monitoring.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run TraceGraph locally
&lt;/h2&gt;

&lt;p&gt;You'll need Docker Desktop with Docker Compose. From the project root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Shreyansh2025/tracegraph-falkordb-hackathon.git
&lt;span class="nb"&gt;cd &lt;/span&gt;tracegraph-falkordb-hackathon
docker compose up &lt;span class="nt"&gt;--build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UI:&lt;/strong&gt; &lt;a href="http://localhost:8501" rel="noopener noreferrer"&gt;http://localhost:8501&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API docs:&lt;/strong&gt; &lt;a href="http://localhost:8000/docs" rel="noopener noreferrer"&gt;http://localhost:8000/docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Health check:&lt;/strong&gt; &lt;a href="http://localhost:8000/health" rel="noopener noreferrer"&gt;http://localhost:8000/health&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The repository README explains environment configuration and how to run the tests. Keep secrets in a local &lt;code&gt;.env&lt;/code&gt; file; never commit API keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  The main thing I learned
&lt;/h2&gt;

&lt;p&gt;A graph is most useful here when it does real work. FalkorDB is not just storing data for a diagram: its directed relationships and traversal determine which components are returned and supply the path behind each result. The UI makes that result easy to inspect, while optional AI assistance helps people ask questions and initiate graph-backed operations.&lt;/p&gt;

&lt;p&gt;Building TraceGraph gave me hands-on practice with graph modeling, Cypher, FastAPI, Streamlit, Docker Compose, test debugging, and explaining the limits of a prototype. The next challenge is connecting the model to real dependency data and proving that its results remain useful on more realistic incident scenarios.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI assistance disclosure
&lt;/h3&gt;

&lt;p&gt;AI coding assistance was used to help scaffold, debug, review, test, and document parts of the project. I ran the application and tests locally, reviewed the code, and remain responsible for understanding and explaining its behavior, graph model, query, and limitations.&lt;/p&gt;

</description>
      <category>falkordb</category>
      <category>python</category>
      <category>ai</category>
      <category>hackathon</category>
    </item>
    <item>
      <title>Intro</title>
      <dc:creator>Shreyansh Surana</dc:creator>
      <pubDate>Wed, 14 Oct 2026 05:22:49 +0000</pubDate>
      <link>https://dev.to/shreyansh2025/intro-2gmh</link>
      <guid>https://dev.to/shreyansh2025/intro-2gmh</guid>
      <description>&lt;p&gt;Hello , everyone i am shreyansh new in opensource excited to start this journay&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
