<?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: Guru Ashutosh</title>
    <description>The latest articles on DEV Community by Guru Ashutosh (@guru012).</description>
    <link>https://dev.to/guru012</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%2F4148586%2F56d466d9-5e23-4a45-9e25-cd2c16e6fc67.jpg</url>
      <title>DEV Community: Guru Ashutosh</title>
      <link>https://dev.to/guru012</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/guru012"/>
    <language>en</language>
    <item>
      <title>CodeZero: Building an AI Agent That Learns Using Hindsight</title>
      <dc:creator>Guru Ashutosh</dc:creator>
      <pubDate>Tue, 29 Sep 2026 05:09:17 +0000</pubDate>
      <link>https://dev.to/guru012/codezero-building-an-ai-agent-that-learns-using-hindsight-55hd</link>
      <guid>https://dev.to/guru012/codezero-building-an-ai-agent-that-learns-using-hindsight-55hd</guid>
      <description>&lt;p&gt;AI assistants are becoming increasingly capable, but one major limitation remains: they often don't remember what happened before.&lt;/p&gt;

&lt;p&gt;A conversation can contain important business information, decisions, preferences, and context. Without persistent memory, that information can easily be lost.&lt;/p&gt;

&lt;p&gt;For HackwithHyderabad 3.0, we built CodeZero, an AI assistant designed to explore how persistent memory can make AI agents more useful over time.&lt;/p&gt;

&lt;p&gt;🧠 What is CodeZero?&lt;/p&gt;

&lt;p&gt;CodeZero is a conversational AI application that can store relevant information from previous interactions, retrieve it when needed, and use it to provide more contextual responses.&lt;/p&gt;

&lt;p&gt;The core of the project is Hindsight by Vectorize, which provides the persistent memory layer.&lt;/p&gt;

&lt;p&gt;Instead of treating every interaction as completely new, CodeZero can retrieve relevant memories and use them alongside the current conversation.&lt;/p&gt;

&lt;p&gt;💡 The Idea&lt;/p&gt;

&lt;p&gt;Imagine you're using an AI assistant for your business.&lt;/p&gt;

&lt;p&gt;During one conversation, you tell it:&lt;/p&gt;

&lt;p&gt;Information about your products&lt;br&gt;
Your target customers&lt;br&gt;
Marketing strategies&lt;br&gt;
Previous campaign decisions&lt;br&gt;
Business goals&lt;/p&gt;

&lt;p&gt;Later, you ask:&lt;/p&gt;

&lt;p&gt;"What should we focus on for our next campaign?"&lt;/p&gt;

&lt;p&gt;A traditional chatbot may only have access to the current conversation.&lt;/p&gt;

&lt;p&gt;CodeZero can retrieve relevant information from previous interactions and use that context when generating its response.&lt;/p&gt;

&lt;p&gt;That's the core idea behind our project:&lt;/p&gt;

&lt;p&gt;AI shouldn't just answer. It should remember and learn from experience.&lt;/p&gt;

&lt;p&gt;🧠 How Hindsight Fits In&lt;/p&gt;

&lt;p&gt;Hindsight acts as the memory layer of CodeZero.&lt;/p&gt;

&lt;p&gt;When a user sends a message:&lt;/p&gt;

&lt;p&gt;User → Flutter → FastAPI → Hindsight&lt;/p&gt;

&lt;p&gt;Hindsight retrieves memories that are relevant to the current query.&lt;/p&gt;

&lt;p&gt;Those memories are then provided to the LLM along with the user's current message.&lt;/p&gt;

&lt;p&gt;The LLM generates the response, and the interaction can then be stored as a new memory.&lt;/p&gt;

&lt;p&gt;This creates a simple loop:&lt;/p&gt;

&lt;p&gt;Remember → Retrieve → Reason → Respond → Learn&lt;/p&gt;

&lt;p&gt;🏗️ Architecture&lt;/p&gt;

&lt;p&gt;Our application consists of four main parts:&lt;/p&gt;

&lt;p&gt;Frontend — Flutter&lt;/p&gt;

&lt;p&gt;We built the user interface using Flutter.&lt;/p&gt;

&lt;p&gt;The application provides:&lt;/p&gt;

&lt;p&gt;User authentication&lt;br&gt;
Chat interface&lt;br&gt;
Multiple chat sessions&lt;br&gt;
Chat history&lt;br&gt;
New conversations&lt;br&gt;
Persistent user accounts&lt;br&gt;
Backend — FastAPI&lt;/p&gt;

&lt;p&gt;FastAPI acts as the bridge between the Flutter application, memory system, and LLM.&lt;/p&gt;

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

&lt;p&gt;Chat requests&lt;br&gt;
Memory creation&lt;br&gt;
Memory retrieval&lt;br&gt;
LLM requests&lt;br&gt;
Storing new interactions&lt;br&gt;
Memory — Hindsight&lt;/p&gt;

