<?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: Justin Joseph</title>
    <description>The latest articles on DEV Community by Justin Joseph (@justin_joseph_7810a8a112b).</description>
    <link>https://dev.to/justin_joseph_7810a8a112b</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%2F3909419%2Fec8675da-810e-4ff1-a5e5-84b9065636b5.jpg</url>
      <title>DEV Community: Justin Joseph</title>
      <link>https://dev.to/justin_joseph_7810a8a112b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/justin_joseph_7810a8a112b"/>
    <language>en</language>
    <item>
      <title>Built an open-source memory layer for local LLMs — single-shot calls, auto-extracted constraints, no context degradation</title>
      <dc:creator>Justin Joseph</dc:creator>
      <pubDate>Sat, 02 May 2026 18:06:07 +0000</pubDate>
      <link>https://dev.to/justin_joseph_7810a8a112b/built-an-open-source-memory-layer-for-local-llms-single-shot-calls-auto-extracted-constraints-2pk2</link>
      <guid>https://dev.to/justin_joseph_7810a8a112b/built-an-open-source-memory-layer-for-local-llms-single-shot-calls-auto-extracted-constraints-2pk2</guid>
      <description>&lt;p&gt;Been running Llama 3.3 70B via Groq for coding tasks and kept losing architectural decisions across sessions. "We use PostgreSQL" — forgotten. "Auth is JWT" — re-debated. Every new chat starts from zero.&lt;br&gt;
So I built steerhead — it sits between you and any OpenAI-compatible API and manages context via SQLite instead of chat history.&lt;br&gt;
The trick: every message is a single-shot API call. Steerhead assembles the system prompt from stored constraints + file history, fires one clean call, then auto-extracts any decisions the model made (via a second LLM pass) and stores them for next time.&lt;br&gt;
Result: 146 tokens of surgical context instead of 80K tokens of degrading conversation history. New session? The model still knows your entire project's decisions.&lt;br&gt;
Works with:&lt;/p&gt;

&lt;p&gt;Groq (free tier, tested with Llama 3.3 70B)&lt;br&gt;
Ollama (local)&lt;br&gt;
OpenRouter (free models)&lt;br&gt;
Any OpenAI-compatible endpoint&lt;/p&gt;

&lt;p&gt;What's there: project-scoped DBs, session persistence, auto constraint extraction, React UI&lt;br&gt;
What's next: git diff capture, drift detection, memory classification (inspired by Cloudflare's Agent Memory announcement)&lt;br&gt;
Stack: FastAPI + SQLite + React. Fully local, MIT licensed.&lt;br&gt;
Looking for contributors — especially around constraint extraction accuracy and drift detection.&lt;br&gt;
GitHub: &lt;a href="https://github.com/josephmjustin/steerhead" rel="noopener noreferrer"&gt;https://github.com/josephmjustin/steerhead&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
