<?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: Patrik Fogoš</title>
    <description>The latest articles on DEV Community by Patrik Fogoš (@fogyxt).</description>
    <link>https://dev.to/fogyxt</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%2F3983253%2Fa13dd89f-0e54-4deb-b5ed-801e5543a20b.png</url>
      <title>DEV Community: Patrik Fogoš</title>
      <link>https://dev.to/fogyxt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fogyxt"/>
    <language>en</language>
    <item>
      <title>I'm 18 and I Built a Neuron-Like Memory System for AI</title>
      <dc:creator>Patrik Fogoš</dc:creator>
      <pubDate>Sat, 13 Jun 2026 22:52:58 +0000</pubDate>
      <link>https://dev.to/fogyxt/im-18-and-i-built-a-neuron-like-memory-system-for-ai-3hg6</link>
      <guid>https://dev.to/fogyxt/im-18-and-i-built-a-neuron-like-memory-system-for-ai-3hg6</guid>
      <description>&lt;h2&gt;
  
  
  How do you make an AI that actually &lt;em&gt;remembers&lt;/em&gt;?
&lt;/h2&gt;

&lt;p&gt;Not just RAG over chunks. Not vector search. Real memory — the kind humans have.&lt;/p&gt;

&lt;p&gt;That question grabbed me and wouldn't let go. So I read about the hippocampus, Ebbinghaus forgetting curves, complementary learning systems, slow-wave sleep replay. And then I built it.&lt;/p&gt;




&lt;p&gt;## The Architecture&lt;/p&gt;

&lt;p&gt;┌──────────────────────────────────────────────────────────────┐&lt;br&gt;
  │                  5-TIER MEMORY ARCHITECTURE                    │&lt;br&gt;
  ├──────────────────────────────────────────────────────────────┤&lt;br&gt;
  │                                                               │&lt;br&gt;
  │  TIER 1+2  EPISODIC BUFFER        Brain: Hippocampus         │&lt;br&gt;
  │  ═══════════════════════════════   Speed: &amp;lt;1ms                │&lt;br&gt;
  │  64 working + 256 episodic items                              │&lt;br&gt;
  │  Ebbinghaus decay: n^0.3 · e^(-λt) · importance              │&lt;br&gt;
  │  Forget threshold: 0.05  |  Promote threshold: 0.65          │&lt;br&gt;
  │  Access-based reinforcement on every read                     │&lt;br&gt;
  │                          ↓                                    │&lt;br&gt;
  │  TIER 3    SEMANTIC STORE          Brain: Neocortex           │&lt;br&gt;
  │  ═══════════════════════════════   Speed: ~50ms               │&lt;br&gt;
  │  ChromaDB v2 · all-mpnet-base-v2 (768-dim)                    │&lt;br&gt;
  │  Hybrid search: dense + BM25 → Reciprocal Rank Fusion         │&lt;br&gt;
  │                          ↓                                    │&lt;br&gt;
  │  TIER 4    KNOWLEDGE GRAPH         Brain: Association Cortex  │&lt;br&gt;
  │  ═══════════════════════════════   Speed: ~100ms              │&lt;br&gt;
  │  spaCy NER + 30 keyword patterns                              │&lt;br&gt;
  │  NetworkX + SQLite · Multi-hop reasoning                      │&lt;br&gt;
  │  Auto-relation inference: uses/works_on/depends_on            │&lt;br&gt;
  │                          ↓                                    │&lt;br&gt;
  │  TIER 5    COLD ARCHIVE            Brain: Distributed Cortex  │&lt;br&gt;
  │  ═══════════════════════════════   Speed: async               │&lt;br&gt;
  │  Filesystem JSON · YYYY/MM organization                       │&lt;br&gt;
  │  Full-text search · Thaw to active · Compact summaries        │&lt;br&gt;
  │                                                               │&lt;br&gt;
  ├──────────────────────────────────────────────────────────────┤&lt;br&gt;
  │  CONSOLIDATION PIPELINE (Sleep Analog)                        │&lt;br&gt;
  │  ═══════════════════════════════════                          │&lt;br&gt;
  │  Decay → Cluster → Merge(LLM) → Rescore → Promote →          │&lt;br&gt;
  │  FindRelations(LLM) → Archive → Neurogenesis                 │&lt;br&gt;
  │  Quick: 60ms (every 5min)  |  Full: ~3s (on idle)            │&lt;br&gt;
  ├──────────────────────────────────────────────────────────────┤&lt;br&gt;
  │  STANDBY NEURON AGENTS                                        │&lt;br&gt;
  │  ═══════════════════════════════════                          │&lt;br&gt;
  │  ┌──────────┐  ┌──────────┐  ┌──────────┐                    │&lt;br&gt;
  │  │ Personal │  │   Tech   │  │ Projects │  ...N agents       │&lt;br&gt;
  │  │  Agent   │  │  Agent   │  │  Agent   │                    │&lt;br&gt;
  │  │          │  │          │  │          │                    │&lt;br&gt;
  │  │ DEEP 💤  │  │ LIGHT 🟡 │  │ DEEP 💤  │                    │&lt;br&gt;
  │  │ 0 RAM    │  │ ~3KB RAM │  │ 0 RAM    │                    │&lt;br&gt;
  │  │ 0 tokens │  │  ready   │  │ 0 tokens │                    │&lt;br&gt;
  │  └──────────┘  └──────────┘  └──────────┘                    │&lt;br&gt;
  │                                                               │&lt;br&gt;
  │  Wake: trigger patterns + centroid similarity                 │&lt;br&gt;
  │  Vote: all agents score → top K form consensus panel          │&lt;br&gt;
  │  Sleep: return to idle after task (zero token consumption)    │&lt;br&gt;
  │  Spawn: Neurogenesis creates agents from memory clusters      │&lt;br&gt;
  │  Prune: inactive agents auto-removed after 30 days            │&lt;br&gt;
  └──────────────────────────────────────────────────────────────┘&lt;/p&gt;




&lt;p&gt;## The Two Novel Things&lt;/p&gt;

&lt;p&gt;### 1. Standby Neuron Agents&lt;/p&gt;

&lt;p&gt;Here's what hit me: biological neurons don't all fire at once. Only ~2% are active at any moment. The rest wait, silent, consuming almost nothing.&lt;/p&gt;

&lt;p&gt;So I built agents that work the same way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DEEP_SLEEP&lt;/strong&gt; — JSON file on disk. 0 RAM. 0 tokens. Just a prompt template and trigger patterns. Most agents live here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LIGHT_SLEEP&lt;/strong&gt; — Centroid vector loaded (~3KB RAM). Agent checks: "Does this query match my domain?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ACTIVE&lt;/strong&gt; — Woken by the Router when relevance score exceeds threshold. Does the job. Returns to sleep immediately after.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They wake on trigger pattern matching + embedding similarity, vote in consensus panels (all agents score the query, top K get activated), communicate via sparse blackboard, and return to sleep.&lt;/p&gt;

&lt;p&gt;### 2. Neurogenesis&lt;/p&gt;

&lt;p&gt;When the system notices a cluster of memories forming around a new topic — say, 6+ memories about Minecraft — it &lt;em&gt;automatically spawns&lt;/em&gt; a new specialized agent for that domain.&lt;/p&gt;

&lt;p&gt;If an agent hasn't been woken in 30 days? It gets pruned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nobody else does either of these.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;## Sleep as a Feature&lt;/p&gt;

&lt;p&gt;The consolidation pipeline runs like biological sleep — reorganizing, merging duplicates, strengthening important memories, letting the rest decay:&lt;/p&gt;

&lt;p&gt;Quick mode: 60ms, zero LLM calls, runs every 5 minutes&lt;br&gt;
  Full mode:  ~3 seconds, LLM-powered merge + relation discovery,&lt;br&gt;
              triggers on idle detection (15+ minutes of inactivity)&lt;/p&gt;




&lt;p&gt;## Does It Work?&lt;/p&gt;

&lt;p&gt;Episodic Buffer      41/41 ✅&lt;br&gt;
  Memory Integration   32/32 ✅&lt;br&gt;
  Semantic Store       26/26 ✅&lt;br&gt;
  Knowledge Graph      37/37 ✅&lt;br&gt;
  Consolidation        31/31 ✅&lt;br&gt;
  Standby Agents       42/42 ✅&lt;br&gt;
  Cold Archive         27/27 ✅&lt;br&gt;
  Cross-Tier (E2E)     88/88 ✅&lt;br&gt;
  ────────────────────────────&lt;br&gt;
  TOTAL               324/324 ✅&lt;/p&gt;




&lt;p&gt;## Why I'm Sharing This&lt;/p&gt;

&lt;p&gt;I'm 18, from Slovakia. This started as a random vibecoding project — a voice assistant. But the memory problem grabbed me and wouldn't let go.&lt;/p&gt;

&lt;p&gt;The long-term thing that drives me: I believe better memory for AI could eventually help with conditions like Alzheimer's. Computational memory prosthesis. That's the direction I want to explore.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/FogyXT/JARVIS" rel="noopener noreferrer"&gt;github.com/FogyXT/JARVIS&lt;/a&gt;&lt;br&gt;
  &lt;strong&gt;License:&lt;/strong&gt; AGPL-3.0&lt;/p&gt;

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

</description>
      <category>ai</category>
      <category>programming</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
  </channel>
</rss>
