<?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: MANI BHUSHANAM K</title>
    <description>The latest articles on DEV Community by MANI BHUSHANAM K (@manibhushanamk).</description>
    <link>https://dev.to/manibhushanamk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4149801%2F802ed57e-2df2-45cf-8722-d121489aa175.gif</url>
      <title>DEV Community: MANI BHUSHANAM K</title>
      <link>https://dev.to/manibhushanamk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manibhushanamk"/>
    <language>en</language>
    <item>
      <title>I Gave a Coding Agent Memory—and Let It Learn Which Tools It Needed</title>
      <dc:creator>MANI BHUSHANAM K</dc:creator>
      <pubDate>Tue, 29 Sep 2026 14:53:50 +0000</pubDate>
      <link>https://dev.to/manibhushanamk/i-gave-a-coding-agent-memory-and-let-it-learn-which-tools-it-needed-1ci0</link>
      <guid>https://dev.to/manibhushanamk/i-gave-a-coding-agent-memory-and-let-it-learn-which-tools-it-needed-1ci0</guid>
      <description>&lt;p&gt;🤔 What if a coding agent could actually remember?&lt;/p&gt;

&lt;p&gt;AI coding agents are becoming surprisingly capable.&lt;br&gt;
They can write code, inspect repositories, debug errors, interact with tools, and reason through complex development tasks.&lt;/p&gt;

&lt;p&gt;But there is still a frustrating limitation:&lt;br&gt;
They forget.&lt;br&gt;
A new session often starts without the useful experience accumulated during previous sessions.&lt;br&gt;
A developer might have already explained:&lt;/p&gt;

&lt;p&gt;🔐 security requirements&lt;br&gt;
🏗️ architectural constraints&lt;br&gt;
💼 customer requirements&lt;br&gt;
💰 commercial conditions&lt;br&gt;
🧠 important project decisions&lt;br&gt;
🛠️ recurring development patterns&lt;/p&gt;

&lt;p&gt;Yet the next session may require the agent to rediscover that context.&lt;br&gt;
That made me ask a different question:&lt;/p&gt;

&lt;p&gt;What if an AI coding agent could remember important project knowledge and also learn from repeated patterns in its own interactions?&lt;/p&gt;

&lt;p&gt;That question led me to build DIAS — Deal Intelligence Agent Skill.&lt;/p&gt;

&lt;p&gt;DIAS combines persistent memory, telemetry, reflection, and controlled tool evolution using Hindsight.&lt;/p&gt;

&lt;p&gt;The core idea is simple:&lt;/p&gt;

&lt;p&gt;🧠 Remember&lt;br&gt;
      ↓&lt;br&gt;
👀 Observe&lt;br&gt;
      ↓&lt;br&gt;
🔎 Reflect&lt;br&gt;
      ↓&lt;br&gt;
🛠️ Adapt&lt;br&gt;
      ↓&lt;br&gt;
⚡ Execute&lt;br&gt;
🧩 The Problem: Coding Agents Have Short-Term Context&lt;/p&gt;

&lt;p&gt;A coding agent usually works within a session.&lt;/p&gt;

&lt;p&gt;Imagine this workflow:&lt;/p&gt;

&lt;p&gt;👨‍💻 Developer&lt;br&gt;
      ↓&lt;br&gt;
🤖 Coding Agent&lt;br&gt;
      ↓&lt;br&gt;
💻 Solve Problem&lt;br&gt;
      ↓&lt;br&gt;
✅ Task Completed&lt;br&gt;
      ↓&lt;br&gt;
🔚 Session Ends&lt;/p&gt;

&lt;p&gt;The problem appears when the next session begins.&lt;/p&gt;

&lt;p&gt;The project still has context, but the agent may not have access to everything it learned previously.&lt;/p&gt;

&lt;p&gt;For a real engineering workflow, that can mean repeatedly explaining the same things.&lt;/p&gt;

&lt;p&gt;DIAS approaches this by treating useful project information as persistent memory rather than temporary conversation context.&lt;/p&gt;

&lt;p&gt;🧠 Two Different Types of Memory&lt;/p&gt;

&lt;p&gt;One of the key design decisions in DIAS is separating memory into two dimensions.&lt;/p&gt;

&lt;p&gt;1️⃣ dias_deals — Domain Memory&lt;/p&gt;

