Cross-project context loaded at the start of every Claude Code session.
- project-name - Brief description of what this project is about
- Python: Use
uvfor package management - Style: Prefer concise, readable code
Combine vector similarity (70%) with BM25 keyword matching (30%) for best results. FTS catches exact terms, vectors catch semantic similarity.
- SessionStart: Surface open threads first, then key decisions
- UserPromptSubmit: Auto-nudge to save memos after ~20 messages
Use temp DB → swap pattern to prevent corruption during rebuilds.
- sqlite-vec syntax: Use
WHERE embedding MATCH ? AND k = N, notLIMIT N - Plugin structure: Components at repo root, not nested in subdirectory
- Hook timeouts: UserPromptSubmit is 3s, PreCompact is 10s, SessionEnd is 30s, SessionStart is 7s