mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 00:25:10 +00:00
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.
This commit is contained in:
parent
b3b6e00b1a
commit
4ab66c7314
5 changed files with 1448 additions and 15 deletions
|
|
@ -2,20 +2,24 @@
|
|||
|
||||
Complete command-line reference for the RuVector hooks system.
|
||||
|
||||
> **Implementation Status**
|
||||
> - **Working NOW**: `.claude/intelligence/cli.js` (Node.js)
|
||||
> - **Planned**: `npx ruvector hooks` (Rust CLI - see [Implementation Plan](IMPLEMENTATION_PLAN.md))
|
||||
> **Implementation Status**: ✅ **FULLY IMPLEMENTED**
|
||||
> - **Rust CLI**: `ruvector hooks <command>` (recommended)
|
||||
> - **Node.js**: `.claude/intelligence/cli.js` (legacy)
|
||||
|
||||
## Synopsis
|
||||
|
||||
**Current (Node.js):**
|
||||
**Rust CLI (Recommended):**
|
||||
```bash
|
||||
node .claude/intelligence/cli.js <command> [args]
|
||||
# Direct execution
|
||||
cargo run --bin ruvector -- hooks <command> [options]
|
||||
|
||||
# After installation
|
||||
ruvector hooks <command> [options]
|
||||
```
|
||||
|
||||
**Planned (Rust CLI):**
|
||||
**Node.js (Legacy):**
|
||||
```bash
|
||||
npx ruvector hooks <command> [options]
|
||||
node .claude/intelligence/cli.js <command> [args]
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -2,18 +2,21 @@
|
|||
|
||||
Intelligent hooks for Claude Code that provide automatic agent assignment, code formatting, neural pattern training, and cross-session memory persistence.
|
||||
|
||||
> **Implementation Status**: The hooks intelligence layer is fully functional via Node.js CLI (`.claude/intelligence/cli.js`). The portable Rust CLI (`npx ruvector hooks`) is planned - see [Implementation Plan](IMPLEMENTATION_PLAN.md).
|
||||
> **Implementation Status**: ✅ **FULLY IMPLEMENTED** - Both implementations are now functional:
|
||||
> - **Rust CLI**: `ruvector hooks <command>` (portable, high-performance)
|
||||
> - **Node.js**: `.claude/intelligence/cli.js` (legacy compatibility)
|
||||
|
||||
## Current Implementation
|
||||
## Available Implementations
|
||||
|
||||
```bash
|
||||
# Working NOW - Node.js intelligence layer
|
||||
node .claude/intelligence/cli.js pre-edit <file>
|
||||
node .claude/intelligence/cli.js stats
|
||||
# Rust CLI (recommended - faster, portable)
|
||||
cargo run --bin ruvector -- hooks stats
|
||||
cargo run --bin ruvector -- hooks pre-edit <file>
|
||||
cargo run --bin ruvector -- hooks post-edit <file> --success
|
||||
|
||||
# Planned - Portable Rust CLI (see Implementation Plan)
|
||||
npx ruvector hooks pre-edit --file <file>
|
||||
npx ruvector hooks stats
|
||||
# Node.js (legacy - still functional)
|
||||
node .claude/intelligence/cli.js stats
|
||||
node .claude/intelligence/cli.js pre-edit <file>
|
||||
```
|
||||
|
||||
## Quick Navigation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue