<?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: Shane Sprague</title>
    <description>The latest articles on DEV Community by Shane Sprague (@shane_sprague_0742029d355).</description>
    <link>https://dev.to/shane_sprague_0742029d355</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%2F3150429%2F8ee42e10-71ac-4438-bcf3-a2d882aa1abd.jpeg</url>
      <title>DEV Community: Shane Sprague</title>
      <link>https://dev.to/shane_sprague_0742029d355</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shane_sprague_0742029d355"/>
    <language>en</language>
    <item>
      <title>How I Built Astra — An Emotional Memory AI Assistant with OpenAI and SQLite</title>
      <dc:creator>Shane Sprague</dc:creator>
      <pubDate>Sun, 11 May 2025 15:14:24 +0000</pubDate>
      <link>https://dev.to/shane_sprague_0742029d355/how-i-built-astra-an-emotional-memory-ai-assistant-with-openai-and-sqlite-25en</link>
      <guid>https://dev.to/shane_sprague_0742029d355/how-i-built-astra-an-emotional-memory-ai-assistant-with-openai-and-sqlite-25en</guid>
      <description>&lt;p&gt;I recently finished building &lt;strong&gt;Astra&lt;/strong&gt;, my first emotional memory AI assistant — and I wanted to share the project.&lt;/p&gt;




&lt;h3&gt;
  
  
  What is Astra?
&lt;/h3&gt;

&lt;p&gt;Astra is an emotionally-aware assistant built with OpenAI and SQLite. She remembers what you say — including how you're feeling — and responds with empathy, memory, and continuity.&lt;/p&gt;

&lt;p&gt;Astra tracks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Facts you mention (e.g. birthdays, preferences)&lt;/li&gt;
&lt;li&gt;Emotional phrases (e.g. "I'm overwhelmed")&lt;/li&gt;
&lt;li&gt;Emotional trends over time (e.g. persistent sadness)&lt;/li&gt;
&lt;li&gt;Your last seen, current mood, and context&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All memory is &lt;strong&gt;stored locally in SQLite&lt;/strong&gt;. There’s no server. No hosting. No analytics. Just a real-time assistant that learns and remembers.&lt;/p&gt;




&lt;h3&gt;
  
  
  Tech Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python&lt;/strong&gt; (core logic, CLI loop)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI GPT-4o&lt;/strong&gt; (for responses + memory phrasing)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite&lt;/strong&gt; (for memory storage and time decay)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Regex + NLP light&lt;/strong&gt; (for input parsing and normalization)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Why I Built Her
&lt;/h3&gt;

&lt;p&gt;I wanted an assistant that could &lt;em&gt;actually remember me.&lt;/em&gt;&lt;br&gt;&lt;br&gt;
Not just reply with static info, but one that could grow with me, reflect, and recognize emotional shifts over time.&lt;/p&gt;

&lt;p&gt;I also wanted to challenge myself to build a full AI logic layer in one file. Astra’s current version lives in a single Python file with structured memory, mood inference, and even simulated typing.&lt;/p&gt;




&lt;h3&gt;
  
  
  Try It / Fork It
&lt;/h3&gt;

&lt;p&gt;You can run Astra locally or modify her as your own emotional companion.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;&lt;br&gt;
➡️ &lt;a href="https://github.com/dshane2008/Astra-AI" rel="noopener noreferrer"&gt;https://github.com/dshane2008/Astra-AI&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Would love feedback or ideas from other devs working in the AI or emotional tech space.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>emotionalintelligence</category>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
