<?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: Ashiya Farhin</title>
    <description>The latest articles on DEV Community by Ashiya Farhin (@ashiya_farhin_d450eb33855).</description>
    <link>https://dev.to/ashiya_farhin_d450eb33855</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%2F3840199%2Ffeebf961-397f-40d6-bbe6-06ce5d7f245a.jpg</url>
      <title>DEV Community: Ashiya Farhin</title>
      <link>https://dev.to/ashiya_farhin_d450eb33855</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ashiya_farhin_d450eb33855"/>
    <language>en</language>
    <item>
      <title>Designing an AI That Remembers: How We Built a Coding Mentor with a "Human" Memory</title>
      <dc:creator>Ashiya Farhin</dc:creator>
      <pubDate>Mon, 23 Mar 2026 13:39:03 +0000</pubDate>
      <link>https://dev.to/ashiya_farhin_d450eb33855/designing-an-ai-that-remembers-how-we-built-a-coding-mentor-with-a-human-memory-dlk</link>
      <guid>https://dev.to/ashiya_farhin_d450eb33855/designing-an-ai-that-remembers-how-we-built-a-coding-mentor-with-a-human-memory-dlk</guid>
      <description>&lt;p&gt;The Sunday Afternoon Epiphany&lt;/p&gt;

&lt;p&gt;We’ve all been there. You’re sitting in your room, staring at a LeetCode problem you &lt;em&gt;know&lt;/em&gt; you’ve solved before. You remember seeing the "Success" banner two weeks ago. But today? The logic is gone. You’re making the same off-by-one error, the same null-pointer mistake, and feeling that same rising tide of frustration.&lt;/p&gt;

&lt;p&gt;As a researcher for Team HACKONAUT, I spent a lot of time talking to fellow engineering students here in Bengaluru. The feedback was universal: &lt;strong&gt;Coding platforms are brilliant at testing us, but they are terrible at teaching us.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They suffer from what I call &lt;strong&gt;"Context Amnesia."&lt;/strong&gt; You are a different person every time you log in, but the platform treats you like a stranger. This is the gap we set out to bridge. We didn't just want to build another compiler; we wanted to build a mentor that actually grows with you.&lt;/p&gt;




&lt;h1&gt;
  
  
  The Research: Why Beginners Hit the "Plateau"
&lt;/h1&gt;

&lt;p&gt;Before a single line of code was written, I dove into the "why." Why do smart students give up on coding? My research pointed to three main friction points:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Repetitive Failure:&lt;/strong&gt; Failing at the same concept (like recursion) without the system recognizing the pattern leads to burnout.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Information Overload:&lt;/strong&gt; Being served "Random Hard Problems" when you haven't mastered "Medium Basics."&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;The "Cold Start" Problem:&lt;/strong&gt; Every session feels like starting a marathon from mile zero.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We realized that if we could solve the &lt;strong&gt;Memory Problem&lt;/strong&gt;, we could solve the &lt;strong&gt;Learning Problem&lt;/strong&gt;. We chose to integrate &lt;strong&gt;Hindsight&lt;/strong&gt;—an open-source agent memory system by Vectorize—to act as the long-term hippocampus of our application.&lt;/p&gt;




&lt;h2&gt;
  
  
  Designing for "Invisible" Intelligence
&lt;/h2&gt;

&lt;p&gt;As the UI designer, my biggest challenge was: &lt;strong&gt;How do you show a user that the AI is remembering them without it feeling creepy?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I didn't want a dashboard full of scary statistics. I wanted a "Neural Insights" panel that felt like a reflection of the user’s growth. We used a clean, dark-themed aesthetic with &lt;strong&gt;Tailwind CSS&lt;/strong&gt; to keep the focus on the code, while using subtle glows and transitions to indicate when the AI was "recalling" or "reflecting" on past sessions.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;The Practice Page: A Balance of Power&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;The practice page was our "North Star." I designed it to be a distraction-free environment, but with a hidden layer of intelligence. When you submit code, it isn't just "Right" or "Wrong."&lt;/p&gt;

&lt;p&gt;I worked closely with the team to ensure that the &lt;strong&gt;Groq Llama-3&lt;/strong&gt; feedback was displayed semantically. Instead of a wall of red text, I designed a side-by-side comparison UI. It highlights exactly where your logic diverged from the optimal solution, effectively turning a "failure" into a visual lesson.&lt;/p&gt;




&lt;h2&gt;
  
  
  How "Memory" Powers the User Experience
&lt;/h2&gt;

&lt;p&gt;While the technical implementation involves complex SDK calls, from a design and flow perspective, we structured the "Memory" into four pillars:&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. The Retention Phase&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Every time a user struggles—maybe they took 20 minutes on a 5-minute task or asked for three hints—the system calls &lt;code&gt;hindsight.retain()&lt;/code&gt;. As a designer, I had to ensure this happened silently in the background. The user shouldn't feel "watched"; they should feel "supported."&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. Personalized Recall&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;When you log back in after a two-day break, the dashboard doesn't show a "Problem of the Day." It shows &lt;strong&gt;"Your Next Challenge."&lt;/strong&gt; The UI fetches your &lt;code&gt;weaknessSummary&lt;/code&gt;. If my research showed that you struggled with &lt;code&gt;Map()&lt;/code&gt; functions on Tuesday, your Wednesday session starts with a tailored exercise to reinforce that exact gap.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3. Reflection &amp;amp; Patterns&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;After every five sessions, the system triggers a "Reflection." This is my favorite part of the UI. We synthesized raw data into human-readable insights: &lt;em&gt;"You’re a pro at Python syntax, but let’s work on your Space Complexity."&lt;/em&gt; It’s the difference between a mirror and a coach.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Stack That Made it Possible
&lt;/h2&gt;

&lt;p&gt;Building this within the high-pressure environment of a hackathon required a lean, powerful stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend &amp;amp; Styling:&lt;/strong&gt; Next.js 15 and Tailwind CSS. I focused on making the site responsive and accessible for students on the go.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory:&lt;/strong&gt; Hindsight by Vectorize—the "secret sauce" that turned a standard app into an agentic one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brainpower:&lt;/strong&gt; Groq API with Llama-3.3-70b. The speed of Groq allowed our UI to feel instantaneous.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execution:&lt;/strong&gt; Piston API for running the code in real-time.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The "Aha!" Moment
&lt;/h2&gt;

&lt;p&gt;During our internal testing, I noticed something incredible. The Hindsight memory graph wasn't just a list of strings. It was building a knowledge graph of our users.&lt;/p&gt;

&lt;p&gt;I saw nodes connecting "User" to "Recursion Errors" and then branching into "Fibonacci Logic." As a designer, seeing that data structure made me realize that &lt;strong&gt;personalized UI isn't about changing colors; it's about changing content based on a user’s mental model.&lt;/strong&gt; We weren't just building a tool; we were building a relationship.&lt;/p&gt;




&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;If I could go back to day one of the design phase, I would tell myself to focus even more on &lt;strong&gt;"Root Cause"&lt;/strong&gt; visualization.&lt;/p&gt;

&lt;p&gt;In our early versions, we just told users they were wrong. Through research and iterative design, we learned that the most valuable thing an AI can do is say: &lt;em&gt;"You made this mistake because you're thinking about arrays as fixed-size, but in this case, they are dynamic."&lt;/em&gt; &lt;strong&gt;The quality of the memory determines the quality of the mentor.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion: The Future of Learning
&lt;/h2&gt;

&lt;p&gt;CodeMentor AI is more than just a project for Team HACKONAUT; it’s a proof of concept for the future of education. We are moving away from "one size fits all" platforms and toward "one size fits &lt;em&gt;you&lt;/em&gt;."&lt;/p&gt;

&lt;p&gt;I’m incredibly proud of the work we did—from the deep research into student pain points to the final, polished UI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to see it in action?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://www.google.com/search?q=https://ai-coding-mentor-eight.vercel.app" rel="noopener noreferrer"&gt;ai-coding-mentor-eight.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ashiyafarhin-blip/Codementor-AI" rel="noopener noreferrer"&gt;github.com/ashiyafarhin-blip/Codementor-AI&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're a designer or researcher looking to get into AI, my advice is simple: Don't just focus on what the AI can &lt;em&gt;do&lt;/em&gt;. Focus on what the AI should &lt;em&gt;remember&lt;/em&gt;. That is where the magic happens.&lt;/p&gt;




&lt;p&gt;*&lt;em&gt;BY Aashiya Farhin , UI /UX DESIGNER ,RESEARCHER&lt;br&gt;
*Designing the future of tech, one memory at a time.&lt;/em&gt;&lt;/p&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%2F4z189klfzt3whmrzat5r.jpeg" 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%2F4z189klfzt3whmrzat5r.jpeg" alt=" " width="800" height="381"&gt;&lt;/a&gt;&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%2Ftjzaqf4rfo2352142sbx.jpeg" 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%2Ftjzaqf4rfo2352142sbx.jpeg" alt=" " width="800" height="385"&gt;&lt;/a&gt;&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%2Fifrna0pp80n4q5f9a059.jpeg" 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%2Fifrna0pp80n4q5f9a059.jpeg" alt=" " width="800" height="388"&gt;&lt;/a&gt;&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%2Fxdxlny6fghwpbx8l16z6.jpeg" 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%2Fxdxlny6fghwpbx8l16z6.jpeg" alt=" " width="800" height="384"&gt;&lt;/a&gt;&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%2Fv2wsqfuo2hw8d8tpesay.jpeg" 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%2Fv2wsqfuo2hw8d8tpesay.jpeg" alt=" " width="800" height="382"&gt;&lt;/a&gt;&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%2Fd8jsy363dcybgbvhu9u7.jpeg" 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%2Fd8jsy363dcybgbvhu9u7.jpeg" alt=" " width="800" height="383"&gt;&lt;/a&gt;&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%2Fkekws4iob60d08fmc9nz.jpeg" 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%2Fkekws4iob60d08fmc9nz.jpeg" alt=" " width="800" height="382"&gt;&lt;/a&gt;&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%2F7yk3ft6yz85bkv853no4.jpeg" 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%2F7yk3ft6yz85bkv853no4.jpeg" alt=" " width="800" height="383"&gt;&lt;/a&gt;**&lt;/p&gt;

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