whereismyai
Brain4Agent
Brain4Agent is a long-term memory module for AI agents featuring CJK-first retrieval and SQLite storage.
Brain4Agent provides long-term memory storage for AI agents, saving conversation turns in a single SQLite file and retrieving them by session. The system relies on BM25 retrieval without requiring an API key, model call, or accelerator, achieving single-digit milliseconds per query. It supports CJK languages out of the box using character bigrams without needing a segmentation model. The library reports objective evidence like missing terms and corpus gaps rather than confidence scores. It is designed for developers building AI agents who need reliable, fast session-level memory management.
Brain4Agent at a glance
- Best for: Software engineer
- Runs on: Windows, macOS, Linux, API, CLI, self-hosted, open source
- Pricing: Free
- Released: November 2026
- Category: AI agent tool
- Website: github.com/sparkofspike/brain4agent
Key features
- Stores agent turns in SQLite files
- Performs CJK-first BM25 retrieval
- Runs without model calls or API keys
- Reports evidence and missing terms
- Supports bulk imports from JSONL
- Includes an optional MCP server
- Provides Python library functions
Use it for
- Storing agent conversation turns
- Searching past agent sessions
- Bulk loading execution history
- Managing agent memory context
Alternatives to Brain4Agent
- Tigerless Agent Memory — Maintains agent history in portable, greppable Markdown files without API keys.
- Memory Brain — Provides five-tier memory, hybrid retrieval, and forgetting governance.
- Supermemory — Integrates long-term memory into AI coding agents with a single prompt.
- Mnemosyne — It provides sub-millisecond memory access with no external service costs.
- TencentDB Agent Memory — It unifies cross-agent memory assets, skill libraries, wikis, and code graphs.
- Agentmemoryrepo — Enables agents to navigate memories like a wiki and share knowledge across sessions.
- EverOS — It enables agents to learn from experience and improves over time without manual coding.
- SimpleMem — Provides semantic lossless compression to reduce token consumption and maintain long-term context.
- AgentMemory — It runs locally with zero external databases and achieves high retrieval recall.
- Beeuni — Agents retain context and improve skills over time through a controlled review process.
- LongMemory — Provides immutable, temporal, and governed recall instead of simple vector retrieval.
- ReMe — It enables local-first, file-native long-term memory sharing across multiple AI agents.
All Brain4Agent alternatives