<?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: Devansh Mehta</title>
    <description>The latest articles on DEV Community by Devansh Mehta (@devansh_mehta_46c51759988).</description>
    <link>https://dev.to/devansh_mehta_46c51759988</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%2F4159176%2Ffb1ea9d6-8ccb-40a2-84b5-3186d01cce19.png</url>
      <title>DEV Community: Devansh Mehta</title>
      <link>https://dev.to/devansh_mehta_46c51759988</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devansh_mehta_46c51759988"/>
    <language>en</language>
    <item>
      <title>Night-Owl: An AI Debugger Built for Students Who Need to Understand Their Bugs</title>
      <dc:creator>Devansh Mehta</dc:creator>
      <pubDate>Sun, 04 Oct 2026 13:00:06 +0000</pubDate>
      <link>https://dev.to/devansh_mehta_46c51759988/night-owl-an-ai-debugger-built-for-students-who-need-to-understand-their-bugs-4hmd</link>
      <guid>https://dev.to/devansh_mehta_46c51759988/night-owl-an-ai-debugger-built-for-students-who-need-to-understand-their-bugs-4hmd</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Night-Owl&lt;/strong&gt; is an AI-powered systems debugging and learning platform. You paste code, logs, errors, or networking output, pick a domain (C/C++, OS/Concurrency, or Networking), and it explains what went wrong, why it happened, the evidence, the root cause, how to fix it, and the systems concept behind it. It also generates an &lt;strong&gt;Exam Mode&lt;/strong&gt; summary with a definition, a short exam answer, and viva questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who I built it for:&lt;/strong&gt; my fellow students and friends studying Operating Systems, Computer Networks, and C/C++. Most of us have hit the same wall: you fix a bug, but you can't explain it when a professor asks in a viva.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The problem it solves:&lt;/strong&gt; systems bugs are hard because the visible error is rarely the real root cause. Take this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The interesting part isn't "it might crash". It's the chain: &lt;code&gt;delete p&lt;/code&gt; frees the memory, &lt;code&gt;p&lt;/code&gt; becomes a dangling pointer, and &lt;code&gt;*p = 20&lt;/code&gt; touches memory whose lifetime has ended. That's a use-after-free, which is undefined behavior. Generic AI fixers hand you a patch. Night-Owl walks you through that whole chain so you can understand and explain it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://night-owl-woad.vercel.app" rel="noopener noreferrer"&gt;https://night-owl-woad.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select &lt;strong&gt;C / C++&lt;/strong&gt;, paste the snippet above, and submit. On the production deployment, Night-Owl detected it as a &lt;strong&gt;Use-After-Free&lt;/strong&gt; with &lt;strong&gt;Critical&lt;/strong&gt; severity, and returned the root cause, evidence, why it happened, a suggested fix, the systems concept (dangling pointers and RAII), and Exam Mode with viva questions.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The backend is hosted on Render, so the first request after inactivity may be slow.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Devansh270" rel="noopener noreferrer"&gt;
        Devansh270
      &lt;/a&gt; / &lt;a href="https://github.com/Devansh270/Night-Owl" rel="noopener noreferrer"&gt;
        Night-Owl
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      First Hacktober 2026 project
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🦉 Night-Owl — AI Systems Debugger&lt;/h1&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Debug the systems. Understand the problem.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Night-Owl is an AI-powered systems debugging and learning platform for students and developers working with &lt;strong&gt;C/C++, Operating Systems, Concurrency, and Computer Networking&lt;/strong&gt;. Paste code, logs, errors, or network output, pick a domain, and Night-Owl explains &lt;strong&gt;what went wrong, why it happened, the evidence, the root cause, how to fix it, and how to explain it in an exam or viva&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Unlike a generic "AI code fixer", Night-Owl is built around &lt;strong&gt;understanding&lt;/strong&gt;. It combines &lt;strong&gt;deterministic analyzers&lt;/strong&gt; that collect concrete evidence with &lt;strong&gt;Google Gemini&lt;/strong&gt; that turns that evidence into a structured, teachable explanation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Devansh270/Night-Owl/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667" alt="License: MIT"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d2b19c56bf530067483d8d2756fac7800e0aef54ef4360460d778c23ccc3db2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547970655363726970742d3331373843363f6c6f676f3d74797065736372697074266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/d2b19c56bf530067483d8d2756fac7800e0aef54ef4360460d778c23ccc3db2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547970655363726970742d3331373843363f6c6f676f3d74797065736372697074266c6f676f436f6c6f723d7768697465" alt="TypeScript"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/821cd0779a3a6a2bc06648f3aa0e86a0abc72c98b7506dd120fa4b96f7d48f69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656163742d3631444146423f6c6f676f3d7265616374266c6f676f436f6c6f723d626c61636b"&gt;&lt;img src="https://camo.githubusercontent.com/821cd0779a3a6a2bc06648f3aa0e86a0abc72c98b7506dd120fa4b96f7d48f69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656163742d3631444146423f6c6f676f3d7265616374266c6f676f436f6c6f723d626c61636b" alt="React"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ef0efa27f9a3268626104d5d2aed09ab5fb94809e76ccf6f2424524c5710d8c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e6f64652e6a732d3333393933333f6c6f676f3d6e6f6465646f746a73266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/ef0efa27f9a3268626104d5d2aed09ab5fb94809e76ccf6f2424524c5710d8c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e6f64652e6a732d3333393933333f6c6f676f3d6e6f6465646f746a73266c6f676f436f6c6f723d7768697465" alt="Node.js"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d40f1442f28aa4d9dc385828b8ffbbb54a427e2a6f4474f8f4165de5168cdd7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507269736d612d3244333734383f6c6f676f3d707269736d61266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/d40f1442f28aa4d9dc385828b8ffbbb54a427e2a6f4474f8f4165de5168cdd7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507269736d612d3244333734383f6c6f676f3d707269736d61266c6f676f436f6c6f723d7768697465" alt="Prisma"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;🔗 Links&lt;/h3&gt;
&lt;/div&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🚀 &lt;strong&gt;Live Demo&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://night-owl-woad.vercel.app" rel="nofollow noopener noreferrer"&gt;night-owl-woad.vercel.app&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;⚙️ &lt;strong&gt;Backend API&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://night-owl-4rg7.onrender.com" rel="nofollow noopener noreferrer"&gt;night-owl-4rg7.onrender.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;💻 &lt;strong&gt;Repository&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/Devansh270/Night-Owl" rel="noopener noreferrer"&gt;github.com/Devansh270/Night-Owl&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🐛 &lt;strong&gt;Issues&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/Devansh270/Night-Owl/issues" rel="noopener noreferrer"&gt;github.com/Devansh270/Night-Owl/issues&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;📑 Table of Contents&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-problem" rel="noopener noreferrer"&gt;Problem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-solution" rel="noopener noreferrer"&gt;Solution&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-features" rel="noopener noreferrer"&gt;Features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-why-the-hybrid-architecture" rel="noopener noreferrer"&gt;Why the Hybrid Architecture?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#%EF%B8%8F-architecture" rel="noopener noreferrer"&gt;Architecture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-analysis-pipeline" rel="noopener noreferrer"&gt;Analysis Pipeline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#%EF%B8%8F-tech-stack" rel="noopener noreferrer"&gt;Tech Stack&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-project-structure" rel="noopener noreferrer"&gt;Project Structure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-example" rel="noopener noreferrer"&gt;Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-live-demo" rel="noopener noreferrer"&gt;Live Demo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#%EF%B8%8F-local-development" rel="noopener noreferrer"&gt;Local Development&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-api" rel="noopener noreferrer"&gt;API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devansh270/Night-Owl#-production-deployment" rel="noopener noreferrer"&gt;Production Deployment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/Devansh270/Night-Owl#-who-is-it-for" rel="noopener noreferrer"&gt;Who Is&lt;/a&gt;…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Devansh270/Night-Owl" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Repository: &lt;a href="https://github.com/Devansh270/Night-Owl" rel="noopener noreferrer"&gt;https://github.com/Devansh270/Night-Owl&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Backend API: &lt;a href="https://night-owl-4rg7.onrender.com" rel="noopener noreferrer"&gt;https://night-owl-4rg7.onrender.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;I want to be upfront: the AI layer uses &lt;strong&gt;Google Gemini&lt;/strong&gt; through the Vercel AI SDK (&lt;code&gt;@ai-sdk/google&lt;/code&gt;). That is a hosted API, not an open-weight model or local inference.&lt;/p&gt;

