Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'

This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
7854 changed files with 3522914 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# Training Commands
Commands for training operations in Claude Flow.
## Available Commands
- [neural-train](./neural-train.md)
- [pattern-learn](./pattern-learn.md)
- [model-update](./model-update.md)

View File

@@ -0,0 +1,25 @@
# model-update
Update neural models with new data.
## Usage
```bash
npx claude-flow training model-update [options]
```
## Options
- `--model <name>` - Model to update
- `--incremental` - Incremental update
- `--validate` - Validate after update
## Examples
```bash
# Update all models
npx claude-flow training model-update
# Specific model
npx claude-flow training model-update --model agent-selector
# Incremental with validation
npx claude-flow training model-update --incremental --validate
```

View File

@@ -0,0 +1,74 @@
# Neural Pattern Training
## Purpose
Continuously improve coordination through neural network learning.
## How Training Works
### 1. Automatic Learning
Every successful operation trains the neural networks:
- Edit patterns for different file types
- Search strategies that find results faster
- Task decomposition approaches
- Agent coordination patterns
### 2. Manual Training
```
Tool: mcp__claude-flow__neural_train
Parameters: {
"pattern_type": "coordination",
"training_data": "successful task patterns",
"epochs": 50
}
```
### 3. Pattern Types
**Cognitive Patterns:**
- Convergent: Focused problem-solving
- Divergent: Creative exploration
- Lateral: Alternative approaches
- Systems: Holistic thinking
- Critical: Analytical evaluation
- Abstract: High-level design
### 4. Improvement Tracking
```
Tool: mcp__claude-flow__neural_status
Result: {
"patterns": {
"convergent": 0.92,
"divergent": 0.87,
"lateral": 0.85
},
"improvement": "5.3% since last session",
"confidence": 0.89
}
```
## Pattern Analysis
```
Tool: mcp__claude-flow__neural_patterns
Parameters: {
"action": "analyze",
"operation": "recent_edits"
}
```
## Benefits
- 🧠 Learns your coding style
- 📈 Improves with each use
- 🎯 Better task predictions
- ⚡ Faster coordination
## CLI Usage
```bash
# Train neural patterns via CLI
npx claude-flow neural train --type coordination --epochs 50
# Check neural status
npx claude-flow neural status
# Analyze patterns
npx claude-flow neural patterns --analyze
```

View File

@@ -0,0 +1,25 @@
# neural-train
Train neural patterns from operations.
## Usage
```bash
npx claude-flow training neural-train [options]
```
## Options
- `--data <source>` - Training data source
- `--model <name>` - Target model
- `--epochs <n>` - Training epochs
## Examples
```bash
# Train from recent ops
npx claude-flow training neural-train --data recent
# Specific model
npx claude-flow training neural-train --model task-predictor
# Custom epochs
npx claude-flow training neural-train --epochs 100
```

View File

@@ -0,0 +1,25 @@
# pattern-learn
Learn patterns from successful operations.
## Usage
```bash
npx claude-flow training pattern-learn [options]
```
## Options
- `--source <type>` - Pattern source
- `--threshold <score>` - Success threshold
- `--save <name>` - Save pattern set
## Examples
```bash
# Learn from all ops
npx claude-flow training pattern-learn
# High success only
npx claude-flow training pattern-learn --threshold 0.9
# Save patterns
npx claude-flow training pattern-learn --save optimal-patterns
```

View File

@@ -0,0 +1,63 @@
# Agent Specialization Training
## Purpose
Train agents to become experts in specific domains for better performance.
## Specialization Areas
### 1. By File Type
Agents automatically specialize based on file extensions:
- **.js/.ts**: Modern JavaScript patterns
- **.py**: Pythonic idioms
- **.go**: Go best practices
- **.rs**: Rust safety patterns
### 2. By Task Type
```
Tool: mcp__claude-flow__agent_spawn
Parameters: {
"type": "coder",
"capabilities": ["react", "typescript", "testing"],
"name": "React Specialist"
}
```
### 3. Training Process
The system trains through:
- Successful edit operations
- Code review patterns
- Error fix approaches
- Performance optimizations
### 4. Specialization Benefits
```
# Check agent specializations
Tool: mcp__claude-flow__agent_list
Parameters: {"swarmId": "current"}
Result shows expertise levels:
{
"agents": [
{
"id": "coder-123",
"specializations": {
"javascript": 0.95,
"react": 0.88,
"testing": 0.82
}
}
]
}
```
## Continuous Improvement
Agents share learnings across sessions for cumulative expertise!
## CLI Usage
```bash
# Train agent specialization via CLI
npx claude-flow train agent --type coder --capabilities "react,typescript"
# Check specializations
npx claude-flow agent list --specializations
```