<?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: Anupam Das</title>
    <description>The latest articles on DEV Community by Anupam Das (@anupam_das_c6f1f7e9daf181).</description>
    <link>https://dev.to/anupam_das_c6f1f7e9daf181</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%2F3835585%2F3ae8a81c-063f-4d98-a810-a20874a9f666.png</url>
      <title>DEV Community: Anupam Das</title>
      <link>https://dev.to/anupam_das_c6f1f7e9daf181</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anupam_das_c6f1f7e9daf181"/>
    <language>en</language>
    <item>
      <title>Built an AI Coding Mentor That Never Forgets Your Mistakes</title>
      <dc:creator>Anupam Das</dc:creator>
      <pubDate>Fri, 20 Mar 2026 14:09:02 +0000</pubDate>
      <link>https://dev.to/anupam_das_c6f1f7e9daf181/built-an-ai-coding-mentor-that-never-forgets-your-mistakes-b8k</link>
      <guid>https://dev.to/anupam_das_c6f1f7e9daf181/built-an-ai-coding-mentor-that-never-forgets-your-mistakes-b8k</guid>
      <description>&lt;p&gt;There is a moment every CS student knows.&lt;br&gt;
You open LeetCode. You submit a binary search solution. It fails. You read the feedback — "wrong answer" — and you fix it. Two weeks later, you make the exact same mistake again. The platform has no idea. It treats you like a complete stranger.&lt;br&gt;
I got tired of that. So I built TraceX.&lt;/p&gt;

&lt;p&gt;The Problem With Every Coding Platform Today&lt;br&gt;
LeetCode, HackerRank, CodeChef — they are all built around the same assumption. Every session is a fresh start. There is no memory of who you are, what you have struggled with, or what patterns keep tripping you up.&lt;br&gt;
This is not just an inconvenience. It is a fundamental design flaw. Real learning does not happen in isolated sessions. It happens through repetition, pattern recognition, and personalized feedback over time.&lt;br&gt;
A human mentor would never forget that you made the same off-by-one error three times. But every AI coding tool does — because they have no memory.&lt;br&gt;
That is the problem TraceX solves.&lt;/p&gt;

&lt;p&gt;What is TraceX?&lt;br&gt;
TraceX is an AI coding mentor that remembers your mistakes across every session. You paste your code, TraceX analyzes it using Groq's lightning-fast LLM, stores the mistake in Hindsight memory, and the next time you submit — it recalls your full history and gives you feedback personalized to your actual patterns.&lt;br&gt;
The tagline says it best: Trace every mistake. Never repeat one.&lt;/p&gt;

&lt;p&gt;The Technical Core — Hindsight Memory&lt;br&gt;
The entire product is built around two function calls.&lt;br&gt;
After every code submission, TraceX stores the mistake:&lt;br&gt;
javascriptawait client.retain(&lt;br&gt;
  'TraceX',&lt;br&gt;
  &lt;code&gt;Student submitted ${language} code for ${topic}. Error found: ${errorType}.&lt;/code&gt;&lt;br&gt;
);&lt;br&gt;
Before generating feedback, TraceX recalls the full history:&lt;br&gt;
javascriptconst response = await client.recall(&lt;br&gt;
  'TraceX',&lt;br&gt;
  &lt;code&gt;What mistakes has this student made in ${topic}?&lt;/code&gt;&lt;br&gt;
);&lt;br&gt;
const pastMistakes = response.results.map(r =&amp;gt; r.text);&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
These two calls — `retain()` and `recall()` — are what make TraceX fundamentally different from every other coding tool. The memory is not stored in a database. It is not stored in localStorage. It lives in Hindsight, a purpose-built memory layer for AI agents.

The result is real personalization. Instead of generic feedback, TraceX tells you: "You have made this exact off-by-one error in binary search 3 times now. This is becoming a pattern. Focus specifically on your loop termination condition."

---

## The Features That Make It Work

**3-Part Feedback System**

TraceX breaks every analysis into three tabs — What happened, Better approach, and Fixed code. No more walls of text. No more confusion about what to actually do next.

**IDE-Style Code Editor**

We replaced the plain textarea with a CodeMirror editor. Line numbers, syntax highlighting, active line detection. It feels like writing in VS Code inside your browser.

**YouTube Theory Links**

This is my favourite feature. If TraceX detects that you are struggling with a concept — not just the code — it asks: "Feeling unsure about binary search? Here's a great video." One click and you get the best curated YouTube explanation for that exact topic. We mapped every topic to the best NeetCode and Reducible videos.

**Targeted Practice Challenges**

After feedback, TraceX gives you a practice exercise targeting your specific error pattern. Made an off-by-one error? Here is a binary search challenge with that exact bug to fix.

---

## The Stack
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Framework  →  Next.js 16.2&lt;br&gt;
LLM        →  Groq API (qwen/qwen3-32b)&lt;br&gt;
Memory     →  Hindsight Cloud SDK&lt;br&gt;
Editor     →  CodeMirror&lt;br&gt;
Deploy     →  Vercel&lt;/p&gt;

&lt;p&gt;What I Learned Building This&lt;br&gt;
The hardest part was not the code. It was the product philosophy.&lt;br&gt;
Most coding tools are built around pressure — scores, timers, rejection messages. They feel like exams. We made a deliberate decision to build TraceX differently. No timers. No scores. Encouraging language throughout. The feedback says "Opportunity found" not "Error detected." The challenge page says "No rush — think it through."&lt;br&gt;
Because learning should feel good. Not stressful.&lt;/p&gt;

&lt;p&gt;Try It Yourself&lt;br&gt;
TraceX is live and open source. The entire codebase is on GitHub and you can run it locally in under 5 minutes.&lt;br&gt;
The memory layer is powered by Hindsight — the most sophisticated memory system built for AI agents. If you are building anything that requires persistent, personalized AI behavior, Hindsight is worth exploring.&lt;br&gt;
Links:&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/Anupam-codes7/TraceX" rel="noopener noreferrer"&gt;https://github.com/Anupam-codes7/TraceX&lt;/a&gt;&lt;br&gt;
Hindsight SDK: &lt;a href="https://github.com/vectorize-io/hindsight" rel="noopener noreferrer"&gt;https://github.com/vectorize-io/hindsight&lt;/a&gt;&lt;br&gt;
Hindsight Docs: &lt;a href="https://hindsight.vectorize.io/" rel="noopener noreferrer"&gt;https://hindsight.vectorize.io/&lt;/a&gt;&lt;br&gt;
Agent Memory: &lt;a href="https://vectorize.io/features/agent-memory" rel="noopener noreferrer"&gt;https://vectorize.io/features/agent-memory&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every mistake you make as a developer is valuable data. TraceX makes sure none of it goes to waste.&lt;/p&gt;

</description>
      <category>hackathon</category>
      <category>ai</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