&lt;p&gt;Hindsight is the most important part of the architecture.&lt;/p&gt;

&lt;p&gt;It allows CodeZero to retrieve relevant information from previous interactions instead of relying only on the current conversation.&lt;/p&gt;

&lt;p&gt;LLM — Ollama + Qwen&lt;/p&gt;

&lt;p&gt;For response generation, we use Ollama with Qwen, allowing the model to run locally.&lt;/p&gt;

&lt;p&gt;This also helped us keep the project lightweight and cost-conscious during development.&lt;/p&gt;

&lt;p&gt;🔄 Example Workflow&lt;/p&gt;

&lt;p&gt;A simplified request looks like this:&lt;/p&gt;

&lt;p&gt;User&lt;br&gt;
  ↓&lt;br&gt;
Flutter App&lt;br&gt;
  ↓&lt;br&gt;
FastAPI Backend&lt;br&gt;
  ↓&lt;br&gt;
Retrieve relevant memories&lt;br&gt;
  ↓&lt;br&gt;
Hindsight&lt;br&gt;
  ↓&lt;br&gt;
Combine memory + current question&lt;br&gt;
  ↓&lt;br&gt;
Qwen&lt;br&gt;
  ↓&lt;br&gt;
AI Response&lt;br&gt;
  ↓&lt;br&gt;
Store new interaction&lt;br&gt;
🎯 Our Demo&lt;/p&gt;

&lt;p&gt;For the demonstration, we use a fictional business scenario.&lt;/p&gt;

&lt;p&gt;We first provide CodeZero with information about the business, its customers, marketing activities, and previous decisions.&lt;/p&gt;

&lt;p&gt;Later, we ask questions that depend on information from those earlier interactions.&lt;/p&gt;

&lt;p&gt;CodeZero retrieves the relevant memories through Hindsight and uses them to generate a contextual response.&lt;/p&gt;

&lt;p&gt;This demonstrates the difference between an AI that simply responds and an AI agent that can build context over time.&lt;/p&gt;

&lt;p&gt;🛠️ Tech Stack&lt;/p&gt;

&lt;p&gt;Frontend&lt;/p&gt;

&lt;p&gt;Flutter&lt;/p&gt;

&lt;p&gt;Backend&lt;/p&gt;

&lt;p&gt;FastAPI&lt;br&gt;
Python&lt;/p&gt;

&lt;p&gt;Memory&lt;/p&gt;

&lt;p&gt;Hindsight by Vectorize&lt;/p&gt;

&lt;p&gt;LLM&lt;/p&gt;

&lt;p&gt;Ollama&lt;br&gt;
Qwen&lt;/p&gt;

&lt;p&gt;Authentication &amp;amp; Database&lt;/p&gt;

&lt;p&gt;Firebase Authentication&lt;br&gt;
Firebase Firestore&lt;br&gt;
🚀 What We Learned&lt;/p&gt;

&lt;p&gt;Building CodeZero helped us understand that adding memory to an AI system isn't simply about storing every previous message.&lt;/p&gt;

&lt;p&gt;The important part is being able to:&lt;/p&gt;

&lt;p&gt;Store useful information&lt;br&gt;
Retrieve relevant memories&lt;br&gt;
Combine them with the current context&lt;br&gt;
Let the AI decide how that information should influence its response&lt;/p&gt;

&lt;p&gt;This is what makes persistent memory interesting for AI agents.&lt;/p&gt;

&lt;p&gt;🔮 Future Improvements&lt;/p&gt;

&lt;p&gt;There are several directions we would like to explore further:&lt;/p&gt;

&lt;p&gt;More advanced memory organization&lt;br&gt;
Long-term user preferences&lt;br&gt;
Better business analytics&lt;br&gt;
Multi-user business workspaces&lt;br&gt;
More sophisticated memory retrieval&lt;br&gt;
Improved agent reasoning and planning&lt;br&gt;
🏆 HackwithHyderabad 3.0&lt;/p&gt;

&lt;p&gt;CodeZero was built for the HackwithHyderabad 3.0 — AI Agents That Learn Using Hindsight challenge.&lt;/p&gt;

&lt;p&gt;The project gave us the opportunity to explore how persistent memory can change the way we interact with AI agents.&lt;/p&gt;

&lt;p&gt;🔗 Project Links&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="http://www.github.com/guru-012/codezero" rel="noopener noreferrer"&gt;www.github.com/guru-012/codezero&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Demo Video:&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/eVz3YY1mcBA" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;👨‍💻 Team CodeZero&lt;/p&gt;

&lt;p&gt;Built with curiosity, experimentation, and a lot of debugging. 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  AI #AIAgents #Hindsight #Vectorize #GenerativeAI #Flutter #FastAPI #Ollama #Qwen #Firebase #Hackathon #HackwithHyderabad #MachineLearning #ArtificialIntelligence
&lt;/h1&gt;

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