<?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: surya</title>
    <description>The latest articles on DEV Community by surya (@surya_20997be9af5cd4548bd).</description>
    <link>https://dev.to/surya_20997be9af5cd4548bd</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%2F4148309%2F6ef7eb80-7083-4d38-b935-d65458a17e76.png</url>
      <title>DEV Community: surya</title>
      <link>https://dev.to/surya_20997be9af5cd4548bd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/surya_20997be9af5cd4548bd"/>
    <language>en</language>
    <item>
      <title>I Built a Hindsight Agent That Remembers Failed Fixes</title>
      <dc:creator>surya</dc:creator>
      <pubDate>Tue, 29 Sep 2026 02:12:21 +0000</pubDate>
      <link>https://dev.to/surya_20997be9af5cd4548bd/i-built-a-hindsight-agent-that-remembers-failed-fixes-442a</link>
      <guid>https://dev.to/surya_20997be9af5cd4548bd/i-built-a-hindsight-agent-that-remembers-failed-fixes-442a</guid>
      <description>&lt;p&gt;Production incidents are rarely difficult because nobody knows how to restart a service.&lt;/p&gt;

&lt;p&gt;They are difficult because engineers have to remember what happened the last time.&lt;/p&gt;

&lt;p&gt;A similar incident may have happened weeks or months ago. Someone may have tried a restart, a rollback, or a configuration change. One approach worked. Another looked reasonable but failed. That experience is usually scattered across logs, tickets, documentation, or someone's memory.&lt;/p&gt;

&lt;p&gt;I wanted an incident-response agent that could use that experience directly.&lt;/p&gt;

&lt;p&gt;That became OpsMind.&lt;/p&gt;

&lt;p&gt;OpsMind is an AI incident-response system that investigates live failures, retrieves relevant past experiences using Hindsight, recommends a remediation, verifies the result independently, and stores the outcome for future incidents.&lt;/p&gt;

&lt;p&gt;The interesting part is not that the agent can read logs.&lt;/p&gt;

&lt;p&gt;The interesting part is that it can remember what happened after an action was taken.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with stateless incident agents
&lt;/h2&gt;

&lt;p&gt;A normal LLM agent can analyze the current incident.&lt;/p&gt;

&lt;p&gt;For example, if a gateway starts returning HTTP 502, an agent can inspect service health, read logs, and look at the current deployment configuration.&lt;/p&gt;

&lt;p&gt;That helps answer:&lt;/p&gt;

&lt;p&gt;“What is happening right now?”&lt;/p&gt;

&lt;p&gt;But incident response often needs another question:&lt;/p&gt;

&lt;p&gt;“What happened the last time this happened?”&lt;/p&gt;

&lt;p&gt;That historical context can change the next action.&lt;/p&gt;

&lt;p&gt;A previous incident may show that restarting a backend did not solve the problem, while changing a gateway configuration did. Without memory, the agent starts the investigation again from a blank context.&lt;/p&gt;

&lt;p&gt;I wanted memory to become part of the decision-making process rather than another dashboard panel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a real incident environment
&lt;/h2&gt;

&lt;p&gt;Instead of giving the agent a static incident JSON file, I built a small local environment with two real services.&lt;/p&gt;

&lt;p&gt;The first is a payment backend.&lt;/p&gt;

&lt;p&gt;The second is an API gateway that forwards requests to the payment backend.&lt;/p&gt;

&lt;p&gt;The backend exposes health and payment endpoints and writes timestamped logs.&lt;/p&gt;

&lt;p&gt;The gateway reads its upstream target from a live configuration file and forwards actual HTTP requests to the backend.&lt;/p&gt;

&lt;p&gt;For the incident scenario, the upstream configuration is deliberately changed from the healthy backend port to an invalid local port.&lt;/p&gt;

&lt;p&gt;That produces a real failure:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
text
Gateway → 502 Bad Gateway
Backend → 200 OK
Logs   → connection refused
Config → upstream changed to invalid port
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>automation</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
