Commit graph

6 commits

Author SHA1 Message Date
Claude
651b0e6134 feat(cli): Implement full hooks system in Rust CLI
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.
2025-12-27 01:08:36 +00:00
Claude
c39521a79f docs(hooks): Clarify current vs planned implementation status
Added clear status notes to README.md and CLI_REFERENCE.md:

Current (working):
- .claude/intelligence/cli.js (Node.js)
- All hooks, memory, v3, and swarm commands functional

Planned (see Implementation Plan):
- npx ruvector hooks (Rust CLI)
- Portable, cross-platform hooks management
2025-12-27 00:37:55 +00:00
Claude
5e778c381b docs(hooks): Add complete CLI reference with all intelligence commands
Added comprehensive documentation for all CLI commands from the actual
intelligence layer implementation:

Memory Commands:
- remember, recall, route (vector memory operations)

V3 Intelligence Features:
- record-error, suggest-fix (error pattern learning)
- suggest-next, should-test (file sequence prediction)

Swarm/Hive-Mind Commands:
- swarm-register, swarm-coordinate, swarm-optimize
- swarm-recommend, swarm-heal, swarm-stats

Updated Commands Overview with organized categories:
- Core Commands, Hook Execution, Session, Memory, V3 Features, Swarm

Total documentation: 6,648 lines across 10 files
2025-12-27 00:33:19 +00:00
Claude
80181f9f46 docs(hooks): Add missing PreCompact, Stop, env, and permissions docs
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
2025-12-27 00:30:00 +00:00
Claude
36932836df docs(hooks): Add comprehensive hooks system documentation
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
2025-12-27 00:27:19 +00:00
rUv
ebaf40b6e4 docs: Add generic hooks system implementation plan (#83) 2025-12-25 22:33:28 -05:00