Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ruvnet/ruflo/llms.txt

Use this file to discover all available pages before exploring further.

Ruflo’s plugin system serves two audiences. For practitioners, it provides a 35-plugin marketplace covering everything from vector memory and swarm coordination to IoT device management and AI trading. For builders, it exposes a fluent TypeScript SDK — PluginBuilder, MCPToolBuilder, HookBuilder — so you can add custom MCP tools, hooks, and background workers without touching Ruflo’s internals.

Install from the Marketplace

# Install a plugin by name
npx ruflo@latest plugins install -n ruflo-rag-memory

# List all installed plugins
npx ruflo@latest plugins list

# Update a plugin to the latest version
npx ruflo@latest plugins update -n ruflo-rag-memory
For Claude Code plugin installs (adds slash commands only, no MCP registration):
/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-rag-memory@ruflo

Full Plugin Catalog

Core & Orchestration

PluginWhat it does
ruflo-coreFoundation — MCP server, health checks, plugin discovery, coder/researcher/reviewer agents
ruflo-swarmCoordinate multiple agents as a team with hierarchical and mesh topologies
ruflo-autopilotLet agents run autonomously in a loop with task prediction
ruflo-loop-workersSchedule 12 background tasks on a timer via /loop or CronCreate
ruflo-workflowsReusable multi-step task templates with parallel execution and branching
ruflo-federationAgents on different machines collaborate securely with zero-trust identity

Memory & Knowledge

PluginWhat it does
ruflo-agentdbFast vector database for agent memory with HNSW search (150×–12,500× faster than brute force)
ruflo-rag-memorySOTA RAG — hybrid search, Graph RAG, MMR diversity ranking, memory bridge
ruflo-rvfSave and restore agent memory across sessions in portable RVF format
ruflo-ruvectorruvector — GPU-accelerated FlashAttention-3, Graph RAG, 103 MCP tools, Brain AGI
ruflo-knowledge-graphBuild and traverse entity relationship maps with pathfinder traversal

Intelligence & Learning

PluginWhat it does
ruflo-intelligenceAgents learn from past successes via SONA neural patterns and trajectory learning
ruflo-graph-intelligenceSublinear graph reasoning — PageRank, delta updates, complexity-aware execution (ADR-123)
ruflo-daaDynamic Agentic Architecture — dynamic agent behavior and cognitive patterns
ruflo-ruvllmRun local LLMs (Ollama, MicroLoRA) with smart routing and chat formatting
ruflo-goalsBreak big goals into GOAP plans and track progress with horizon management

Code Quality & Testing

PluginWhat it does
ruflo-testgenFind missing tests and generate them with London School TDD workflow
ruflo-browserAutomate browser testing with Playwright
ruflo-jujutsuAnalyze git diffs, score commit risk, suggest reviewers
ruflo-docsGenerate and maintain documentation automatically with drift detection

Security & Compliance

PluginWhat it does
ruflo-security-auditScan for vulnerabilities and CVEs in dependencies and code
ruflo-aidefenceBlock prompt injection, detect PII across 14 types, safety scanning

Architecture & Methodology

PluginWhat it does
ruflo-adrTrack architecture decisions with a living record — create, index, supersede, compliance-check
ruflo-dddScaffold domain-driven design — bounded contexts, aggregates, domain events
ruflo-sparcGuided 5-phase development methodology with quality gates
ruflo-metaharnessGrade your agent setup (1–100), scan tool configs for security issues, snapshot the project to catch regressions
ruflo-arenaCompetitive ruliology — pit agent strategies against each other in tournaments, hill-climb and co-evolve the winners (ADR-147/148)

DevOps & Observability

PluginWhat it does
ruflo-migrationsManage database schema changes safely
ruflo-observabilityStructured logs, distributed traces, and metrics in one place
ruflo-cost-trackerTrack token usage, set budgets, get cost alerts

Extensibility

PluginWhat it does
ruflo-agentRun agents — local WASM sandbox (rvagent) + Anthropic Claude Managed Agents (cloud)
ruflo-plugin-creatorScaffold, validate, and publish your own plugins

Domain-Specific

PluginWhat it does
ruflo-iot-cognitumIoT device management — trust scoring, anomaly detection, fleet management
ruflo-neural-traderneural-trader — AI trading with 4 agents, LSTM/Transformer, Rust/NAPI backtesting, 112+ MCP tools
ruflo-market-dataIngest market data, vectorize OHLCV, detect patterns

Use CasePlugins
Feature developmentruflo-core + ruflo-swarm + ruflo-testgen + ruflo-ddd
Security auditruflo-core + ruflo-security-audit + ruflo-aidefence
Architecture workruflo-core + ruflo-adr + ruflo-ddd + ruflo-sparc
Deep researchruflo-core + ruflo-goals + ruflo-rag-memory + ruflo-intelligence
Vector searchruflo-core + ruflo-ruvector + ruflo-rag-memory + ruflo-knowledge-graph
IoT developmentruflo-core + ruflo-iot-cognitum + ruflo-agentdb
Trading systemsruflo-core + ruflo-neural-trader + ruflo-market-data + ruflo-ruvector

Build Your Own Plugin

1

Scaffold the plugin

The ruflo-plugin-creator plugin scaffolds a new plugin with the correct directory structure, a plugin.json manifest, and example tool/hook stubs:
npx ruflo@latest plugins create --name my-plugin
Or install the creator plugin first:
/plugin install ruflo-plugin-creator@ruflo
2

Implement with the PluginBuilder API

Use the fluent builder API from @claude-flow/plugins to define your plugin’s tools and hooks:
import {
  PluginBuilder,
  MCPToolBuilder,
  HookBuilder,
  HookEvent,
  HookPriority,
} from '@claude-flow/plugins';

const plugin = new PluginBuilder('my-plugin', '1.0.0')
  .withDescription('Code quality analysis plugin')
  .withAuthor('your-name')
  .withMCPTools([
    new MCPToolBuilder('analyze-code')
      .withDescription('Analyze code quality')
      .addStringParam('code', 'The code to analyze', { required: true })
      .addStringParam('language', 'Programming language')
      .withHandler(async (input) => ({
        content: [{ type: 'text', text: JSON.stringify({ issues: [], score: 0.95 }) }],
      }))
      .build(),
  ])
  .withHooks([
    new HookBuilder(HookEvent.PostTaskComplete)
      .withPriority(HookPriority.Normal)
      .when(ctx => ctx.data?.taskType === 'code-analysis')
      .withHandler(async (ctx) => {
        // ctx.data contains task result; persist via your memory backend
        return { success: true };
      })
      .build(),
  ])
  .build();
3

Validate the plugin

Check the plugin manifest, tool schemas, and hook definitions for correctness:
npx ruflo@latest plugins validate --name my-plugin
4

Test the plugin

Run the plugin’s test suite:
npx ruflo@latest plugins test --name my-plugin
5

Publish to the marketplace

Publish to the Ruflo plugin registry so others can install it with /plugin install:
npx ruflo@latest plugins publish --name my-plugin

Plugin SDK Components

ComponentDescriptionKey Features
PluginBuilderFluent builder for assembling a plugin from parts.addTool(), .addHook(), .addWorker(), lifecycle callbacks
MCPToolBuilderBuild typed MCP tools with parameter schemasString, number, boolean, enum params; async handler
HookBuilderBuild lifecycle hooks with conditional executionPriority levels, condition predicates, context transformers
WorkerPoolManaged worker pool with auto-scalingMin/max workers, task queuing, graceful shutdown
ProviderRegistryLLM provider management with fallbackCost optimization, automatic failover across 5 providers
Performance targets: Plugin load <20ms · Hook execution <0.5ms · Worker spawn <50ms

Plugin Hook Events

Plugins can subscribe to these lifecycle events via HookBuilder. Use the HookEvent enum constants from @claude-flow/plugins — not raw strings:
CategoryHookEvent ConstantWire Value
ToolHookEvent.PreToolUsehook:pre-tool-use
ToolHookEvent.PostToolUsehook:post-tool-use
SessionHookEvent.SessionStarthook:session-start
SessionHookEvent.SessionEndhook:session-end
SessionHookEvent.SessionRestorehook:session-restore
TaskHookEvent.PreTaskExecutehook:pre-task-execute
TaskHookEvent.PostTaskCompletehook:post-task-complete
TaskHookEvent.TaskFailedhook:task-failed
FileHookEvent.PreFileWritehook:pre-file-write
FileHookEvent.PostFileWritehook:post-file-write
FileHookEvent.PreFileDeletehook:pre-file-delete
CommandHookEvent.PreCommandhook:pre-command
CommandHookEvent.PostCommandhook:post-command
AgentHookEvent.AgentSpawnedhook:agent-spawned
AgentHookEvent.AgentTerminatedhook:agent-terminated
MemoryHookEvent.PreMemoryStorehook:pre-memory-store
MemoryHookEvent.PostMemoryStorehook:post-memory-store
LearningHookEvent.PatternDetectedhook:pattern-detected
LearningHookEvent.StrategyUpdatedhook:strategy-updated
PluginHookEvent.PluginLoadedhook:plugin-loaded
PluginHookEvent.PluginUnloadedhook:plugin-unloaded
For the complete plugin SDK reference, see Building Plugins.

Build docs developers (and LLMs) love