&lt;p&gt;dias_deals focuses on information that should remain useful across sessions.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;p&gt;👤 customer disclosures&lt;br&gt;
🔐 security mandates&lt;br&gt;
💰 commercial terms&lt;br&gt;
🏗️ architectural constraints&lt;br&gt;
📋 important domain context&lt;/p&gt;

&lt;p&gt;The purpose isn't to remember every conversation.&lt;/p&gt;

&lt;p&gt;The purpose is to preserve information that can influence future decisions.&lt;/p&gt;

&lt;p&gt;2️⃣ dias_telemetry — Developer Interaction Memory&lt;/p&gt;

&lt;p&gt;The second memory dimension is:&lt;/p&gt;

&lt;p&gt;dias_telemetry&lt;/p&gt;

&lt;p&gt;This captures patterns around agent usage and developer interaction.&lt;/p&gt;

&lt;p&gt;For example, imagine an agent repeatedly performing relational database queries through a manual workflow.&lt;/p&gt;

&lt;p&gt;One occurrence may be completely normal.&lt;/p&gt;

&lt;p&gt;But if the same pattern keeps appearing, it may indicate developer friction.&lt;/p&gt;

&lt;p&gt;That makes telemetry useful for something beyond logging.&lt;/p&gt;

&lt;p&gt;It becomes input for reflection.&lt;/p&gt;

&lt;p&gt;🧠 Where Hindsight Fits&lt;/p&gt;

&lt;p&gt;DIAS uses Hindsight as the persistent memory and reflection layer.&lt;/p&gt;

&lt;p&gt;The architecture can be represented like this:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;             🤖 Coding Agent
                   │
                   ▼
             ┌───────────┐
             │   DIAS    │
             └─────┬─────┘
                   │
          ┌────────┴────────┐
          ▼                 ▼
   🧠 dias_deals      📊 dias_telemetry
   Domain Memory          Telemetry
          │                 │
          │                 ▼
          │          🔎 Hindsight Reflect
          │                 │
          │                 ▼
          │        🔁 Friction Pattern
          │                 │
          │                 ▼
          │          🛠️ Tool Proposal
          │                 │
          │                 ▼
          │          👤 Human Approval
          │                 │
          │                 ▼
          │        🐘 Neon PostgreSQL
          │              MCP
          └─────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This creates an important distinction:&lt;/p&gt;

&lt;p&gt;Memory isn't only about retrieving old information.&lt;/p&gt;

&lt;p&gt;It can also provide the history needed to identify recurring patterns.&lt;/p&gt;

&lt;p&gt;🔎 From Memory to Reflection&lt;/p&gt;

&lt;p&gt;This is where the architecture becomes more interesting.&lt;/p&gt;

&lt;p&gt;Traditional memory might answer:&lt;/p&gt;

&lt;p&gt;"What happened previously?"&lt;/p&gt;

&lt;p&gt;Reflection asks:&lt;/p&gt;

&lt;p&gt;"What can we learn from what happened previously?"&lt;/p&gt;

&lt;p&gt;DIAS explores that second question.&lt;/p&gt;

&lt;p&gt;The conceptual flow is:&lt;/p&gt;

&lt;p&gt;💻 Agent Interaction&lt;br&gt;
        ↓&lt;br&gt;
📊 Telemetry Captured&lt;br&gt;
        ↓&lt;br&gt;
🧠 Persistent Memory&lt;br&gt;
        ↓&lt;br&gt;
🔎 Reflection&lt;br&gt;
        ↓&lt;br&gt;
🔁 Recurring Pattern&lt;br&gt;
        ↓&lt;br&gt;
💡 Potential Improvement&lt;/p&gt;

&lt;p&gt;This means previous interactions can become useful signals for future agent behavior.&lt;/p&gt;

&lt;p&gt;🗄️ Example: Repeated Database Work&lt;/p&gt;

&lt;p&gt;Consider a developer working on an application that repeatedly requires relational database operations.&lt;/p&gt;

&lt;p&gt;Without persistent telemetry:&lt;/p&gt;

&lt;p&gt;💻 Database Task&lt;br&gt;
      ↓&lt;br&gt;
🔧 Manual Workflow&lt;br&gt;
      ↓&lt;br&gt;
✅ Task Completed&lt;br&gt;
      ↓&lt;br&gt;
🔚 Session Ends&lt;/p&gt;

&lt;p&gt;The next session can repeat the same workflow.&lt;/p&gt;

&lt;p&gt;With DIAS:&lt;/p&gt;

