<?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>Forem: thejus bs</title>
    <description>The latest articles on Forem by thejus bs (@thejus_bs).</description>
    <link>https://forem.com/thejus_bs</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%2F3840561%2Fbdeec104-4dd2-4b33-9388-6327d4e4ce6f.png</url>
      <title>Forem: thejus bs</title>
      <link>https://forem.com/thejus_bs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/thejus_bs"/>
    <language>en</language>
    <item>
      <title>My AI Mentor Remembered Every Bug I Kept Repeating — And Wouldn’t Let Me Ship With It Again.</title>
      <dc:creator>thejus bs</dc:creator>
      <pubDate>Mon, 23 Mar 2026 17:31:32 +0000</pubDate>
      <link>https://forem.com/thejus_bs/my-ai-mentor-remembered-every-bug-i-kept-repeating-and-wouldnt-let-me-ship-with-it-again-pol</link>
      <guid>https://forem.com/thejus_bs/my-ai-mentor-remembered-every-bug-i-kept-repeating-and-wouldnt-let-me-ship-with-it-again-pol</guid>
      <description>&lt;p&gt;“&lt;strong&gt;I think you’re doing that loop thing again.&lt;/strong&gt;”&lt;/p&gt;

&lt;p&gt;That wasn’t me. That was my app.&lt;/p&gt;

&lt;p&gt;At some point, CodeMentor stopped reacting to my code and started recognizing how I write it. That shift—from response to pattern recognition—is what this project is really about.&lt;/p&gt;

&lt;p&gt;What This System Actually Does&lt;/p&gt;

&lt;p&gt;CodeMentor is a React app that combines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Groq (LLaMA 3.3 70B) for fast feedback&lt;/li&gt;
&lt;li&gt;Hindsight for long-term memory&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of treating every submission as new, it builds a memory of your behavior over time.&lt;/p&gt;

&lt;p&gt;Each interaction follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Recall → Analyze → Retain&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;📸 Screenshot: &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwy4hlvoy1ppx03q6y86.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwy4hlvoy1ppx03q6y86.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Memory as Context, Not Storage&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Most people think memory means saving more data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What matters is using it at the right moment.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before every review, the system recalls past patterns:&lt;/p&gt;

&lt;p&gt;const r = await hs.recall(bankId, query);&lt;br&gt;
const mems = r.results || [];&lt;/p&gt;

&lt;p&gt;That memory gets injected into the prompt.&lt;/p&gt;

&lt;p&gt;Now the model doesn’t just see your code—it sees your history.&lt;/p&gt;

&lt;p&gt;📸 Screenshot: &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb8gfdv1a4qkzolftwfcw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb8gfdv1a4qkzolftwfcw.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Shift: From Feedback to Pattern Detection&lt;/p&gt;

&lt;p&gt;After a few sessions, something interesting happens.&lt;/p&gt;

&lt;p&gt;Instead of generic advice, the system starts saying things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;“You’ve done this before”&lt;/li&gt;
&lt;li&gt;“This looks similar to your last mistake”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s not intelligence—it’s memory applied correctly.&lt;/p&gt;

&lt;p&gt;Closing the Loop&lt;/p&gt;

&lt;p&gt;Every interaction becomes future context:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;await hs.retain(bankId, &lt;code&gt;Mistakes: ${mistakes.join(", ")}&lt;/code&gt;);&lt;/li&gt;
&lt;li&gt;That’s the entire loop.&lt;/li&gt;
&lt;li&gt;Simple—but powerful.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📸 Screenshot:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqyd5fx5bh4mn60ya1wkq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqyd5fx5bh4mn60ya1wkq.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why This Matters&lt;/p&gt;

&lt;p&gt;Without memory:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You improve randomly&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;You improve systematically&lt;/li&gt;
&lt;li&gt;Final Thought&lt;/li&gt;
&lt;li&gt;This isn’t about smarter models.&lt;/li&gt;
&lt;li&gt;It’s about giving models memory of you.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
