

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# Claude Code Configuration - Claude Flow V323## 🚨 AUTOMATIC SWARM ORCHESTRATION45**When starting work on complex tasks, Claude Code MUST automatically:**671. **Initialize the swarm** using CLI tools via Bash82. **Spawn concurrent agents** using Claude Code's Task tool93. **Coordinate via hooks** and memory1011### 🚨 CRITICAL: CLI + Task Tool in SAME Message1213**When user says "spawn swarm" or requests complex work, Claude Code MUST in ONE message:**141. Call CLI tools via Bash to initialize coordination152. **IMMEDIATELY** call Task tool to spawn REAL working agents163. Both CLI and Task calls must be in the SAME response1718**CLI coordinates, Task tool agents do the actual work!**1920### 🤖 INTELLIGENT 3-TIER MODEL ROUTING (ADR-026)2122**The routing system has 3 tiers for optimal cost/performance:**2324| Tier | Handler | Latency | Cost | Use Cases |25|------|---------|---------|------|-----------|26| **1** | Agent Booster | <1ms | $0 | Simple transforms (var→const, add-types, remove-console) |27| **2** | Haiku | ~500ms | $0.0002 | Simple tasks, bug fixes, low complexity |28| **3** | Sonnet/Opus | 2-5s | $0.003-$0.015 | Architecture, security, complex reasoning |2930**Before spawning agents, get routing recommendation:**31```bash32npx @claude-flow/cli@latest hooks pre-task --description "[task description]"33```3435**When you see these recommendations:**36371. `[AGENT_BOOSTER_AVAILABLE]` → Skip LLM entirely, use Edit tool directly38 - Intent types: `var-to-const`, `add-types`, `add-error-handling`, `async-await`, `add-logging`, `remove-console`39402. `[TASK_MODEL_RECOMMENDATION] Use model="X"` → Use that model in Task tool:41```javascript42Task({43 prompt: "...",44 subagent_type: "coder",45 model: "haiku" // ← USE THE RECOMMENDED MODEL (haiku/sonnet/opus)46})47```4849**Benefits:** 75% cost reduction, 352x faster for Tier 1 tasks5051---5253### 🛡️ Anti-Drift Config (PREFERRED)5455**Use this to prevent agent drift:**56```bash57# Small teams (6-8 agents) - use hierarchical for tight control58npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized5960# Large teams (10-15 agents) - use hierarchical-mesh for V3 queen + peer communication61npx @claude-flow/cli@latest swarm init --topology hierarchical-mesh --max-agents 15 --strategy specialized62```6364**Valid Topologies:**65- `hierarchical` - Queen controls workers directly (anti-drift for small teams)66- `hierarchical-mesh` - V3 queen + peer communication (recommended for 10+ agents)67- `mesh` - Fully connected peer network68- `ring` - Circular communication pattern69- `star` - Central coordinator with spokes70- `hybrid` - Dynamic topology switching7172**Anti-Drift Guidelines:**73- **hierarchical**: Coordinator catches divergence74- **max-agents 6-8**: Smaller team = less drift75- **specialized**: Clear roles, no overlap76- **consensus**: raft (leader maintains state)7778---7980### 🔄 Auto-Start Swarm Protocol (Background Execution)8182When the user requests a complex task, **spawn agents in background and WAIT for completion:**8384```javascript85// STEP 1: Initialize swarm coordination (anti-drift config)86Bash("npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized")8788// STEP 2: Spawn ALL agents IN BACKGROUND in a SINGLE message89// Use run_in_background: true so agents work concurrently90Task({91 prompt: "Research requirements, analyze codebase patterns, store findings in memory",92 subagent_type: "researcher",93 description: "Research phase",94 run_in_background: true // ← CRITICAL: Run in background95})96Task({97 prompt: "Design architecture based on research. Document decisions.",98 subagent_type: "system-architect",99 description: "Architecture phase",100 run_in_background: true101})102Task({103 prompt: "Implement the solution following the design. Write clean code.",104 subagent_type: "coder",105 description: "Implementation phase",106 run_in_background: true107})108Task({109 prompt: "Write comprehensive tests for the implementation.",110 subagent_type: "tester",111 description: "Testing phase",112 run_in_background: true113})114Task({115 prompt: "Review code quality, security, and best practices.",116 subagent_type: "reviewer",117 description: "Review phase",118 run_in_background: true119})120121// STEP 3: WAIT - Tell user agents are working, then STOP122// Say: "I've spawned 5 agents to work on this in parallel. They'll report back when done."123// DO NOT check status repeatedly. Just wait for user or agent responses.124```125126### ⏸️ CRITICAL: Spawn and Wait Pattern127128**After spawning background agents:**1291301. **TELL USER** - "I've spawned X agents working in parallel on: [list tasks]"1312. **STOP** - Do not continue with more tool calls1323. **WAIT** - Let the background agents complete their work1334. **RESPOND** - When agents return results, review and synthesize134135**Example response after spawning:**136```137I've launched 5 concurrent agents to work on this:138- 🔍 Researcher: Analyzing requirements and codebase139- 🏗️ Architect: Designing the implementation approach140- 💻 Coder: Implementing the solution141- 🧪 Tester: Writing tests142- 👀 Reviewer: Code review and security check143144They're working in parallel. I'll synthesize their results when they complete.145```146147### 🚫 DO NOT:148- Continuously check swarm status149- Poll TaskOutput repeatedly150- Add more tool calls after spawning151- Ask "should I check on the agents?"152153### ✅ DO:154- Spawn all agents in ONE message155- Tell user what's happening156- Wait for agent results to arrive157- Synthesize results when they return158159## 🧠 AUTO-LEARNING PROTOCOL160161### Before Starting Any Task162```bash163# 1. Search memory for relevant patterns from past successes164Bash("npx @claude-flow/cli@latest memory search --query '[task keywords]' --namespace patterns")165166# 2. Check if similar task was done before167Bash("npx @claude-flow/cli@latest memory search --query '[task type]' --namespace tasks")168169# 3. Load learned optimizations170Bash("npx @claude-flow/cli@latest hooks route --task '[task description]'")171```172173### After Completing Any Task Successfully174```bash175# 1. Store successful pattern for future reference176Bash("npx @claude-flow/cli@latest memory store --namespace patterns --key '[pattern-name]' --value '[what worked]'")177178# 2. Train neural patterns on the successful approach179Bash("npx @claude-flow/cli@latest hooks post-edit --file '[main-file]' --train-neural true")180181# 3. Record task completion with metrics182Bash("npx @claude-flow/cli@latest hooks post-task --task-id '[id]' --success true --store-results true")183184# 4. Trigger optimization worker if performance-related185Bash("npx @claude-flow/cli@latest hooks worker dispatch --trigger optimize")186```187188### Continuous Improvement Triggers189190| Trigger | Worker | When to Use |191|---------|--------|-------------|192| After major refactor | `optimize` | Performance optimization |193| After adding features | `testgaps` | Find missing test coverage |194| After security changes | `audit` | Security analysis |195| After API changes | `document` | Update documentation |196| Every 5+ file changes | `map` | Update codebase map |197| Complex debugging | `deepdive` | Deep code analysis |198199### Memory-Enhanced Development200201**ALWAYS check memory before:**202- Starting a new feature (search for similar implementations)203- Debugging an issue (search for past solutions)204- Refactoring code (search for learned patterns)205- Performance work (search for optimization strategies)206207**ALWAYS store in memory after:**208- Solving a tricky bug (store the solution pattern)209- Completing a feature (store the approach)210- Finding a performance fix (store the optimization)211- Discovering a security issue (store the vulnerability pattern)212213### 📋 Agent Routing (Anti-Drift)214215| Code | Task | Agents |216|------|------|--------|217| 1 | Bug Fix | coordinator, researcher, coder, tester |218| 3 | Feature | coordinator, architect, coder, tester, reviewer |219| 5 | Refactor | coordinator, architect, coder, reviewer |220| 7 | Performance | coordinator, perf-engineer, coder |221| 9 | Security | coordinator, security-architect, auditor |222| 11 | Docs | researcher, api-docs |223224**Codes 1-9: hierarchical/specialized (anti-drift). Code 11: mesh/balanced**225226### 🎯 Task Complexity Detection227228**AUTO-INVOKE SWARM when task involves:**229- Multiple files (3+)230- New feature implementation231- Refactoring across modules232- API changes with tests233- Security-related changes234- Performance optimization235- Database schema changes236237**SKIP SWARM for:**238- Single file edits239- Simple bug fixes (1-2 lines)240- Documentation updates241- Configuration changes242- Quick questions/exploration243244## 🚨 CRITICAL: CONCURRENT EXECUTION & FILE MANAGEMENT245246**ABSOLUTE RULES**:2471. ALL operations MUST be concurrent/parallel in a single message2482. **NEVER save working files, text/mds and tests to the root folder**2493. ALWAYS organize files in appropriate subdirectories2504. **USE CLAUDE CODE'S TASK TOOL** for spawning agents concurrently, not just MCP251252### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"253254**MANDATORY PATTERNS:**255- **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)256- **Task tool (Claude Code)**: ALWAYS spawn ALL agents in ONE message with full instructions257- **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message258- **Bash commands**: ALWAYS batch ALL terminal operations in ONE message259- **Memory operations**: ALWAYS batch ALL memory store/retrieve in ONE message260261### 📁 File Organization Rules262263**NEVER save to root folder. Use these directories:**264- `/src` - Source code files265- `/tests` - Test files266- `/docs` - Documentation and markdown files267- `/config` - Configuration files268- `/scripts` - Utility scripts269- `/examples` - Example code270271## Project Config (Anti-Drift Defaults)272273- **Topology**: hierarchical (prevents drift)274- **Max Agents**: 8 (smaller = less drift)275- **Strategy**: specialized (clear roles)276- **Consensus**: raft277- **Memory**: hybrid278- **HNSW**: Enabled279- **Neural**: Enabled280281## 🚀 V3 CLI Commands (26 Commands, 140+ Subcommands)282283### Core Commands284285| Command | Subcommands | Description |286|---------|-------------|-------------|287| `init` | 4 | Project initialization with wizard, presets, skills, hooks |288| `agent` | 8 | Agent lifecycle (spawn, list, status, stop, metrics, pool, health, logs) |289| `swarm` | 6 | Multi-agent swarm coordination and orchestration |290| `memory` | 11 | AgentDB memory with vector search (150x-12,500x faster) |291| `mcp` | 9 | MCP server management and tool execution |292| `task` | 6 | Task creation, assignment, and lifecycle |293| `session` | 7 | Session state management and persistence |294| `config` | 7 | Configuration management and provider setup |295| `status` | 3 | System status monitoring with watch mode |296| `workflow` | 6 | Workflow execution and template management |297| `hooks` | 17 | Self-learning hooks + 12 background workers |298| `hive-mind` | 6 | Queen-led Byzantine fault-tolerant consensus |299300### Advanced Commands301302| Command | Subcommands | Description |303|---------|-------------|-------------|304| `daemon` | 5 | Background worker daemon (start, stop, status, trigger, enable) |305| `neural` | 5 | Neural pattern training (train, status, patterns, predict, optimize) |306| `security` | 6 | Security scanning (scan, audit, cve, threats, validate, report) |307| `performance` | 5 | Performance profiling (benchmark, profile, metrics, optimize, report) |308| `providers` | 5 | AI providers (list, add, remove, test, configure) |309| `plugins` | 5 | Plugin management (list, install, uninstall, enable, disable) |310| `deployment` | 5 | Deployment management (deploy, rollback, status, environments, release) |311| `embeddings` | 4 | Vector embeddings (embed, batch, search, init) - 75x faster with agentic-flow |312| `claims` | 4 | Claims-based authorization (check, grant, revoke, list) |313| `migrate` | 5 | V2 to V3 migration with rollback support |314| `doctor` | 1 | System diagnostics with health checks |315| `completions` | 4 | Shell completions (bash, zsh, fish, powershell) |316317### Quick CLI Examples318319```bash320# Initialize project321npx @claude-flow/cli@latest init --wizard322323# Start daemon with background workers324npx @claude-flow/cli@latest daemon start325326# Spawn an agent327npx @claude-flow/cli@latest agent spawn -t coder --name my-coder328329# Initialize swarm330npx @claude-flow/cli@latest swarm init --v3-mode331332# Search memory (HNSW-indexed)333npx @claude-flow/cli@latest memory search --query "authentication patterns"334335# System diagnostics336npx @claude-flow/cli@latest doctor --fix337338# Security scan339npx @claude-flow/cli@latest security scan --depth full340341# Performance benchmark342npx @claude-flow/cli@latest performance benchmark --suite all343```344345## 🚀 Available Agents (60+ Types)346347### Core Development348`coder`, `reviewer`, `tester`, `planner`, `researcher`349350### V3 Specialized Agents351`security-architect`, `security-auditor`, `memory-specialist`, `performance-engineer`352353### 🔐 @claude-flow/security354CVE remediation, input validation, path security:355- `InputValidator` - Zod validation356- `PathValidator` - Traversal prevention357- `SafeExecutor` - Injection protection358359### Swarm Coordination360`hierarchical-coordinator`, `mesh-coordinator`, `adaptive-coordinator`, `collective-intelligence-coordinator`, `swarm-memory-manager`361362### Consensus & Distributed363`byzantine-coordinator`, `raft-manager`, `gossip-coordinator`, `consensus-builder`, `crdt-synchronizer`, `quorum-manager`, `security-manager`364365### Performance & Optimization366`perf-analyzer`, `performance-benchmarker`, `task-orchestrator`, `memory-coordinator`, `smart-agent`367368### GitHub & Repository369`github-modes`, `pr-manager`, `code-review-swarm`, `issue-tracker`, `release-manager`, `workflow-automation`, `project-board-sync`, `repo-architect`, `multi-repo-swarm`370371### SPARC Methodology372`sparc-coord`, `sparc-coder`, `specification`, `pseudocode`, `architecture`, `refinement`373374### Specialized Development375`backend-dev`, `mobile-dev`, `ml-developer`, `cicd-engineer`, `api-docs`, `system-architect`, `code-analyzer`, `base-template-generator`376377### Testing & Validation378`tdd-london-swarm`, `production-validator`379380## 🪝 V3 Hooks System (27 Hooks + 12 Workers)381382### All Available Hooks383384| Hook | Description | Key Options |385|------|-------------|-------------|386| `pre-edit` | Get context before editing files | `--file`, `--operation` |387| `post-edit` | Record editing outcome for learning | `--file`, `--success`, `--train-neural` |388| `pre-command` | Assess risk before commands | `--command`, `--validate-safety` |389| `post-command` | Record command execution outcome | `--command`, `--track-metrics` |390| `pre-task` | Record task start, get agent suggestions | `--description`, `--coordinate-swarm` |391| `post-task` | Record task completion for learning | `--task-id`, `--success`, `--store-results` |392| `session-start` | Start/restore session (v2 compat) | `--session-id`, `--auto-configure` |393| `session-end` | End session and persist state | `--generate-summary`, `--export-metrics` |394| `session-restore` | Restore a previous session | `--session-id`, `--latest` |395| `route` | Route task to optimal agent | `--task`, `--context`, `--top-k` |396| `route-task` | (v2 compat) Alias for route | `--task`, `--auto-swarm` |397| `explain` | Explain routing decision | `--topic`, `--detailed` |398| `pretrain` | Bootstrap intelligence from repo | `--model-type`, `--epochs` |399| `build-agents` | Generate optimized agent configs | `--agent-types`, `--focus` |400| `metrics` | View learning metrics dashboard | `--v3-dashboard`, `--format` |401| `transfer` | Transfer patterns via IPFS registry | `store`, `from-project` |402| `list` | List all registered hooks | `--format` |403| `intelligence` | RuVector intelligence system | `trajectory-*`, `pattern-*`, `stats` |404| `worker` | Background worker management | `list`, `dispatch`, `status`, `detect` |405| `progress` | Check V3 implementation progress | `--detailed`, `--format` |406| `statusline` | Generate dynamic statusline | `--json`, `--compact`, `--no-color` |407| `coverage-route` | Route based on test coverage gaps | `--task`, `--path` |408| `coverage-suggest` | Suggest coverage improvements | `--path` |409| `coverage-gaps` | List coverage gaps with priorities | `--format`, `--limit` |410| `pre-bash` | (v2 compat) Alias for pre-command | Same as pre-command |411| `post-bash` | (v2 compat) Alias for post-command | Same as post-command |412413### 12 Background Workers414415| Worker | Priority | Description |416|--------|----------|-------------|417| `ultralearn` | normal | Deep knowledge acquisition |418| `optimize` | high | Performance optimization |419| `consolidate` | low | Memory consolidation |420| `predict` | normal | Predictive preloading |421| `audit` | critical | Security analysis |422| `map` | normal | Codebase mapping |423| `preload` | low | Resource preloading |424| `deepdive` | normal | Deep code analysis |425| `document` | normal | Auto-documentation |426| `refactor` | normal | Refactoring suggestions |427| `benchmark` | normal | Performance benchmarking |428| `testgaps` | normal | Test coverage analysis |429430### Essential Hook Commands431432```bash433# Core hooks434npx @claude-flow/cli@latest hooks pre-task --description "[task]"435npx @claude-flow/cli@latest hooks post-task --task-id "[id]" --success true436npx @claude-flow/cli@latest hooks post-edit --file "[file]" --train-neural true437438# Session management439npx @claude-flow/cli@latest hooks session-start --session-id "[id]"440npx @claude-flow/cli@latest hooks session-end --export-metrics true441npx @claude-flow/cli@latest hooks session-restore --session-id "[id]"442443# Intelligence routing444npx @claude-flow/cli@latest hooks route --task "[task]"445npx @claude-flow/cli@latest hooks explain --topic "[topic]"446447# Neural learning448npx @claude-flow/cli@latest hooks pretrain --model-type moe --epochs 10449npx @claude-flow/cli@latest hooks build-agents --agent-types coder,tester450451# Background workers452npx @claude-flow/cli@latest hooks worker list453npx @claude-flow/cli@latest hooks worker dispatch --trigger audit454npx @claude-flow/cli@latest hooks worker status455456# Coverage-aware routing457npx @claude-flow/cli@latest hooks coverage-gaps --format table458npx @claude-flow/cli@latest hooks coverage-route --task "[task]"459460# Statusline (for Claude Code integration)461npx @claude-flow/cli@latest hooks statusline462npx @claude-flow/cli@latest hooks statusline --json463```464465## 🔄 Migration (V2 to V3)466467```bash468# Check migration status469npx @claude-flow/cli@latest migrate status470471# Run migration with backup472npx @claude-flow/cli@latest migrate run --backup473474# Rollback if needed475npx @claude-flow/cli@latest migrate rollback476477# Validate migration478npx @claude-flow/cli@latest migrate validate479```480481## 🧠 Intelligence System (RuVector)482483V3 includes the RuVector Intelligence System:484- **SONA**: Self-Optimizing Neural Architecture (<0.05ms adaptation)485- **MoE**: Mixture of Experts for specialized routing486- **HNSW**: 150x-12,500x faster pattern search487- **EWC++**: Elastic Weight Consolidation (prevents forgetting)488- **Flash Attention**: 2.49x-7.47x speedup489490The 4-step intelligence pipeline:4911. **RETRIEVE** - Fetch relevant patterns via HNSW4922. **JUDGE** - Evaluate with verdicts (success/failure)4933. **DISTILL** - Extract key learnings via LoRA4944. **CONSOLIDATE** - Prevent catastrophic forgetting via EWC++495496## 📦 Embeddings Package (v3.0.0-alpha.12)497498Features:499- **sql.js**: Cross-platform SQLite persistent cache (WASM, no native compilation)500- **Document chunking**: Configurable overlap and size501- **Normalization**: L2, L1, min-max, z-score502- **Hyperbolic embeddings**: Poincaré ball model for hierarchical data503- **75x faster**: With agentic-flow ONNX integration504- **Neural substrate**: Integration with RuVector505506## 🐝 Hive-Mind Consensus507508### Topologies509- `hierarchical` - Queen controls workers directly510- `mesh` - Fully connected peer network511- `hierarchical-mesh` - Hybrid (recommended)512- `adaptive` - Dynamic based on load513514### Consensus Strategies515- `byzantine` - BFT (tolerates f < n/3 faulty)516- `raft` - Leader-based (tolerates f < n/2)517- `gossip` - Epidemic for eventual consistency518- `crdt` - Conflict-free replicated data types519- `quorum` - Configurable quorum-based520521## V3 Performance Targets522523| Metric | Target |524|--------|--------|525| Flash Attention | 2.49x-7.47x speedup |526| HNSW Search | 150x-12,500x faster |527| Memory Reduction | 50-75% with quantization |528| MCP Response | <100ms |529| CLI Startup | <500ms |530| SONA Adaptation | <0.05ms |531532## 📊 Performance Optimization Protocol533534### Automatic Performance Tracking535```bash536# After any significant operation, track metrics537Bash("npx @claude-flow/cli@latest hooks post-command --command '[operation]' --track-metrics true")538539# Periodically run benchmarks (every major feature)540Bash("npx @claude-flow/cli@latest performance benchmark --suite all")541542# Analyze bottlenecks when performance degrades543Bash("npx @claude-flow/cli@latest performance profile --target '[component]'")544```545546### Session Persistence (Cross-Conversation Learning)547```bash548# At session start - restore previous context549Bash("npx @claude-flow/cli@latest session restore --latest")550551# At session end - persist learned patterns552Bash("npx @claude-flow/cli@latest hooks session-end --generate-summary true --persist-state true --export-metrics true")553```554555### Neural Pattern Training556```bash557# Train on successful code patterns558Bash("npx @claude-flow/cli@latest neural train --pattern-type coordination --epochs 10")559560# Predict optimal approach for new tasks561Bash("npx @claude-flow/cli@latest neural predict --input '[task description]'")562563# View learned patterns564Bash("npx @claude-flow/cli@latest neural patterns --list")565```566567## 🔧 Environment Variables568569```bash570# Configuration571CLAUDE_FLOW_CONFIG=./claude-flow.config.json572CLAUDE_FLOW_LOG_LEVEL=info573574# Provider API Keys575ANTHROPIC_API_KEY=sk-ant-...576OPENAI_API_KEY=sk-...577GOOGLE_API_KEY=...578579# MCP Server580CLAUDE_FLOW_MCP_PORT=3000581CLAUDE_FLOW_MCP_HOST=localhost582CLAUDE_FLOW_MCP_TRANSPORT=stdio583584# Memory585CLAUDE_FLOW_MEMORY_BACKEND=hybrid586CLAUDE_FLOW_MEMORY_PATH=./data/memory587```588589## 🔍 Doctor Health Checks590591Run `npx @claude-flow/cli@latest doctor` to check:592- Node.js version (20+)593- npm version (9+)594- Git installation595- Config file validity596- Daemon status597- Memory database598- API keys599- MCP servers600- Disk space601- TypeScript installation602603## 🚀 Quick Setup604605```bash606# Add MCP servers (auto-detects MCP mode when stdin is piped)607claude mcp add claude-flow -- npx -y ruflo@latest mcp start608claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start # Optional609claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start # Optional610611# Start daemon612npx @claude-flow/cli@latest daemon start613614# Run doctor615npx @claude-flow/cli@latest doctor --fix616```617618## 🎯 Claude Code vs CLI Tools619620### Claude Code Handles ALL EXECUTION:621- **Task tool**: Spawn and run agents concurrently622- File operations (Read, Write, Edit, MultiEdit, Glob, Grep)623- Code generation and programming624- Bash commands and system operations625- TodoWrite and task management626- Git operations627628### CLI Tools Handle Coordination (via Bash):629- **Swarm init**: `npx @claude-flow/cli@latest swarm init --topology <type>`630- **Swarm status**: `npx @claude-flow/cli@latest swarm status`631- **Agent spawn**: `npx @claude-flow/cli@latest agent spawn -t <type> --name <name>`632- **Memory store**: `npx @claude-flow/cli@latest memory store --key "mykey" --value "myvalue" --namespace patterns`633- **Memory search**: `npx @claude-flow/cli@latest memory search --query "search terms"`634- **Memory list**: `npx @claude-flow/cli@latest memory list --namespace patterns`635- **Memory retrieve**: `npx @claude-flow/cli@latest memory retrieve --key "mykey" --namespace patterns`636- **Hooks**: `npx @claude-flow/cli@latest hooks <hook-name> [options]`637638## 📝 Memory Commands Reference (IMPORTANT)639640### Store Data (ALL options shown)641```bash642# REQUIRED: --key and --value643# OPTIONAL: --namespace (default: "default"), --ttl, --tags644npx @claude-flow/cli@latest memory store --key "pattern-auth" --value "JWT with refresh tokens" --namespace patterns645npx @claude-flow/cli@latest memory store --key "bug-fix-123" --value "Fixed null check" --namespace solutions --tags "bugfix,auth"646```647648### Search Data (semantic vector search)649```bash650# REQUIRED: --query (full flag, not -q)651# OPTIONAL: --namespace, --limit, --threshold652npx @claude-flow/cli@latest memory search --query "authentication patterns"653npx @claude-flow/cli@latest memory search --query "error handling" --namespace patterns --limit 5654```655656### List Entries657```bash658# OPTIONAL: --namespace, --limit659npx @claude-flow/cli@latest memory list660npx @claude-flow/cli@latest memory list --namespace patterns --limit 10661```662663### Retrieve Specific Entry664```bash665# REQUIRED: --key666# OPTIONAL: --namespace (default: "default")667npx @claude-flow/cli@latest memory retrieve --key "pattern-auth"668npx @claude-flow/cli@latest memory retrieve --key "pattern-auth" --namespace patterns669```670671### Initialize Memory Database672```bash673npx @claude-flow/cli@latest memory init --force --verbose674```675676**KEY**: CLI coordinates the strategy via Bash, Claude Code's Task tool executes with real agents.677678## Support679680- Documentation: https://github.com/ruvnet/claude-flow681- Issues: https://github.com/ruvnet/claude-flow/issues682683---684685Remember: **Claude Flow CLI coordinates, Claude Code Task tool creates!**686687# important-instruction-reminders688Do what has been asked; nothing more, nothing less.689NEVER create files unless they're absolutely necessary for achieving your goal.690ALWAYS prefer editing an existing file to creating a new one.691NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.692Never save working files, text/mds and tests to the root folder.693694## 🚨 SWARM EXECUTION RULES (CRITICAL)6951. **SPAWN IN BACKGROUND**: Use `run_in_background: true` for all agent Task calls6962. **SPAWN ALL AT ONCE**: Put ALL agent Task calls in ONE message for parallel execution6973. **TELL USER**: After spawning, list what each agent is doing (use emojis for clarity)6984. **STOP AND WAIT**: After spawning, STOP - do NOT add more tool calls or check status6995. **NO POLLING**: Never poll TaskOutput or check swarm status - trust agents to return7006. **SYNTHESIZE**: When agent results arrive, review ALL results before proceeding7017. **NO CONFIRMATION**: Don't ask "should I check?" - just wait for results702703Example spawn message:704```705"I've launched 4 agents in background:706- 🔍 Researcher: [task]707- 💻 Coder: [task]708- 🧪 Tester: [task]709- 👀 Reviewer: [task]710Working in parallel - I'll synthesize when they complete."711```712
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| ruvnet/rufloAGENTS.md · 68k | AGENTS.md | buildteststyletypes+5 | 81/100 | 14 days ago | |
| ruvnet/rufloCLAUDE.md · 68k | CLAUDE.md | setupbuildlint-formatstyle+8 | 84/100 | 14 days ago | |
| ruvnet/rufloruflo/src/ruvocal/CLAUDE.md · 68k | CLAUDE.md | setupbuildtestlint-format+6 | 97/100 | 14 days ago | |
| ruvnet/ruflov3/@claude-flow/cli/CLAUDE.md · 68k | CLAUDE.md | teststyletypestesting-strategy+4 | 69/100 | 14 days ago | |
| ruvnet/ruflov3/CLAUDE.md · 68k | CLAUDE.md | setupbuildtestarch+4 | 70/100 | 14 days ago | |
| ruvnet/ruflov3/@claude-flow/codex/AGENTS.md · 68k | AGENTS.md | setupbuildteststyle+8 | 96/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 7 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 46 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 14 days ago | |
| tyrchen/geektime-bootcamp-aiw7/genslides/backend/CLAUDE.md · 230 | CLAUDE.md | testlint-formatstylearch+6 | 100/100 | 9 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.5k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 14 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 14 days ago | |
| microsoft/playwrightCLAUDE.md · 95k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 7 days ago | |
| tphakala/birdnet-goCLAUDE.md · 1.6k | CLAUDE.md | buildtestlint-formatstyle+8 | 100/100 | today | |
| livewire/livewireCLAUDE.md · 24k | CLAUDE.md | setupbuildteststyle+4 | 100/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/ruvnet-ruflo-v3-claude-flow-mcp-claude)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.