feat: Add event-bus integration for cross-session insights#59
Conversation
Ingest events from claude-event-bus for queryable cross-session learnings. New MCP tools: - ingest_bus_events(days) - incremental ingestion from event-bus DB - get_bus_events(days, event_type, session_id, repo, limit) - query events New CLI command: - session-analytics-cli bus-events [--days N] [--event-type TYPE] [--repo NAME] Integration: - get_insights() now includes cross_session_activity counts - Supports gotcha_discovered, pattern_found, help_needed, task_completed events Schema: Migration v6 adds bus_events table with indexes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds event-bus integration to session-analytics, enabling ingestion and querying of cross-session events (gotchas, patterns, help requests) from the claude-event-bus database. It includes a new Issues FoundCriticalNone Important
Suggestions
VerdictREQUEST_CHANGES - There's a SQL syntax bug in the type breakdown query that will crash with default parameters, a project convention violation with Automated review by Claude Code |
Summary
ingest_bus_events()andget_bus_events()MCP toolsbus-eventsCLI commandget_insights()for/improve-workflowChanges
storage.pybus_ingest.pyqueries.pyserver.pycli.pypatterns.pyguide.mddocs/event-bus-integration.mdTest plan
bus-eventscommand worksCloses #54
🤖 Generated with Claude Code