"""
brain/ — 2nd Brain module.

Provides persistent semantic memory: capture thoughts via Telegram (or any
Aide tool), retrieve them by meaning via MCP-connected AI clients.

Architecture:
  - PostgreSQL + pgvector for storage and vector similarity search
  - OpenRouter text-embedding-3-small for 1536-dim embeddings
  - OpenRouter gpt-4o-mini for metadata extraction (type, tags, people, actions)
  - MCP server mounted on FastAPI for external AI client access
  - brain_tool registered with Aide's tool registry for Jarvis access
"""
