DEV Community

golflover
golflover

Posted on Originally published at github.com

Building an AI Agent with 17 Brain Regions - Open Source Project

Building an AI Agent with 17 Brain Regions

Most AI agents are stateless tools. MeshCtx is different - it's a cognitive architecture inspired by how the human brain actually works.

Why 17 Brain Regions?

The brain doesn't process everything in one area. Different regions handle different types of memory:

  • Working Memory (16KB context window)
  • Episodic Memory - stores events and experiences
  • Semantic Memory - extracts patterns and knowledge
  • Procedural Memory - learns skills and habits
  • Consolidation - sleep-phase memory optimization

Key Results

Metric Score
EM Score 54.2%
Judge Score 83.3%
Tool Compression -95.5% tokens

The biggest surprise? Sleep-phase consolidation gave us +8.3pp improvement.

Open Source

GitHub: https://github.com/LucyAndLuna2023/meshctx

Built with Python, uses FSRS spaced repetition for memory consolidation.


What brain regions would you add to an AI agent?

Top comments (0)