Discover and explore top open-source AI tools and projects—updated daily.
garrytanAI agent knowledge backbone for personal data
New!
Top 14.7% on SourcePulse
This project addresses the challenge of managing and leveraging personal knowledge bases, typically stored as markdown files, as they scale beyond simple text search. It provides a retrieval layer and agent integration framework, enabling AI agents to interact with and augment this knowledge, leading to compounding intelligence over time. GBrain is targeted at individuals managing extensive personal notes, researchers, and developers building AI agents that require persistent, evolving knowledge.
How It Works
GBrain transforms a Git repository of markdown files into a searchable knowledge base using Postgres with the pgvector extension. It implements a hybrid search strategy combining keyword, vector (HNSW), and RRF fusion, augmented by multi-query expansion. The core knowledge model features a "compiled truth" (current understanding, subject to revision) above a strict "append-only timeline" (immutable evidence trail) for each page. AI agents interact via a CLI or MCP interface, executing a read-write loop where new information enriches the brain, making the agent progressively smarter with each interaction.
Quick Start & Requirements
bun (standalone CLI, library, or within OpenClaw/Hermes Agent). Example: bun add github:garrytan/gbrain.pgvector extension (Supabase Pro tier, $25/mo, recommended).text-embedding-3-large).gbrain init wizard configures the database connection and schema. Importing ~7,000 files takes ~30 seconds for text indexing and ~10-15 minutes for embedding generation.Highlighted Details
tsvector) and vector (HNSW) search with RRF scoring, enhanced by multi-query expansion and 4-layer deduplication for robust retrieval.ingest.md, query.md) to define agent behavior and interaction patterns, separating agent logic from the GBrain core.Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or active sponsorships were found in the provided README text. Development appears focused on core functionality and architecture.
Licensing & Compatibility
Limitations & Caveats
11 hours ago
Inactive