&lt;p&gt;💻 Database Task&lt;br&gt;
      ↓&lt;br&gt;
📊 Telemetry Recorded&lt;br&gt;
      ↓&lt;br&gt;
🧠 Pattern Retained&lt;br&gt;
      ↓&lt;br&gt;
🔁 Repeated Behavior Detected&lt;br&gt;
      ↓&lt;br&gt;
🔎 Hindsight Reflect&lt;br&gt;
      ↓&lt;br&gt;
💡 Friction Identified&lt;/p&gt;

&lt;p&gt;Now the system has additional information it can use to reason about the workflow.&lt;/p&gt;

&lt;p&gt;🛠️ From Friction to Tool Evolution&lt;/p&gt;

&lt;p&gt;This is where MCP becomes important.&lt;/p&gt;

&lt;p&gt;If repeated database interactions suggest that the agent would benefit from a dedicated database capability, DIAS can stage the Neon PostgreSQL MCP server.&lt;/p&gt;

&lt;p&gt;But there is an important safety boundary.&lt;/p&gt;

&lt;p&gt;The agent should not simply be allowed to install or activate arbitrary capabilities without oversight.&lt;/p&gt;

&lt;p&gt;DIAS therefore introduces a human approval step:&lt;/p&gt;

&lt;p&gt;🔎 Detect&lt;br&gt;
   ↓&lt;br&gt;
🧠 Reflect&lt;br&gt;
   ↓&lt;br&gt;
💡 Propose&lt;br&gt;
   ↓&lt;br&gt;
👤 Human Approval&lt;br&gt;
   ↓&lt;br&gt;
🛠️ Activate&lt;br&gt;
   ↓&lt;br&gt;
⚡ Use&lt;/p&gt;

&lt;p&gt;The idea is controlled adaptation, rather than unlimited autonomy.&lt;/p&gt;

&lt;p&gt;🔄 Before vs After&lt;br&gt;
❌ Before DIAS&lt;br&gt;
👨‍💻 Developer&lt;br&gt;
      ↓&lt;br&gt;
🤖 Coding Agent&lt;br&gt;
      ↓&lt;br&gt;
🗄️ Repeated Database Work&lt;br&gt;
      ↓&lt;br&gt;
🔚 Session Ends&lt;br&gt;
      ↓&lt;br&gt;
❌ Experience Lost&lt;br&gt;
      ↓&lt;br&gt;
🔁 Next Session Repeats&lt;br&gt;
✅ With DIAS&lt;br&gt;
👨‍💻 Developer&lt;br&gt;
      ↓&lt;br&gt;
🤖 Coding Agent&lt;br&gt;
      ↓&lt;br&gt;
🗄️ Database Interaction&lt;br&gt;
      ↓&lt;br&gt;
📊 Telemetry&lt;br&gt;
      ↓&lt;br&gt;
🧠 Persistent Memory&lt;br&gt;
      ↓&lt;br&gt;
🔎 Hindsight Reflect&lt;br&gt;
      ↓&lt;br&gt;
💡 Friction Identified&lt;br&gt;
      ↓&lt;br&gt;
👤 Human Approval&lt;br&gt;
      ↓&lt;br&gt;
🛠️ Neon PostgreSQL MCP&lt;/p&gt;

&lt;p&gt;The important change isn't simply:&lt;/p&gt;

&lt;p&gt;"The agent remembers more."&lt;/p&gt;

&lt;p&gt;It is:&lt;/p&gt;

&lt;p&gt;Previous experience can become an input into future decisions.&lt;/p&gt;

&lt;p&gt;💻 How the Implementation Works&lt;/p&gt;

&lt;p&gt;The DIAS repository contains the implementation of the memory and agent workflow.&lt;/p&gt;

&lt;p&gt;🧠 1. Persisting Memory&lt;/p&gt;

&lt;p&gt;⚠️ Replace the following placeholder with the actual DIAS code.&lt;/p&gt;

&lt;h1&gt;
  
  
  INSERT REAL HINDSIGHT RETAIN CODE FROM DIAS REPOSITORY
&lt;/h1&gt;

&lt;p&gt;The important part to demonstrate here is how information is actually persisted into Hindsight.&lt;/p&gt;

&lt;p&gt;🔎 2. Recalling Memory&lt;/p&gt;

&lt;p&gt;⚠️ Replace with the actual DIAS recall implementation.&lt;/p&gt;

