mrboups/xbrain

Self-hostable, MCP-native memory backend for teams of humans and AI agents. A FastAPI service enforces a tagging contract (team/project scope, visibility, confidence, truth level, source, validation) over PostgreSQL, Qdrant, and Neo4j, with team-scoped, truth-filtered retrieval across multiple chat frontends.

2Stars on the repository
104Mods indexed here, across every type
20d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

SessionStart

01

mrboups/xbrain

Hook Claude Code

One of 4 in settings.json

Runs when a session starts, executing gsd-check-update.js and gsd-session-state.sh via node (2 commands). From mrboups/xbrain.

not rated 2 20d ago A tokens not measured copy · 100% MIT

PostToolUse

02

mrboups/xbrain

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Bash, Edit, Write, MultiEdit, Agent, Task, Read, Write and Edit tool calls, executing gsd-context-monitor.js, gsd-read-injection-scanner.js and gsd-phase-boundary.sh via node (3 commands). From mrboups/xbrain.

not rated 2 20d ago A tokens not measured copy · 89% MIT

PreToolUse

03

mrboups/xbrain

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Write, Edit, Write, Edit, Write, Edit and Bash tool calls, executing gsd-prompt-guard.js, gsd-read-guard.js, gsd-workflow-guard.js and gsd-validate-commit.sh via node (4 commands). From mrboups/xbrain.

not rated 2 20d ago A tokens not measured copy · 47% MIT