By benediktms
Local-first personal knowledge base — tasks with dependencies, semantic memory, typed records, and the overview guide.
Local-first personal knowledge base with semantic memory, task management, and records. Use when work needs persistent context, task tracking with dependencies, or semantic search across notes and episodes.
Check async job queue status
List all registered brain projects
Cluster and summarize recent episodes by temporal proximity
Record a reusable procedure (how-to) to memory
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A local-first personal knowledge base with task management and memory retrieval, exposing token-budgeted tools to AI agents over MCP.
Long-running AI agents face a hard constraint: context windows are finite, and filling them with irrelevant content wastes both money and reasoning quality. Research on agentic memory systems — MemGPT, Generative Agents, Mem0 — has converged on the same insight: agents need explicit mechanisms to control what they read and how much they read, not just better retrieval.
Existing tools don't solve this well:
brain takes a different position: run everything locally, combine all retrieval signals into a hybrid score, enforce token budgets at the API level, and treat Markdown files as the durable source of truth.
brain is a Rust daemon that manages tasks, records, and Markdown notes. It incrementally indexes content into a dual-store system (SQLite for full-text search and metadata, LanceDB for 384-dim vector embeddings) and serves retrieval tools over MCP stdio JSON-RPC.
Token budgeting is a first-class constraint. memory.retrieve supports three levels of detail (L0 extractive abstracts ~100 tokens, L1 LLM summaries ~2000 tokens, L2 full source). Agents choose their budget upfront and get LOD-adjusted content in a single call, spending context window space efficiently.
Hybrid scoring combines six signals — vector similarity, BM25 keyword ranking, recency decay, backlink count, tag match, and importance — into a single relevance score. A strategy parameter shifts signal weights per query type: lookup upweights keyword precision; planning upweights recency and link structure; synthesis upweights semantic similarity.
Everything runs on-device. No network calls, no API keys, no ongoing cost after the initial ~130MB model download. The entire index can be rebuilt from the Markdown files at any time.
An event-sourced task system with dependencies, labels, and comments. Tasks are automatically indexed into the memory system as they are created or updated, making them semantically searchable alongside notes.
Hybrid retrieval combining vector search (LanceDB) and keyword search (SQLite FTS5). Supports episodic memory (episodes), procedural memory (procedures), and reflective synthesis (reflections).
Content-addressed storage for typed work products and snapshots. Records can be linked to tasks or note chunks, providing a durable audit trail of documents, analyses, plans, and state captures.
Markdown-based knowledge base. brain watches your note directories and incrementally indexes changes, extracting wiki-links, tags, and heading-aware chunks.
An internal job system for deferred and recurring work. Handles background tasks like embedding stale content, generating summaries, and consolidating episodic memories into reflections.
Install the brain CLI before the plugin marketplace step. The Claude Code plugin's hooks (
SessionStart,UserPromptSubmit,PreCompact,Stop,PreToolUse) shell out to thebrainbinary. If the CLI is not installed first, all hooks will silently no-op — no error will appear in Claude Code.
brew install benediktms/brain/brain
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/benediktms/brain/releases/latest/download/brain-installer.sh | sh
Requires Rust (stable, edition 2024), just, and protobuf (brew install protobuf or apt install protobuf-compiler).
git clone https://github.com/benediktms/brain.git
cd brain
just install # builds the binary, symlinks it to ~/bin, installs hooks
just docs # regenerates AGENTS.md + CLAUDE.md for AI agents
AGENTS.md and CLAUDE.md are generated locally from a template in crates/cli/src/commands/init.rs and are not checked into git — fresh clones don't have them until just docs runs. The pre-commit hook keeps them refreshed on every commit.
brain init ~/notes
brain daemon start
npx claudepluginhub benediktms/brain --plugin brainMulti-agent orchestration framework with neural_link coordination and brain memory
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Comprehensive startup business analysis with market sizing (TAM/SAM/SOM), financial modeling, team planning, and strategic research
v9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications