agent-brain
Local-first persistent memory for AI agents with SQLite storage, orchestrated retrieve/extract loops, hybrid retrieval, contradiction checks, correction learning, and optional SuperMemory mirroring.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dobrinalexandru/agent-brainAgent Brain 🧠
Teach your AI once. It remembers forever. It gets smarter over time.
Agent Brain is a modular memory system for AI agents with continuous learning. It stores facts, catches contradictions, learns your habits, ingests external knowledge, tracks what works, learns from mistakes, and adapts to your tone — all in a local SQLite database with real persistence, full-text search, and pluggable storage backends.
Why this exists
Every AI conversation starts from zero. You repeat yourself. It forgets what you taught it. Agent Brain fixes that with a working persistence layer (scripts/memory.sh) and six cognitive modules that the agent selectively invokes based on what the task actually needs.
What makes this different
- Production-grade storage. SQLite with WAL mode and indexed queries. Handles 10,000+ entries without breaking a sweat. JSON backend available as fallback.
- Pluggable backends. Storage abstraction layer means you can swap SQLite for Postgres, Supabase, or any other backend — the command interface stays the same.
- Continuous learning. Corrections track what was wrong, what's right, and why. Successes reinforce what works. Anti-patterns emerge from repeated mistakes.
- Selective dispatch, not a linear pipeline. The orchestrator picks the 1-3 modules relevant to each task. Storing a fact doesn't need Vibe. Reading tone doesn't need Archive.
- Active fact extraction. The agent scans every message for storable information — identity, tech stack, preferences, workflows, project context — without being asked.
- Honest confidence. No fake 0.0-1.0 scores. Four categories (SURE / LIKELY / UNCERTAIN / UNKNOWN) derived from actual metadata — source type, access count, age.
- Hybrid retrieval. Results ranked with lexical + semantic scoring (
--policy fast|balanced|deep) and optional score explainability (--explain). - Supersede, don't delete. Old facts aren't destroyed. They're marked
superseded_bywith a pointer to the replacement, preserving full history. - Decay is mechanical. Entries scale their decay threshold by access count. Heavily-used knowledge persists longer. Unused knowledge fades.
Architecture
Six modules, one orchestrator, pluggable storage.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dobrinalexandru-agent-brain": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
vita
Access the user's personal health data from VITA, their longevity platform. Use this when the user asks about their health, how they're feeling today, sleep, recovery, HRV, supplements, protocols, or wants a daily health briefing. Returns today's AI insight, wearable metrics (Oura/WHOOP), and active supplement stack.
aubrai-longevity
Answer questions about longevity, aging, lifespan extension, and anti-aging research using Aubrai's research engine with cited sources.