&lt;h1&gt;
  
  
  INSERT REAL HINDSIGHT RECALL CODE FROM DIAS REPOSITORY
&lt;/h1&gt;

&lt;p&gt;This snippet should demonstrate how previously retained information becomes available to the agent.&lt;/p&gt;

&lt;p&gt;📊 3. Telemetry / Reflection&lt;/p&gt;

&lt;p&gt;⚠️ Replace with the actual telemetry or Reflect implementation.&lt;/p&gt;

&lt;h1&gt;
  
  
  INSERT REAL DIAS TELEMETRY / REFLECT CODE
&lt;/h1&gt;

&lt;p&gt;This is especially important because it demonstrates the bridge between:&lt;/p&gt;

&lt;p&gt;📊 Observation&lt;br&gt;
      ↓&lt;br&gt;
🧠 Memory&lt;br&gt;
      ↓&lt;br&gt;
🔎 Reflection&lt;br&gt;
      ↓&lt;br&gt;
🛠️ Adaptation&lt;/p&gt;

&lt;p&gt;The submission guide specifically asks for 2–4 small real code snippets, so these should be taken directly from the actual repository rather than invented examples.&lt;/p&gt;

&lt;p&gt;👤 Human-in-the-Loop Safety&lt;/p&gt;

&lt;p&gt;Adaptive systems create another important question:&lt;/p&gt;

&lt;p&gt;If an agent identifies a tool it needs, should it activate that tool automatically?&lt;/p&gt;

&lt;p&gt;DIAS keeps a human approval boundary.&lt;/p&gt;

&lt;p&gt;That gives the workflow an explicit control point:&lt;/p&gt;

&lt;p&gt;🤖 Agent observes&lt;br&gt;
       ↓&lt;br&gt;
🔎 System reflects&lt;br&gt;
       ↓&lt;br&gt;
💡 Potential capability identified&lt;br&gt;
       ↓&lt;br&gt;
👤 Human reviews&lt;br&gt;
       ↓&lt;br&gt;
🛠️ Capability activated&lt;/p&gt;

&lt;p&gt;This makes the architecture more controlled.&lt;/p&gt;

&lt;p&gt;The objective isn't to give an agent unlimited autonomy.&lt;/p&gt;

&lt;p&gt;It is to allow the agent to identify potential improvements while keeping humans in the loop for capability changes.&lt;/p&gt;

&lt;p&gt;📸 Screenshots to Add&lt;/p&gt;

&lt;p&gt;The submission guide asks for screenshots or images that show the system in action.&lt;/p&gt;

&lt;p&gt;Add these underneath the relevant sections:&lt;/p&gt;

&lt;p&gt;📸 Screenshot 1 — DIAS Architecture&lt;/p&gt;

&lt;p&gt;Show:&lt;/p&gt;

&lt;p&gt;Agent → DIAS → Hindsight → Reflection → MCP&lt;br&gt;
📸 Screenshot 2 — Memory&lt;/p&gt;

&lt;p&gt;Show the Hindsight memory/recall workflow.&lt;/p&gt;

&lt;p&gt;📸 Screenshot 3 — Telemetry&lt;/p&gt;

&lt;p&gt;Show dias_telemetry or the relevant telemetry workflow.&lt;/p&gt;

&lt;p&gt;📸 Screenshot 4 — Tool Evolution&lt;/p&gt;

&lt;p&gt;Show the Neon PostgreSQL MCP activation / approval flow if available.&lt;/p&gt;

&lt;p&gt;📚 What I Learned&lt;br&gt;
1️⃣ Persistent memory should be selective&lt;/p&gt;

&lt;p&gt;An agent doesn't need to remember everything.&lt;/p&gt;

&lt;p&gt;It needs to remember information that has future value.&lt;/p&gt;

&lt;p&gt;2️⃣ Domain memory and telemetry are different&lt;/p&gt;

&lt;p&gt;Project knowledge answers:&lt;/p&gt;

&lt;p&gt;"What should the agent know?"&lt;/p&gt;

&lt;p&gt;Telemetry answers:&lt;/p&gt;

&lt;p&gt;"What patterns are emerging?"&lt;/p&gt;

&lt;p&gt;Separating them makes the architecture easier to reason about.&lt;/p&gt;

&lt;p&gt;3️⃣ Reflection is different from retrieval&lt;/p&gt;

&lt;p&gt;Retrieval asks:&lt;/p&gt;

&lt;p&gt;"What happened before?"&lt;/p&gt;

&lt;p&gt;Reflection asks:&lt;/p&gt;

&lt;p&gt;"What pattern can we learn from what happened before?"&lt;/p&gt;

&lt;p&gt;That distinction is central to DIAS.&lt;/p&gt;

&lt;p&gt;4️⃣ Tool evolution needs boundaries&lt;/p&gt;

&lt;p&gt;Giving an agent more tools is relatively easy.&lt;/p&gt;

&lt;p&gt;Giving it a controlled mechanism for recognizing when another tool may be useful is a different problem.&lt;/p&gt;

&lt;p&gt;That is why the human approval boundary matters.&lt;/p&gt;

&lt;p&gt;5️⃣ The goal isn't memory itself&lt;/p&gt;

&lt;p&gt;The real goal isn't:&lt;/p&gt;

&lt;p&gt;"Make the agent remember everything."&lt;/p&gt;

&lt;p&gt;It is:&lt;/p&gt;

&lt;p&gt;"Make previous experience useful."&lt;/p&gt;

&lt;p&gt;⚠️ Limitations&lt;/p&gt;

&lt;p&gt;DIAS is an exploration of this architecture, not a claim that persistent memory solves every problem with coding agents.&lt;/p&gt;

&lt;p&gt;There are still important engineering questions around:&lt;/p&gt;

&lt;p&gt;🧠 deciding what information is worth retaining&lt;br&gt;
🧹 avoiding irrelevant memories&lt;br&gt;
🔄 handling outdated information&lt;br&gt;
📏 measuring whether reflection improves outcomes&lt;br&gt;
🔎 determining when repeated behavior actually represents friction&lt;br&gt;
🛠️ deciding which tool should be proposed&lt;br&gt;
👤 maintaining appropriate human approval boundaries&lt;/p&gt;

&lt;p&gt;Adding memory doesn't automatically solve these problems.&lt;/p&gt;

&lt;p&gt;It creates another layer that the agent can use to reason about its previous experience.&lt;/p&gt;

&lt;p&gt;🎯 Conclusion&lt;/p&gt;

&lt;p&gt;The most interesting property of an AI coding agent may not be how much context it can process in one session.&lt;/p&gt;

&lt;p&gt;It may be whether useful experience from previous sessions can change what happens next.&lt;/p&gt;

&lt;p&gt;That's the idea explored with DIAS.&lt;/p&gt;

&lt;p&gt;The architecture can be summarized as:&lt;/p&gt;

&lt;p&gt;🧠 Remember&lt;br&gt;
      ↓&lt;br&gt;
👀 Observe&lt;br&gt;
      ↓&lt;br&gt;
🔎 Reflect&lt;br&gt;
      ↓&lt;br&gt;
🛠️ Adapt&lt;br&gt;
      ↓&lt;br&gt;
⚡ Execute&lt;/p&gt;

&lt;p&gt;Hindsight provides the persistent memory and reflection foundation.&lt;/p&gt;

&lt;p&gt;DIAS uses that foundation to explore an agent that can:&lt;/p&gt;

&lt;p&gt;🧠 retain domain context&lt;br&gt;
📊 observe interaction patterns&lt;br&gt;
🔎 identify recurring friction&lt;br&gt;
💡 propose capability changes&lt;br&gt;
👤 keep humans in the approval loop&lt;/p&gt;

&lt;p&gt;The goal isn't an agent that remembers everything.&lt;/p&gt;

&lt;p&gt;It's an agent that remembers what matters. 🚀&lt;/p&gt;

&lt;p&gt;🔗 Resources&lt;br&gt;
💻 DIAS GitHub&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Manibhushanamk/DEAL-INTELLIGENCE-AGENT-SKILL-DIAS-" rel="noopener noreferrer"&gt;https://github.com/Manibhushanamk/DEAL-INTELLIGENCE-AGENT-SKILL-DIAS-&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🧠 Hindsight GitHub&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/vectorize-io/hindsight" rel="noopener noreferrer"&gt;https://github.com/vectorize-io/hindsight&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;📚 Hindsight Documentation&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hindsight.vectorize.io/" rel="noopener noreferrer"&gt;https://hindsight.vectorize.io/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔎 Vectorize Agent Memory&lt;/p&gt;

&lt;p&gt;&lt;a href="https://vectorize.io/what-is-agent-memory" rel="noopener noreferrer"&gt;https://vectorize.io/what-is-agent-memory&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>llm</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