&lt;p&gt;What I focused on instead is making the project &lt;em&gt;not&lt;/em&gt; depend on the AI to find everything. Night-Owl uses a &lt;strong&gt;hybrid architecture: deterministic analysis plus AI explanation&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;User Input → Domain Selection → Deterministic Analyzer → Concrete Evidence
→ Gemini AI → Structured Root-Cause Explanation → Exam Mode → Database / History
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic analyzers&lt;/strong&gt; run first and collect concrete evidence. Today there are analyzers for deadlocks (&lt;code&gt;deadlockDetector.ts&lt;/code&gt;), race conditions (&lt;code&gt;raceConditionDetector.ts&lt;/code&gt;), memory errors (&lt;code&gt;memoryErrorDetector.ts&lt;/code&gt;), and networking (&lt;code&gt;networkAnalyzer.ts&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini&lt;/strong&gt; turns that evidence into a structured explanation: problem, severity, root cause, evidence, why it happened, suggested fix, concept, and Exam Mode.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History&lt;/strong&gt; stores the structured analysis with Prisma and PostgreSQL (Supabase), so you can revisit past sessions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Technologies&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;React, TypeScript, Vite, React Router, Axios, Lucide React&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;Node.js, TypeScript, Express, Mastra&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI&lt;/td&gt;
&lt;td&gt;Google Gemini, Vercel AI SDK, &lt;code&gt;@ai-sdk/google&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;PostgreSQL, Supabase, Prisma ORM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;Vercel (frontend), Render (backend), Supabase (database)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;Honestly, Night-Owl's AI layer currently relies on a closed API, so I can't claim it is fully open end to end. But open innovation still shaped it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The project itself is open source&lt;/strong&gt; under the MIT License, so any student can read how it works, run it, and learn from the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The deterministic analyzers are plain, readable code.&lt;/strong&gt; Contributors can add new ones (buffer overflow, double-free, memory leaks, starvation, livelock, DNS and ARP troubleshooting) without touching the AI at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's built on open-source tooling:&lt;/strong&gt; React, Express, Prisma, the Vercel AI SDK, and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;There's room to go further.&lt;/strong&gt; The Vercel AI SDK supports multiple model providers, so adding support for open-weight models would be a natural contribution for someone who wants to take that on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For an educational tool, openness matters because students should be able to see &lt;em&gt;how&lt;/em&gt; a bug was diagnosed, and the community should be able to extend it.&lt;/p&gt;

&lt;p&gt;Night-Owl is open to contributions and is suitable for developers participating in Hacktoberfest and other open-source initiatives. Ideas include new analyzers, deadlock graphs, race-condition timelines, better prompts, tests, and docs. The README has setup steps and a contribution workflow.&lt;/p&gt;

&lt;p&gt;If you try it, I'd love to hear which systems bug always confused &lt;em&gt;you&lt;/em&gt; the most. And a star on GitHub means a lot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Debug the systems. Understand the problem.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hacktoberfest</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
