UNPKG

claude-flow

Version:

Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration

87 lines (64 loc) โ€ข 3.6 kB
# RuFlo Research > Goal-Oriented Action Planning UI for autonomous AI research workflows. Part of the [RuFlo](https://github.com/ruvnet/ruflo) platform. > Live: [goal.ruv.io](https://goal.ruv.io/) ยท Agents dashboard: [goal.ruv.io/agents](https://goal.ruv.io/agents) Turn plain-English research goals into executable agent plans. RuFlo Research applies classic Goal-Oriented Action Planning (GOAP) โ€” A* search through a state space of actions with preconditions and effects โ€” to autonomous AI research, then dispatches the work to live agents you can inspect in real time. ## Highlights | | | |---|---| | ๐ŸŽฏ **Plain-English goals** | Describe an outcome โ€” RuFlo extracts success criteria, constraints, and implicit preconditions | | ๐Ÿงญ **GOAP A\* planner** | Shortest-path search through actions with preconditions/effects; replans on the fly when state changes | | ๐Ÿค– **Live agent dashboard** | `/agents` shows every spawned agent โ€” role, current step, status, trajectories | | ๐ŸŒณ **Visual plan tree** | Goals render as collapsible action trees with progress, blocked branches, rollbacks | | โ™ป๏ธ **Adaptive replanning** | When an action fails, A* re-runs from the current state instead of restarting | | ๐Ÿ”Œ **Embeddable widget** | Drop the research UI into any site via `<script src="widget.js">` | ## Quick Start ```bash # from /v3/goal_ui npm install npm run dev # main app on http://localhost:8080 ``` For the embeddable widget: ```bash npm run build:widget # produces dist/widget.js + dist/widget.css npm run widget:dev # build widget + start dev server ``` ## Project Structure ``` v3/goal_ui/ โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ components/ # React components (GoalInput, AgentStep, ResearchReportModal, โ€ฆ) โ”‚ โ”œโ”€โ”€ pages/ # Index, Agents, Demo, NotFound โ”‚ โ”œโ”€โ”€ lib/goapPlanner.ts # GOAP A* implementation โ”‚ โ”œโ”€โ”€ integrations/supabase/ # Supabase client + types โ”‚ โ””โ”€โ”€ widget.tsx # Embeddable widget entry โ”œโ”€โ”€ supabase/functions/ # Edge functions (research-step, generate-research-goal, โ€ฆ) โ”œโ”€โ”€ public/ # Static assets, widget-embed.html demo โ”œโ”€โ”€ docs/ # DEPLOYMENT.md, WIDGET-INTEGRATION.md, WIDGET_SETUP.md โ””โ”€โ”€ netlify.toml # Hosting config ``` ## Embedding the Widget ```html <div id="ruflo-research-widget-container"></div> <script> window.RufloResearchWidgetConfig = { primaryColor: "#8b5cf6", accentColor: "#10b981", }; </script> <script src="https://goal.ruv.io/widget.js"></script> <link rel="stylesheet" href="https://goal.ruv.io/widget.css" /> ``` The widget exposes a global `window.RufloResearchWidget` with `init(containerId)` and `version` for programmatic control. See [`docs/WIDGET-INTEGRATION.md`](docs/WIDGET-INTEGRATION.md) for the full integration guide. ## Tech Stack React 18 ยท TypeScript 5 ยท Vite 5 ยท Tailwind 3 ยท shadcn/ui ยท Radix UI ยท React Query ยท React Router ยท Supabase Edge Functions ยท GOAP A* planner ## Deployment Hosted on Netlify (`netlify.toml`) at [goal.ruv.io](https://goal.ruv.io/). See [`docs/DEPLOYMENT.md`](docs/DEPLOYMENT.md) for self-hosting instructions and edge-function deploy steps. ## Environment Copy `example.env` โ†’ `.env` and set the Supabase publishable variables (all `VITE_*` prefixed and safe to ship to the browser): ``` VITE_SUPABASE_URL=... VITE_SUPABASE_PROJECT_ID=... VITE_SUPABASE_PUBLISHABLE_KEY=... ``` ## License MIT โ€” same as the parent [RuFlo](https://github.com/ruvnet/ruflo) project.