ezBuilder/code-brain

Persistent memory, BM25 code search, MCP tools, and hook guardrails for AI coding agents — Claude Code, Codex CLI & Antigravity. One local-first .ai/ layer per repo. No SaaS, no network on hot paths.

This repository also configures its own agents. See what code-brain tells them →

11Stars on the repository
36Mods indexed here, across every type
1mo agoLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

UserPromptSubmit

01

ezBuilder/code-brain

Hook Claude Code

One of 5 in settings.json

Runs when you submit a prompt, before the agent sees it, executing user-prompt-submit.sh. From ezBuilder/code-brain.

not rated 11 1mo ago A tokens not measured copy · 64% Apache-2.0

PreToolUse

02

ezBuilder/code-brain

Hook Claude Code

One of 5 in settings.json

Runs before the agent uses a tool for Bash, Read, Edit and Write tool calls, executing block-dangerous.sh, block-secret-commit.sh and protect-secrets.sh (3 commands). From ezBuilder/code-brain.

not rated 11 1mo ago A tokens not measured original Apache-2.0

PostToolUse

03

ezBuilder/code-brain

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Bash, Edit, MultiEdit and Write tool calls, executing post-tool-use.sh. From ezBuilder/code-brain.

not rated 11 1mo ago A tokens not measured original Apache-2.0

SessionStart

04

ezBuilder/code-brain

Hook Claude Code

One of 5 in settings.json

Runs when a session starts on startup, resume, clear and compact, executing session-context.sh. From ezBuilder/code-brain.

not rated 11 1mo ago A tokens not measured original Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: