Second Brain
Serves as a local semantic memory and code structure harvester, providing AI assistants with fine-grained context to optimize token consumption and enhance reasoning quality.
Second Brain is a lightweight, high-performance Model Context Protocol (MCP) server designed to dramatically optimize AI context window consumption. By structuring relational observations in a local SQLite database, it eliminates the need to feed large codebases or heavy document blocks into an AI's context window. This approach significantly reduces token usage while preserving and even enhancing reasoning quality, by offering granular, on-demand contextual insights and inferring non-obvious architectural dependencies.
주요 기능
01Relational Logic for inferring multi-hop architectural dependencies at the database level
02Minimal Footprint using full-text search (BM25) over memory structures instead of heavy vector databases
03Hierarchical Isolation Scoping for dynamically isolating observations by project directory while supporting global rules
04Token Conservation with granular context on-demand
053 GitHub stars
06Zero Overhead Development with sub-30ms Go AST parsing for fast reindexing
사용 사례
01Reducing token usage for AI-driven code analysis and generation
02Optimizing AI context window consumption for development tasks
03Providing fine-grained, localized knowledge and code structure insights to AI assistants