Skip to content

feat: Open Brain v1.0 -- semantic knowledge server - #2

Merged
rodaddy merged 1 commit into
mainfrom
wip/open-brain-init
Mar 15, 2026
Merged

feat: Open Brain v1.0 -- semantic knowledge server#2
rodaddy merged 1 commit into
mainfrom
wip/open-brain-init

Conversation

@rodaddy

@rodaddy rodaddy commented Mar 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Complete MCP server with 6 tools: log_thought, log_decision, search_brain, find_person, session_save, session_load
  • PostgreSQL + pgvector backend with LiteLLM embeddings (gemini-embedding-001, 768 dims)
  • Role-based auth (admin, agent, discord, n8n, readonly) with bearer tokens
  • StreamableHTTP transport with per-session MCP server instances
  • Content hash deduplication on embeddings
  • Health check fix: auth header for LiteLLM proxy
  • SessionEnd capture hook for automatic knowledge ingestion

Phases Completed

  1. Foundation (DB, auth, logging, migrations)
  2. Core Tools (log_thought, log_decision, search_brain)
  3. Secondary Tools (find_person, session_save, session_load)
  4. Operational Hardening (health checks, graceful shutdown, CI)
  5. Consumer Integration (hooks, Discord capture, mcp2cli)

What's Next

PAI integration (wiring session-wrap, session-start, continuous capture) will be handled in skippy-agentspace as a consumer integration phase.

Test plan

  • bun test passes all unit tests
  • bun run typecheck clean
  • Health endpoint returns 200 with LiteLLM auth
  • MCP tools callable via mcp2cli
  • Session hooks fire on session start/end/compaction

🤖 Generated with Claude Code

Health check endpoint was failing when LiteLLM proxy requires API key auth.
Added LITELLM_API_KEY bearer token to the health check fetch call.

New SessionEnd hook (open-brain-session-capture.ts) captures session
knowledge -- git commits, diff stats, decisions -- to Open Brain on
session end. Silent on all errors to never block session teardown.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant