A React 19 web dashboard for claude-flow v3 multi-agent orchestration. RuFloUI wraps the claude-flow CLI behind an Express + WebSocket backend and presents a full visual interface for managing swarms, agents, tasks, and workflows.
- Swarm Management — Initialize, configure, and shut down multi-agent swarms with visual topology controls
- Agent Monitoring — Real-time agent status cards with live output streaming, status-colored indicators, and working animations
- Agent Visualization — Tree view of agent hierarchies built from JSONL session logs in real-time
- Task Board — Kanban-style task management with create, assign, execute, and continue workflows
- Task Continuation — Follow-up on completed/failed tasks with automatic context injection from previous results
- Output History — All task output persisted to disk and viewable across page reloads and server restarts
- Multi-Agent Pipeline — Coordinator plans subtasks, workers execute in dependency waves, results synthesized
- Hive Mind — Consensus protocols, broadcast messaging, and shared memory across agents with automatic cross-task knowledge sharing
- Workflows — Create and manage multi-step execution workflows
- Performance — Benchmarking, latency/throughput charts, bottleneck analysis
- Memory Store — Key-value memory with namespace support and semantic search
- Neural Network — Training, optimization, and pattern monitoring
- Sessions — Save and restore orchestration state
- Hooks — Event-driven hook configuration
- Configuration — Runtime config editor with import/export
- State Persistence — Full backend state persisted to
.ruflo/with debounced writes and crash recovery
| Layer | Technology |
|---|---|
| Frontend | React 19, Vite 6, TypeScript, Zustand, Recharts, Lucide Icons |
| Backend | Express, WebSocket (ws), Node.js |
| CLI | claude-flow v3 (@claude-flow/cli local binary) |
| AI | Claude Code CLI for multi-agent execution |
# Clone the repository
git clone https://github.com/Mario-PB/rufloui.git
cd rufloui
# Install dependencies
npm install
# Start both frontend and backend
npm run devThis starts:
- Frontend (Vite) on
http://localhost:28588 - Backend (Express + WebSocket) on
http://localhost:28580
The frontend proxies /api/* and /ws to the backend automatically.
npm install rufloui# Configure npm to use GitHub Packages for the @mario-pb scope
echo "@mario-pb:registry=https://npm.pkg.github.com" >> .npmrc
# Install the package
npm install @mario-pb/ruflouiNote: GitHub Packages requires a personal access token with
read:packagesscope. Add it to your~/.npmrc://npm.pkg.github.com/:_authToken=YOUR_TOKEN
npm run dev:frontend # Vite dev server on port 28588
npm run dev:backend # Express API on port 28580 (auto-reloads)npm run build # TypeScript check + Vite production build -> dist/
npm run preview # Preview the production buildsrc/
├── backend/
│ ├── server.ts # Express API + WebSocket + multi-agent pipeline
│ └── jsonl-monitor.ts # Real-time JSONL session file monitoring
└── frontend/
├── main.tsx # Entry point
├── App.tsx # Router, WebSocket handler, data fetching
├── api.ts # API client (typed fetch wrapper)
├── store.ts # Zustand global state with sessionStorage persistence
├── types.ts # TypeScript interfaces
├── styles/
│ └── global.css # CSS variables, dark theme, animations
├── components/
│ ├── Layout.tsx # App shell with sidebar navigation
│ ├── ErrorBoundary.tsx
│ └── ui/ # Button, Card, StatusBadge
└── pages/
├── Dashboard.tsx # System health, agent overview
├── SwarmPanel.tsx # Swarm init/shutdown/config
├── SwarmMonitorPanel.tsx # Real-time agent cards with output
├── AgentsPanel.tsx # Agent lifecycle management
├── AgentVizPanel.tsx # JSONL-based agent tree visualization
├── TasksPanel.tsx # Kanban task board with continuation
├── WorkflowsPanel.tsx # Workflow management
├── HiveMindPanel.tsx # Consensus and broadcast
├── MemoryPanel.tsx # Key-value memory store
├── NeuralPanel.tsx # Neural network status
├── PerformancePanel.tsx # Benchmarks and charts
├── SessionsPanel.tsx # Save/restore sessions
├── HooksPanel.tsx # Hook configuration
├── ConfigPanel.tsx # Configuration editor
└── LogsPanel.tsx # Live activity logs
Browser (React 19) Express Backend
┌────────────────────┐ ┌────────────────────────┐
│ Vite :28588 │───REST /api──>│ Express :28580 │
│ Zustand Store │<──WebSocket──>│ WebSocket Server │
│ sessionStorage │ │ │
└────────────────────┘ │ ┌──────────────────┐ │
│ │ claude-flow CLI │ │
│ │ (npx @claude-flow │ │
│ │ /cli@latest) │ │
│ └──────────────────┘ │
│ ┌──────────────────┐ │
│ │ Claude Code CLI │ │
│ │ (claude -p) │ │
│ │ Multi-agent pipe │ │
│ └──────────────────┘ │
│ ┌──────────────────┐ │
│ │ .ruflo/ │ │
│ │ state.json │ │
│ │ outputs/*.jsonl │ │
│ └──────────────────┘ │
└────────────────────────┘
When a task is assigned to the swarm:
- Planning Phase — Coordinator agent receives the task with
--max-turns 1(no tool access), outputs a JSON plan breaking work into subtasks - Execution Phase — Each subtask dispatched to the matching specialist agent (researcher, coder, tester, reviewer) with full tool access, respecting dependency order
- Parallel Waves — Independent subtasks run in parallel; dependent ones wait for prerequisites
- Hive Mind Memory — Each subtask result stored to shared memory; subsequent tasks receive accumulated knowledge as context
- Completion — Results synthesized, task marked complete, output persisted to disk
Once the app is running, here's how to go from zero to a working multi-agent swarm in under a minute:
- Initialize a swarm — Go to Swarm in the sidebar, pick a topology (e.g.
mesh), and click Initialize Swarm. - Spawn agents — Go to Agents, select a type (e.g.
coder), give it a name, and click Spawn. Repeat for other roles you need (researcher,tester, etc.). - Create a task — Go to Tasks, click Create Task, fill in a title and description (e.g. "Write a fibonacci function in Python with tests").
- Assign to swarm — On the task card, click Assign to Swarm. The multi-agent pipeline kicks in: a coordinator plans subtasks, specialist agents execute them in parallel waves.
- Watch it live — Switch to Swarm Monitor to see agent cards light up with real-time output and the orange working glow animation.
- Continue if needed — When a task completes, click Continue Task to send a follow-up instruction with full context from the previous run.
- Node.js >= 18
- claude-flow CLI — installed locally via
npm install(included as dependency) - Claude Code CLI (optional) — required for multi-agent pipeline execution. Install guide
Monitor and control RuFloUI from Telegram.
Option A: Via the Dashboard (recommended)
- Message @BotFather on Telegram, send
/newbot, and follow the prompts to get a bot token. - Message your new bot with
/startto get your chat ID. - Open the RuFloUI dashboard, go to Config > Telegram Bot.
- Paste the bot token and chat ID, click Save & Connect.
- Click Send Test to verify.
Option B: Via environment variables
TELEGRAM_ENABLED=true
TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
TELEGRAM_CHAT_ID=123456789Restart the backend. You should see [telegram] Bot connected as @YourBotName in logs.
| Command | Description |
|---|---|
/start |
Shows your chat ID (works for any user) |
/status |
System health + swarm status + agent/task counts |
/agents |
List active agents with type and status |
/tasks |
Tasks grouped by status (with inline refresh) |
/task <id> |
Detailed info for one task (with cancel button) |
/workflows |
List workflows with status and step count |
/swarm |
Swarm topology and status |
/run <description> |
Create and assign a task to the swarm |
/cancel <id> |
Cancel a running or pending task |
/help |
List available commands |
Configurable per-type via the dashboard (Config > Telegram Bot > Notifications):
| Notification | Default | Description |
|---|---|---|
| Task Completed | On | Task finishes successfully |
| Task Failed | On | Task fails with error |
| Swarm Initialized | On | Swarm starts up |
| Swarm Shutdown | On | Swarm stops |
| Agent Error | On | Agent encounters an error |
| Task Progress | Off | Progress updates (throttled to 1 per 30s per task) |
- Only the configured chat ID can execute commands. Other users see their chat ID via
/startbut cannot issue commands. - Bot token is stored in
.ruflo/telegram.jsonwith restricted file permissions (0600). - The dashboard masks the token, showing only the last 4 characters.
Set TELEGRAM_ENABLED=false (or remove it) and restart. The bot is completely inert when disabled.
Automatically create swarm tasks when GitHub issues are opened.
- Open the RuFloUI dashboard, go to Webhooks in the sidebar.
- Click Edit, enable GitHub Webhooks, paste your GitHub token (needs
reposcope). - Optionally add a webhook secret and list repos to monitor.
- Copy the Webhook URL shown on the page.
- In your GitHub repo, go to Settings > Webhooks > Add webhook.
- Paste the URL, set content type to
application/json, select Issues events.
When a new issue is opened in a monitored repo:
- GitHub sends a POST to RuFloUI's webhook endpoint
- RuFloUI validates the HMAC signature (if secret configured)
- A high-priority task is created with the issue title and body
- If a swarm is active, the task is auto-assigned to the multi-agent pipeline
- Agents investigate, code, test, and produce a result
- Event status updates in the Webhooks page as the task progresses
| Variable | Default | Description |
|---|---|---|
GITHUB_WEBHOOK_ENABLED |
false |
Enable webhook receiver |
GITHUB_TOKEN |
— | GitHub PAT with repo scope |
GITHUB_WEBHOOK_SECRET |
— | HMAC secret for signature validation |
GITHUB_WEBHOOK_REPOS |
— | Comma-separated owner/repo list |
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a branch for your feature or fix:
git checkout -b feat/my-feature - Make your changes — follow the existing code style (TypeScript, inline CSS, Zustand for state)
- Test — run
npm run buildto make sure everything compiles - Submit a PR — describe what you changed and why
- Give us a star — It helps others discover the project and motivates us to keep improving it
- Spread the word — Share RuFloUI with your team, on social media, or in developer communities
- Report bugs — Open an issue with steps to reproduce
- Suggest features — We'd love to hear your ideas
If RuFloUI is useful to you, consider buying us a coffee:
By default, RuFloUI runs Claude Code agents with --dangerously-skip-permissions, which allows agents to read, write, and execute commands without asking for confirmation. This is required for autonomous multi-agent orchestration — without it, every agent would block waiting for human approval on each action.
To disable autonomous mode, set the environment variable:
RUFLOUI_SKIP_PERMISSIONS=falseWith this disabled, agents will require manual approval for each tool use, which effectively prevents autonomous swarm execution.
RuFloUI is designed for local development use. The API server binds to localhost and restricts CORS to the frontend origin. Do not expose the API to untrusted networks without adding authentication.
- claude-flow — The CLI orchestration engine that powers RuFloUI
- Claude Code — Anthropic's CLI for Claude AI
MIT
