<?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: Sumit Patel</title>
    <description>The latest articles on DEV Community by Sumit Patel (@sumit1993).</description>
    <link>https://dev.to/sumit1993</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%2F1000247%2F95978a0a-44b9-482d-9547-0c336b85b67f.png</url>
      <title>DEV Community: Sumit Patel</title>
      <link>https://dev.to/sumit1993</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sumit1993"/>
    <language>en</language>
    <item>
      <title>When my app breaks, the answer is in the code. So I let my coding agent start there.</title>
      <dc:creator>Sumit Patel</dc:creator>
      <pubDate>Wed, 14 Oct 2026 07:18:35 +0000</pubDate>
      <link>https://dev.to/sumit1993/when-my-app-breaks-the-answer-is-in-the-code-so-i-let-my-coding-agent-start-there-3m08</link>
      <guid>https://dev.to/sumit1993/when-my-app-breaks-the-answer-is-in-the-code-so-i-let-my-coding-agent-start-there-3m08</guid>
      <description>&lt;p&gt;Every time one of my apps went down, the same thing happened. I'd glance at the dashboards, see &lt;em&gt;that&lt;/em&gt; something was wrong, and then spend the next hour in the code working out &lt;em&gt;why&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;At some point I noticed I was doing that last part with Claude Code open anyway. So I started wondering: what if the agent started there, before I even sat down?&lt;/p&gt;

&lt;p&gt;That side project became &lt;a href="https://github.com/prismalens/prismalens" rel="noopener noreferrer"&gt;PrismaLens&lt;/a&gt;. I built it for fun, mostly to see how far a coding agent can get on its own when something breaks. This week I shipped version 0.5.1, so here's what it does and what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;When your monitoring says something is wrong (or you describe the problem yourself), PrismaLens:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Makes a fresh, throwaway copy of your app's code. Your real folder is never touched.&lt;/li&gt;
&lt;li&gt;Hands the problem to the coding agent you already use: Claude Code, Codex or OpenCode.&lt;/li&gt;
&lt;li&gt;Lets the agent read the code and check your app's metrics.&lt;/li&gt;
&lt;li&gt;Gets back a short report: the likely causes, most likely first, each with the evidence the agent found.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything the agent did, and why it thinks what it thinks, stays saved next to the problem, so you can check its work.&lt;/p&gt;

&lt;h2&gt;
  
  
  A few choices I made on purpose
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It starts from the code.&lt;/strong&gt; Most AI tools for outages start from logs and dashboards. Those tell you &lt;em&gt;what&lt;/em&gt; broke. The code usually tells you &lt;em&gt;why&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It never calls an AI model itself.&lt;/strong&gt; It drives the agent you already have, with that agent's own login. So there's no account, no subscription and no AI bill from me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No confidence percentages.&lt;/strong&gt; "87% likely" sounds precise but means nothing. The report just ranks the causes and shows the evidence for each, so you can judge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It only looks unless you say otherwise.&lt;/strong&gt; When it starts by itself, the agent can read but can't change anything. When you start it, you pick how much it's allowed to do, and anything risky waits for you to approve or deny it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One command, no setup.&lt;/strong&gt; It runs on your own machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; prismalens
pl up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No Docker, no database to set up. It opens in your browser at localhost:6473.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agents are good at reading code under pressure; they're bad at knowing when they don't know.&lt;/strong&gt; A report that says "I couldn't find the cause, here's what I checked" turned out to be more useful than a confident wrong answer, so I made that an allowed outcome.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permissions are the hard part.&lt;/strong&gt; My first versions stacked so many safety layers on top of the agent that it could barely do anything. In 0.5.1 I went back to using the agent's own permission modes and showing you its requests, which is simpler and easier to trust.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Most of the code was written with AI coding agents.&lt;/strong&gt; I reviewed and tested every release by hand, walking through it like a new user would. That walk-through caught far more than the tests did.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;If you don't want to point it at your own app yet, there's a small demo app in the repo that you can break on purpose and watch PrismaLens investigate.&lt;/p&gt;

&lt;p&gt;It's early (0.x, things will change), the desktop app is an unsigned preview, and right now it connects to Prometheus-style monitoring. It's only as good as your agent and what it can access.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/prismalens/prismalens" rel="noopener noreferrer"&gt;github.com/prismalens/prismalens&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you try it the next time something breaks, I'd genuinely love to hear what it got right and what it missed.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>devops</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
