Garry open-sourced GBrain, a knowledge management system using hybrid search and multi-strategy chun
Code Maintenance📅 2026/04/10
#Agent#Developer#Documentation#GitHub#Low Risk#Manual Trigger#RAG#Reusable#Semi-Automatic#上下文管理#代码仓库
garry open-sourced his own openclaw/hermes knowledge brain. example: your agent has 1,000 days of logs. you ask about something from last march. it pulls the wrong thing. gbrain fixes that. plenty of tools do this. gbrain's difference: three chunking strategies: → recursive: fast, deterministic baseline → semantic: cosine similarity + Savitzky-Golay smoothing to find topic boundaries → llm-guided: haiku judges topic shifts in sliding windows, highest cost, strongest semantic boundary detection hybrid search via RRF fusion. contract-first tool generation: operations.ts → CLI + MCP + tool definitions, change one place, all agents sync. GBRAIN_SKILLPACK.md: tells your agent when to read, when to write, how to detect entities, how to back-link. an operating manual for the knowledge layer. storing 133 days of markdown was never hard. the hard part is when something you wrote on day 87 is exactly what's needed on day 134, and your agent pulls it up on its own.
