Monitoring tools give real-time visibility into swarm state, agent performance, task queue progress, and background worker execution. All monitoring tools are read-only and safe to call at any frequency — they query the coordination ledger maintained by Ruflo’s daemon without affecting running agents or tasks.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.
swarm_status
Get the current state of an active swarm including its topology, active agent count, pending task queue, consensus state, and uptime.
The swarm to query. If omitted, returns a summary of all active swarms.
Unique swarm identifier.
Active topology:
hierarchical, mesh, ring, or star.Number of agents currently spawned and active in the swarm.
Task queue breakdown:
{ pending, running, completed, failed }.Current consensus state:
stable, electing, or split. A split state indicates agents are failing to reach consensus and may need intervention.Swarm uptime in seconds since
swarm_init.agent_list
List all agents with their types, current status, and assigned tasks. Use this to identify idle agents available for new work or to spot agents that have stalled.
Filter results to agents belonging to a specific swarm. Omit to list all agents across all active swarms.
Filter agents by current status.
active— Currently executing a taskidle— Spawned and waiting for workstopped— Gracefully terminated
agent_metrics
Get detailed performance metrics for a specific agent. Useful for identifying slow agents, high failure rates, or unusual token consumption patterns.
The agent name as returned by
agent_list or agent_spawn.Total number of tasks the agent has completed since spawning.
Average task completion time in milliseconds.
Task success rate (0–1). Values below 0.7 may indicate the agent type is mismatched to the tasks it is receiving.
Cumulative token usage:
{ inputTokens, outputTokens, totalTokens, estimatedCostUSD }.ISO 8601 timestamp of the agent’s most recent activity.
task_status
Get the current status and progress of a specific task by its ID.
The task identifier as returned by
task_orchestrate.Task identifier.
Current task status:
queued, assigned, running, completed, or failed.Name of the agent currently executing or that last executed the task.
Estimated completion percentage (0–100), if reported by the executing agent.
ISO 8601 timestamp when the task began execution.
ISO 8601 estimated completion timestamp based on average task duration for this agent type. Absent for queued tasks.
Background Worker Tools
Ruflo runs 12 background workers that fire automatically based on context triggers (file changes, session events, performance thresholds). The worker tools give you visibility into their execution and let you trigger them manually.Worker Types
| Worker | Trigger | What It Does |
|---|---|---|
ultralearn | First session in new codebase | Deep knowledge acquisition across the whole project |
optimize | Operation takes > 2s | Surfaces performance improvement suggestions |
consolidate | Every 30 min or session end | Merges and deduplicates memory entries |
predict | Similar task seen before | Preloads likely resources into cache |
audit | Changes to auth/crypto files | Runs a security vulnerability scan |
map | New directories created | Updates codebase structure mapping |
preload | Cache miss on frequent patterns | Warms the LRU cache |
deepdive | File > 500 lines edited | Deep code analysis and annotation |
document | New functions or classes added | Generates or updates documentation |
refactor | Duplicate code detected | Produces refactoring suggestions |
benchmark | Performance-critical changes | Runs performance benchmarks |
testgaps | Code changes without tests | Identifies missing test coverage |
worker/run
Trigger a background worker manually without waiting for its context trigger.
Worker name from the table above.
Path or description of the context to run the worker against.
worker/status
Get the current status of the worker pool: which workers are running, queued, or idle.
worker/alerts
Get alerts triggered by worker execution. Workers emit alerts when they detect actionable findings (security vulnerabilities, coverage gaps, performance regressions).
worker/history
Get the execution history of all background workers with timing and outcome data.
Model Routing Observability
Ruflo’s Thompson sampling model router (Haiku / Sonnet / Opus) records routing decisions that you can query for cost and accuracy analysis.The router self-corrects after approximately 50 routing outcomes. Early sessions may not reflect optimal routing; routing accuracy improves automatically as the Beta(α, β) priors converge.
