Code Brain

•
11
•

Enhances AI coding agents with persistent, repo-local memory, advanced code search, guardrails, and integrated tooling for efficient development workflows.

Code Brain provides essential, repo-local infrastructure designed for serious AI coding agents like Claude Code, Codex CLI, and Google Antigravity. It unifies project memory, BM25 code search, hook policies, and MCP tools within a single workspace, addressing common AI agent limitations such as forgetting context, over-reading code, and generating excessive output. By transforming a repository into an agent-ready operating layer, Code Brain ensures agents operate with token awareness, retrieve relevant code efficiently, and adhere to defined guardrails, all while maintaining local-first data integrity.

Características Principales

01Guardrails to prevent destructive operations, data leaks, and excessive output
02Unified memory, search, and hooks for multiple AI agents (Claude, Codex, Antigravity)
03Hashline-safe edits for precise code modifications with line+SHA anchors
04Token-aware context management with BM25/FTS5 code search and compact context packs
05Offline memory consolidation with a salience-ranked HOT cache for optimized context loading
060 GitHub stars

Casos de Uso

01Enhancing AI agents' ability to accurately search and understand codebases
02Implementing safety guardrails and audit trails for AI-driven development
03Managing shared project memory and context across different AI coding agents