<?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: Keshav Anand</title>
    <description>The latest articles on DEV Community by Keshav Anand (@keshavanandtezz).</description>
    <link>https://dev.to/keshavanandtezz</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3835913%2Fc958b498-55df-44c5-a806-14a04eca7da9.png</url>
      <title>DEV Community: Keshav Anand</title>
      <link>https://dev.to/keshavanandtezz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/keshavanandtezz"/>
    <language>en</language>
    <item>
      <title>I built an AI coding mentor that never forgets your mistakes — using Hindsight Memory.</title>
      <dc:creator>Keshav Anand</dc:creator>
      <pubDate>Fri, 20 Mar 2026 18:08:41 +0000</pubDate>
      <link>https://dev.to/keshavanandtezz/i-built-an-ai-coding-mentor-that-never-forgets-your-mistakes-using-hindsight-memory-2agl</link>
      <guid>https://dev.to/keshavanandtezz/i-built-an-ai-coding-mentor-that-never-forgets-your-mistakes-using-hindsight-memory-2agl</guid>
      <description>&lt;p&gt;Have you ever practiced coding on a platform, closed the tab, &lt;br&gt;
and came back the next day to the exact same random problems? &lt;br&gt;
No memory of what you struggled with. No personalization. Just &lt;br&gt;
starting from zero again.&lt;/p&gt;

&lt;p&gt;That's the problem I wanted to solve at the Hindsight Hackathon.&lt;/p&gt;

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

&lt;p&gt;CodeCoach AI — a personalized coding mentor that remembers &lt;br&gt;
every mistake you make, detects your weak topics, and generates &lt;br&gt;
problems specifically targeting your gaps — across every session.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Hindsight Memory Powers It
&lt;/h2&gt;

&lt;p&gt;Hindsight by Vectorize is a memory system for AI agents. It has &lt;br&gt;
three core operations that I used throughout CodeCoach:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. retain() — After every attempt
&lt;/h3&gt;

&lt;p&gt;Every time a student submits code, the result gets stored:&lt;/p&gt;

&lt;p&gt;The AI evaluates the code, identifies the specific mistake, &lt;br&gt;
and stores it as a memory. Not just "they got it wrong" — but &lt;br&gt;
"they forgot the base case in a recursion problem" or "they used &lt;br&gt;
wrong syntax in a function definition."&lt;/p&gt;

&lt;h3&gt;
  
  
  2. reflect() — Before generating a problem
&lt;/h3&gt;

&lt;p&gt;Before creating a new problem, CodeCoach asks Hindsight to &lt;br&gt;
reason over the student's full history:&lt;/p&gt;

&lt;p&gt;Hindsight synthesizes all past memories and returns something &lt;br&gt;
like: "This student struggles with recursion base cases and &lt;br&gt;
Python function syntax." The AI then generates a problem that &lt;br&gt;
specifically targets those weak areas.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. recall() — For the Learning Profile
&lt;/h3&gt;

&lt;p&gt;The "My Learning Profile" button shows everything Hindsight &lt;br&gt;
remembers about the student — every mistake, every topic, &lt;br&gt;
every pattern detected over time.&lt;/p&gt;

&lt;p&gt;This is the demo money shot. Watching the memory graph fill up &lt;br&gt;
in Hindsight Cloud as a student practices is genuinely exciting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;The app has 3 Python files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;memory.py — all Hindsight communication (retain, recall, reflect)&lt;/li&gt;
&lt;li&gt;mentor.py — all Groq AI communication (generate problems, hints, evaluate)&lt;/li&gt;
&lt;li&gt;app.py — Flask web server that connects everything&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every user gets their own persistent memory in the Hindsight &lt;br&gt;
bank. The more they practice, the smarter their mentor gets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Hindsight Cloud — persistent memory system&lt;/li&gt;
&lt;li&gt;Groq (qwen/qwen3-32b) — fast AI for problem generation&lt;/li&gt;
&lt;li&gt;Python + Flask — backend&lt;/li&gt;
&lt;li&gt;HTML/CSS/JS — frontend&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Makes It Different
&lt;/h2&gt;

&lt;p&gt;Without Hindsight, this would just be another random problem &lt;br&gt;
generator. With Hindsight, it becomes a mentor that genuinely &lt;br&gt;
knows you — your patterns, your struggles, your growth.&lt;/p&gt;

&lt;p&gt;After 3 practice sessions, CodeCoach knows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You struggle with recursion base cases&lt;/li&gt;
&lt;li&gt;You make syntax errors in function definitions
&lt;/li&gt;
&lt;li&gt;You're ready to move from easy to medium difficulty&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No other coding platform does this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/keshavanandtezz-bit/Codecoach-Ai" rel="noopener noreferrer"&gt;https://github.com/keshavanandtezz-bit/Codecoach-Ai&lt;/a&gt;&lt;br&gt;
Live Demo: &lt;a href="https://codecoach-ai-7yl2.onrender.com" rel="noopener noreferrer"&gt;https://codecoach-ai-7yl2.onrender.com&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Built at Hindsight Hackathon 2026
&lt;/h2&gt;

&lt;p&gt;This was my first hackathon. If you're thinking about joining &lt;br&gt;
one — just do it. You'll learn more in 24 hours than in weeks &lt;br&gt;
of tutorials.&lt;/p&gt;

&lt;h1&gt;
  
  
  hindsight #python #ai #hackathon #webdev
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>coding</category>
      <category>learning</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
