Add comprehensive hooks subcommand to ruvector CLI with:
Core Commands:
- init: Initialize hooks in project
- install: Install hooks into Claude settings
- stats: Show intelligence statistics
Hook Operations:
- pre-edit/post-edit: File editing intelligence
- pre-command/post-command: Command execution hooks
- session-start/session-end: Session management
- pre-compact: Pre-compact hook
Memory & Learning:
- remember: Store content in semantic memory
- recall: Search memory semantically
- learn: Record Q-learning trajectories
- suggest: Get best action for state
- route: Route task to best agent
V3 Intelligence:
- record-error: Learn from error patterns
- suggest-fix: Get fixes for error codes
- suggest-next: Predict next files to edit
- should-test: Check if tests should run
Swarm/Hive-Mind:
- swarm-register: Register agents
- swarm-coordinate: Record coordination
- swarm-optimize: Optimize task distribution
- swarm-recommend: Get best agent
- swarm-heal: Handle agent failures
- swarm-stats: Show swarm statistics
All commands tested and working. Data persists to
~/.ruvector/intelligence.json for cross-session learning.
Added documentation for settings.json features that were missing:
- PreCompact hooks (manual and auto matchers)
- Stop hook (session-end alias)
- Full env section with all Claude Flow variables
- Permissions section (allow/deny rules)
- Additional settings (includeCoAuthoredBy, enabledMcpjsonServers, statusLine)
- Configuration sections table for quick reference
Complete documentation suite for the RuVector hooks system:
- README.md: Documentation index with system overview
- USER_GUIDE.md: Setup guide for new users
- CLI_REFERENCE.md: Complete CLI command reference
- ARCHITECTURE.md: Technical design and internals
- MIGRATION.md: Guide for upgrading from legacy systems
- TROUBLESHOOTING.md: Common issues and solutions
Updated existing docs with cross-references:
- IMPLEMENTATION_PLAN.md: Added related docs links
- MVP_CHECKLIST.md: Added related docs header
- REVIEW_REPORT.md: Added related docs header
- REVIEW_SUMMARY.md: Added related docs header
Total: 10 documentation files, 6,189 lines