An open API service indexing awesome lists of open source software.

https://github.com/oabdelmaksoud/agi-farm-plugin

Multi-agent AI team builder for OpenClaw โ€” bootstrap complete teams with auto-dispatcher, dashboard, and infrastructure
https://github.com/oabdelmaksoud/agi-farm-plugin

agent-framework ai ai-orchestration autonomous-agents devops multi-agent openclaw

Last synced: 3 months ago
JSON representation

Multi-agent AI team builder for OpenClaw โ€” bootstrap complete teams with auto-dispatcher, dashboard, and infrastructure

Awesome Lists containing this project

README

          

# ๐Ÿฆ… AGI Farm

### One wizard. Full multi-agent AI team. Live in minutes.

**Build production-ready AI teams with a single command**

[![npm version](https://img.shields.io/npm/v/agi-farm.svg)](https://www.npmjs.com/package/agi-farm)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![OpenClaw](https://img.shields.io/badge/OpenClaw-Plugin-blue.svg)](https://docs.openclaw.ai)
[![Node.js](https://img.shields.io/badge/Node.js-20%2B-green.svg)](https://nodejs.org/)

[Quick Start](#-quick-start) โ€ข [Features](#-what-it-does) โ€ข [Documentation](#-commands) โ€ข [Architecture](#-architecture)

---

> [!WARNING]
> **Notice: AGI Farm is currently under active development and still has known bugs.** Please use with caution in production environments.

## ๐ŸŽฏ What It Does

**AGI Farm** is an [OpenClaw](https://docs.openclaw.ai) plugin that bootstraps a fully operational multi-agent AI system with everything you need:

| Feature | Description |
|---------|-------------|
| ๐Ÿง™ **Interactive Wizard** | 6 questions โ†’ complete team setup in ~2 minutes |
| ๐Ÿค– **Multi-Agent Teams** | Choose 3, 5, or 11 pre-wired specialist agents |
| ๐Ÿ“ก **Live Ops Dashboard** | React + SSE with real-time updates and interactive HITL/Cron controls |
| ๐Ÿ”„ **Auto-Dispatcher** | Smart task delegation with HITL, backoff & dependencies |
| ๐Ÿ“ฆ **Portable Bundle** | Export your entire team to GitHub with one command |
| ๐Ÿ—๏ธ **ESM Native** | Built for Node 20+ with full ES Module support |
| ๐Ÿ›ก๏ธ **Production Hardened** | Security-audited with CSRF, Origin validation, CSP headers, input sanitization, and timing-safe auth |
| ๐Ÿ” **Security Dashboard** | Real-time vulnerability scanning, auto-fix, and security history tracking |
| ๐Ÿ”„ **Auto-Update** | Detects new releases on GitHub with one-click install from the dashboard |
| โš™๏ธ **Feature-Flagged Runtime** | Optional jobs, skills, memory, policy, approvals, and metering modules |
| ๐Ÿงช **103 Automated Tests** | Unit + integration + API smoke coverage with Jest/ESM |

---

## ๐Ÿ™ Upstream Acknowledgement

Parts of AGI Farm dashboard direction are inspired by the excellent work in **LobsterBoard** by [Curbob](https://github.com/Curbob):

- Upstream repository: https://github.com/Curbob/LobsterBoard
- Upstream license: Business Source License 1.1 (BSL-1.1)

AGI Farm does not copy LobsterBoard code directly; features are re-implemented for AGI Farm architecture and compatibility.

### ๐Ÿ”„ Always-Sync Policy

To stay aligned with upstream updates, this repo now includes:

- Automated scheduled sync workflow: `.github/workflows/lobsterboard-upstream-sync.yml`
- Local sync script: `npm run sync:lobsterboard`
- Snapshot mirror for review/porting: `upstream/lobsterboard/`
- Tracking file: `lobsterboard-resources/LOBSTERBOARD_VERSION`
- Parity plan: `docs/LOBSTERBOARD_PARITY.md`

This keeps upstream diffs visible in PRs so feature ports can be done continuously.

---

## ๐Ÿง™ What's New in v3.3.0

### ๐Ÿš€ Automated Release & Workflow Hardening

Version 3.3.0 standardizes the release process and ensures all GitHub workflows are production-ready.

#### ๐Ÿ—๏ธ Automated Dashboard Launch
- **One-Click Wizard**: The `agi-farm setup` wizard now automatically opens the Paperclip dashboard in your default browser upon successful configuration.
- **Direct Dependencies**: Added `express` as a core dependency for improved dashboard server stability.

#### ๐Ÿ›ก๏ธ Workflow & Compatibility Hardening
- **OpenClaw Compatibility**: Improved version scrubbing (handles `v` prefixes and revision suffixes) for more robust integration testing.
- **Graceful Installation**: Workflows now handle missing NPM versions gracefully, skipping integration tests if a specific version is not yet published.
- **Global PATH Reliability**: Ensured global `npm` bin directories are correctly added to `GITHUB_PATH` across all workflow steps.

#### ๐Ÿ” Security Enhancements
- **Automated Secret Scrubbing**: Upstream sync scripts (`scripts/sync-lobsterboard-upstream.js`) now redact Google OAuth Client IDs and Secrets to prevent GitHub Push Protection violations.
- **Refined Command Execution**: All `agi-farm` commands in workflows now use `npx` for guaranteed executability.

---

## ๐Ÿง™ What's New in v1.9.0

### ๐Ÿš€ Advanced Wizard 2.0 โ€” Industry-Driven Automation

The setup wizard has been completely overhauled from a basic 4-template system to a sophisticated, 6-phase onboarding experience that activates the full depth of the AGI Farm plugin.

#### ๐Ÿ—๏ธ 15 Industry-Specific Blueprints
Choose from professional team compositions across 5 major verticals:
- **Software Engineering**: Startup MVP, Full-Stack Product, Mobile-First App, AI/ML System.
- **Marketing & Growth**: Marketing Campaign, Brand Launch, Performance Marketing.
- **Enterprise & Regulated**: Enterprise Feature, Security-Critical, Compliance & Audit.
- **Research & Development**: Quality-First, Research & Discovery.
- **Creative & Content**: Content Studio, Product Design Sprint.

#### โš™๏ธ Deep Plugin Integration
The wizard now automates what used to be manual post-setup tasks:
- **Budget & OKRs**: Set monthly spend limits and seed your team with industry-specific OKRs immediately.
- **Operational Automation**: Select and activate pre-built cron jobs (daily security scans, weekly velocity reports, auto-dispatcher heartbeats).
- **HITL Security Policy**: Choose your "Human-in-the-Loop" sensitivity level (Low/Medium/High) during setup.
- **Project Seeding**: Start with a pre-populated project and task backlog tailored to your chosen blueprint.
- **AgentShield Integration**: One-click initial security scan to baseline your new workspace.

#### ๐Ÿงน Consolidated Architecture
- Legacy `setup-enhanced.js` has been consolidated into the main `setup.js`.
- Performance improvements in agent creation and SOUL.md template generation.
- Expanded `WORKFLOW_TEMPLATES.md` documentation covering all 15 new blueprints.

---

## ๐Ÿ†• What's New in v1.8.0

### ๐ŸŽจ Complete Dashboard Redesign โ€” Day Theme (Minimalism 3.0 + Glassmorphism 2.0)

The AGI Farm dashboard has been **completely redesigned** with a modern, light-mode UI. Every single one of the 26 tabs has been rewritten from scratch with a premium day-themed aesthetic.

#### โœจ Design System
- **Off-white/pearl backgrounds** (`#F8FAFC` slate palette) with glassmorphism cards and subtle depth shadows
- **Premium typography** โ€” Inter for UI, JetBrains Mono for technical values
- **Accent palette** โ€” Indigo primary, Emerald mint for success, Amber for warnings, Violet for AI/HITL, Red for errors
- **Hover-lift animations**, smooth fade-in transitions, and pill-shaped status badges throughout
- **100% light mode** โ€” All dark `#050505`/`#000`/`rgba(0,0,0)` backgrounds purged from every file

#### ๐Ÿ“‹ All 26 Tabs Redesigned

| Pillar | Tabs |
|--------|------|
| **Agent Intelligence** | Overview, Agents, Tasks, HITL, Alerts, Velocity, Budget |
| **Project Oversight** | Projects, OKRs, Approvals, Knowledge, Comms |
| **System** | Security, Jobs & Crons, Processes, Policies, Skills, Usage, Memory, Failures, Decisions, Audit Log, Settings, R&D |

#### ๐Ÿ—๏ธ Key Changes
- **Projects tab** โ€” Full rewrite with light progress rings, health badges, tabbed detail view (Overview / Timeline / Tasks / Budget / OKRs / Logs), light Gantt chart and burndown chart
- **HITL tab** โ€” Soft-purple glass cards with clear Approve/Reject actions and status banner
- **Velocity tab** โ€” KPI cards + area chart + success rate trend line
- **Approvals tab** โ€” Card layout matching HITL with optional notes field
- **Settings tab** โ€” Toggle switches, budget limit inputs, workspace info grid
- **Crons tab** โ€” Status-dot rows with Run / Pause / Resume action buttons
- **Knowledge tab** โ€” Masonry card grid with tag pills and expand-to-read
- **Comms tab** โ€” Agent list sidebar with Inbox / Outbox panels
- **OKRs tab** โ€” Objective cards with animated KR progress bars
- **R&D tab** โ€” Light experiment table, benchmark leaderboard, and evolution pipeline backlog

#### ๐Ÿงน Legacy Cleanup
- Deleted `TopBar.jsx` and `Sidebar.jsx` (unused dark-theme stubs)
- Removed all cyberpunk/neon language (`SYSTEM_LIVE`, `ENCRYPTED`, `VECTOR_ID`, `NEURAL`, etc.)
- All chart grid lines and tooltips updated to light theme

---

### Previous: v1.7.2 โ€” Enhanced Wizard with Workflow Templates + Agent Browser
- **4 workflow templates** โ€” Pre-built teams for common use cases: Startup MVP (5 agents), Marketing Campaign (5 agents), Enterprise Feature (6 agents), Quality-First (4 agents)
- **Agent browser** โ€” Browse and select from all **91 agents** across 11 categories (AGI Farm + ECC + Agency-Agents)
- **Auto-template copying** โ€” SOUL.md templates automatically copied to agent workspaces during setup
- **Workflow documentation** โ€” Each template links to orchestration patterns and quick-start guides
- **Backward compatible** โ€” Legacy wizard (3/5/11 fixed rosters) preserved
- **Zero manual setup** โ€” Agency-Agents templates work out-of-box with no file copying required

Run enhanced wizard: `node scripts/setup-enhanced.js`

### Previous: v1.7.1 โ€” Architectural Hardening

### ๐Ÿ”’ Architectural Hardening
- **Per-file mutex locking** โ€” All service read-modify-write operations (`JobsService`, `ProjectService`, `TaskService`, `PolicyService`, `MeteringService`, `MemoryService`, `SkillsService`) now serialize concurrent writes via `withFileLockSync()`, preventing data loss from race conditions
- **CSRF token rotation** โ€” Token rotates every 24 hours with 5-minute grace period for active connections; static tokens from env var exempt
- **Audit log pagination** โ€” `/api/audit` now supports `offset` and `limit` query params with memory-efficient streaming; warns on malformed log lines
- **Session rate limiting** โ€” `/api/session` endpoint has its own stricter rate limit (20 req/min) to prevent token enumeration
- **Knowledge/cron file locking** โ€” Dashboard direct file operations (knowledge CRUD, cron toggle) now also use `withFileLockSync()`

### Previous: v1.7.0 โ€” Dashboard Hardening & Security Overhaul

### ๐Ÿ›ก๏ธ Dashboard Hardening & Security Overhaul
- **Deep server-side audit** โ€” 20 issues identified and remediated across data integrity, endpoint security, SSE reliability, and file I/O
- **SSE exponential backoff** โ€” Reconnection now backs off 3s โ†’ 6s โ†’ 12s โ†’ ... โ†’ 60s max, resets on success (prevents server thrashing)
- **Input sanitization everywhere** โ€” New `sanitizeText()` helper applied to broadcast, knowledge, comms, and approval endpoints; strips control characters
- **CSRF hardening** โ€” `/api/stream` and `/api/data` now validate CSRF tokens; SSE accepts token via query parameter
- **Workspace validation** โ€” Server validates workspace directory exists and is writable at startup, exits cleanly on failure
- **Broadcaster thread-safety** โ€” Fixed Set mutation during iteration in SSE fan-out
- **Silent failure logging** โ€” `readJson()`/`readMd()` now log warnings on file read failures instead of silently returning empty values
- **Null safety sweep** โ€” Comprehensive guards across all 20+ dashboard tabs preventing crashes on missing/malformed data
- **Component prop consistency** โ€” Fixed mismatched prop names between server snapshot and frontend components

### ๐Ÿ”ง 5 New Dashboard Tabs + Security Dashboard
- **Decisions tab** โ€” View and manage policy decisions and approval workflows
- **Failures tab** โ€” Track and analyze job/task failures with error details
- **Processes tab** โ€” Monitor running agent processes and system health
- **R&D tab** โ€” Experiments tracking with status and results visualization
- **Settings tab** โ€” Configure project defaults and feature flags from the UI
- **Security Dashboard** โ€” Real-time vulnerability scanning, auto-fix capabilities, and security history

### ๐Ÿ“Š Dashboard Data & API Completeness
- **Missing endpoint coverage** โ€” Added server handlers for all frontend API calls (tasks, projects, jobs, intake, comms, knowledge)
- **Project enrichment** โ€” Server-side project enrichment with task counts, progress, team agents, and risk indicators
- **Auto-derived tasks** โ€” Tasks automatically derived from jobs with `rootTaskId` for complete task visibility
- **Error feedback** โ€” User-facing error messages and loading states across all interactive components

### Previous: v1.6.0 โ€” Agency-Agents Integration

### ๐ŸŽญ Agency-Agents Integration: 59 Specialized Personalities
- **59 battle-tested agent templates** from [@msitarzewski's Agency-Agents](https://github.com/msitarzewski/agency-agents)
- **11 specializations**: Engineering, Design, Marketing, Product, PM, Testing, Support, Spatial Computing, Strategy, and more
- **Production-proven workflows** with 10,000+ lines of personality definitions and code examples
- **Standout agents**: Agents Orchestrator, Evidence Collector, Reality Checker, Whimsy Injector, Reddit Community Builder
- **Total library**: **91 agents** (16 AGI Farm + 16 ECC + 59 Agency-Agents)
- **Zero dependencies** โ€” Pure markdown templates, instantly usable
- **See:** [Agency-Agents Integration Guide](AGENCY_AGENTS_GUIDE.md)

### ๐Ÿ”„ Enhanced Orchestration Patterns
- **Pipeline orchestration** for Cooper: PM โ†’ Architect โ†’ [Dev โ†” QA Loop] โ†’ Integration
- **Quality gate patterns** for Vigil: Evidence Collector + Reality Checker methodologies
- **4 workflow templates**: Startup MVP, Marketing Campaign, Enterprise Feature, Quality-First teams
- **Automated update system** for keeping Agency-Agents templates current
- **See:** [Orchestration Patterns](templates/ORCHESTRATION_PATTERNS.md) | [Quality Gates](templates/QUALITY_GATE_PATTERNS.md) | [Workflow Templates](templates/WORKFLOW_TEMPLATES.md)

### Previous: ECC Integration v1.5.0
- **69 specialized skills** from Everything Claude Code (Anthropic hackathon winner)
- **16 ECC agent templates** for domain-specific delegation
- **33 slash commands** for common workflows
- **TDD & Security-First** โ€” 80%+ test coverage enforced, comprehensive security scans
- **See:** [ECC Integration Guide](docs/ECC_INTEGRATION_GUIDE.md)

### Previous: Dashboard UI v2: Agent OS Overhaul (v1.4.0)
- ๐Ÿ›ฐ๏ธ **Agent OS Aesthetic**: Professional, minimalist, and high-contrast obsidian design.
- ๐Ÿ“‰ **Strategic Command Matrix**: High-density project matrix with integrated Gantt and Burndown visualizations.
- ๐Ÿงฌ **Fleet Pulse signatures**: Minimalist neural activity and heartbeat monitoring for the entire fleet.
- ๐Ÿ“Š **Efficiency Analytics**: Professional data visualizations for agent velocity and task throughput.
- โšก **Performance Optimization**: 60% reduction in dashboard asset size and faster SSE fan-out.

## ๐Ÿ†• Previous Updates (v1.2.0 - v1.3.x)

### Previous Highlights (v1.1.x)
- ๐Ÿ”„ **GitHub release detection & Auto-Update system directly from dashboard**
- โš™๏ธ **Feature-Flagged Core Runtime** (Jobs, Approvals, Memory, Skills)
- ๐Ÿ›ก๏ธ **Extensive Security Hardening** (CSRF, CSP, token validation, atomic file writes)

---

## ๐Ÿ“ธ Preview

### Dashboard Overview
```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿฆ… AGI Ops Room โ— LIVE Online: 8/11 Pending: 4 Budget: $45 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ”„ Update available: v1.0.2 โ†’ v1.1.0 [Release Notes] [Update Now]โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Overview โ”‚ Agents โ”‚ Tasks โ”‚ Projects โ”‚ Crons โ”‚ HITL โ”‚ Alerts โ”‚ ... โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ ๐Ÿ“Š 42 โ”‚ โ”‚ โœ… 38 โ”‚ โ”‚ โณ 4 โ”‚ โ”‚ ๐Ÿšจ 2 โ”‚ โ”‚
โ”‚ โ”‚ Tasks โ”‚ โ”‚ Done โ”‚ โ”‚ Active โ”‚ โ”‚ HITL โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ ๐Ÿ”ฎ Sage โœ… Ready ๐Ÿ“จ 3 msgs โญ 94% [Send Message] โ”‚ โ”‚
โ”‚ โ”‚ โš’๏ธ Forge ๐Ÿ”„ Busy ๐Ÿ“จ 7 msgs โญ 89% [Send Message] โ”‚ โ”‚
โ”‚ โ”‚ ๐Ÿ› Pixel โœ… Ready ๐Ÿ“จ 2 msgs โญ 96% [Send Message] โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

### Team Architecture
```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ 11-Agent Team (Full Stack) โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”‚
โ”‚ ๐Ÿฆ… Cooper (Orchestrator) โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ ๐Ÿ”ฎ Sage โš’๏ธ Forge ๐Ÿ› Pixel โ”‚
โ”‚ (Architect) (Builder) (Debugger) โ”‚
โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ ๐Ÿ”ญ Vista ๐Ÿ”Š Cipher ๐Ÿ›ก๏ธ Vigil โ”‚
โ”‚ (Analyst) (Knowledge) (QA) โ”‚
โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ โš“ Anchor ๐Ÿ“ก Lens ๐Ÿ”„ Evolve โ”‚
โ”‚ (Content) (Multimodal) (Process) โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ ๐Ÿงช Nova โ”‚
โ”‚ (R&D Lead) โ”‚
โ”‚ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## ๐Ÿš€ Quick Start

### One-Step Install & Setup

The recommended way to install and configure AGI Farm is with this single command. It will globally install the CLI and immediately launch the interactive setup wizard:

```bash
npm install -g agi-farm && agi-farm setup
```

### Alternative Installation

If you prefer to install it purely as an OpenClaw plugin (without the global CLI binary), you can use the built-in plugin manager, but you **must** use the `npx` runner to execute the setup wizard:

```bash
openclaw plugins install agi-farm
npx agi-farm setup
```

### Upgrade (Existing Install)

```bash
# Update an already installed OpenClaw plugin
openclaw plugins update agi-farm

# One-liner: install first, or update if already installed
openclaw plugins install agi-farm || openclaw plugins update agi-farm
```

### Run Setup Wizard

```bash
# Start the interactive wizard anytime
agi-farm setup
```

Answer the setup prompts and your team will be live in ~2 minutes:

```
๐Ÿง™ AGI Farm Setup Wizard

? Team name (e.g., "CooperCorp"): MyTeam
? Orchestrator name: Cooper
? Team size: 11 agents (Full Stack)
? Domain: general
? Collaboration frameworks: langgraph
? Auto-create project channel per project: Yes
? Default execution path: AGI-Farm first
? Confirm setup? Yes

โœ… Creating 11 agents...
โœ… Setting up workspace...
โœ… Initializing AGI Farm registries...

๐ŸŽ‰ Your AI team is ready!
```

Setup now captures project defaults in `PROJECTS.json`, including:
- `auto_project_channel` (default: `true`)
- `execution_path` (default: `agi-farm-first`)

This makes AGI Farm the default execution path for newly created projects.

### Project Defaults

New projects inherit defaults from `PROJECTS.json`:
- **Auto Project Channel**: when enabled, each new project gets a dedicated channel
- **Execution Path**: choose `agi-farm-first` (multi-agent routing) or `direct-first` (immediate execution)

View and edit defaults via:
- Dashboard โ†’ Settings tab
- `GET /api/projects` โ†’ `defaults` field
- `PATCH /api/projects/defaults` API endpoint

---

## ๐Ÿ“ฆ Commands

| Command | CLI Shortcut | Description |
|---------|-------------|-------------|
| ๐ŸŽฏ `agi-farm setup` | `agi-farm` | Full wizard โ€” agents, workspace, crons (Classic mode: 3/5/11 agents) |
| โœจ `node scripts/setup-enhanced.js` | โ€” | **Enhanced wizard (v1.7.0)** โ€” Workflow templates + Agent browser (91 agents) |
| ๐Ÿ—‘๏ธ `agi-farm teardown` | `agi-farm-teardown` | Team teardown โ€” removes AGI Farm agents, bundle, and workspace registries |
| ๐Ÿ“Š `agi-farm status` | `agi-farm-status` | Team health: agents, tasks, cron status |
| ๐Ÿ”ง `agi-farm rebuild` | `agi-farm-rebuild` | Regenerate workspace from bundle |
| ๐Ÿ“ค `agi-farm export` | `agi-farm-export` | Push bundle to GitHub |
| ๐Ÿ–ฅ๏ธ `agi-farm dashboard` | `agi-farm-dashboard` | Launch live ops room (SSE, :8080) |
| โšก `agi-farm dispatch` | `agi-farm-dispatch` | Run auto-dispatcher manually |
| ๐ŸŽ `agi-farm launchagent` | `agi-farm-launchagent` | Install/uninstall macOS LaunchAgent for persistent dashboard |

### ๐Ÿ†• Enhanced Wizard (v1.7.0)

The enhanced wizard offers **4 workflow templates** and **agent browsing** for all 91 agents:

**Run it**:
```bash
cd ~/.openclaw/extensions/agi-farm # or global npm path
node scripts/setup-enhanced.js
```

**Features**:
- ๐Ÿš€ **Startup MVP** (5 agents, 1-2 weeks) โ€” Cooper, Forge, Pixel, Vigil, Growth Hacker
- ๐Ÿ“ˆ **Marketing Campaign** (5 agents, 2-4 weeks) โ€” Cooper, Content Creator, Twitter Engager, Reddit Builder, Analytics
- ๐Ÿข **Enterprise Feature** (6 agents, 4-8 weeks) โ€” Cooper, Vista, Sage, Vigil, Experiment Tracker, Reality Checker
- ๐Ÿ”ฌ **Quality-First** (4 agents, quality-driven) โ€” Cooper, Vigil (Evidence), Reality Checker, Performance Benchmarker
- ๐ŸŽจ **Custom** โ€” Browse all 91 agents by category and select your own team

**Automatic template copying**: Agency-Agents SOUL.md templates are copied to agent workspaces automatically.

---

## ๐ŸŽ Persistent Dashboard (macOS LaunchAgent)

The dashboard can run as a macOS LaunchAgent โ€” it starts on login and auto-restarts if it crashes, independent of the OpenClaw gateway lifecycle.

### Install

```bash
# Install with defaults (port 8080, localhost)
agi-farm-launchagent

# Custom port and workspace
agi-farm-launchagent --port 9090 --workspace ~/my-workspace
```

### Uninstall

```bash
agi-farm-launchagent --uninstall
```

### Why use this?

The plugin lifecycle (`onLoad`) spawns the dashboard as a child process. If the gateway exits, restarts, or doesn't reliably complete the lifecycle, the dashboard dies with it. The LaunchAgent runs the dashboard as an independent OS-level service:

- **RunAtLoad** โ€” starts automatically on login
- **KeepAlive** โ€” restarts if it crashes
- **Logs** โ€” stdout/stderr saved to `/tmp/openclaw/agi-farm-dashboard.log`

> **Linux users**: Use `systemd` with a similar service unit. See the plist template in `templates/` for reference.

---

## ๐Ÿ—๏ธ Architecture

### Plugin Structure

```
.openclaw/extensions/agi-farm/ (or global node_modules/agi-farm/)
โ”œโ”€โ”€ ๐Ÿ“ฆ package.json Plugin manifest (ESM)
โ”œโ”€โ”€ โš™๏ธ openclaw.plugin.json Config schema & commands
โ”œโ”€โ”€ ๐Ÿ“‚ dist/ Compiled TypeScript (backend)
โ”œโ”€โ”€ ๐Ÿ“‚ dashboard-dist/ Built React frontend (production)
โ”œโ”€โ”€ ๐ŸŒ server/
โ”‚ โ”œโ”€โ”€ ๐Ÿ–ฅ๏ธ dashboard.js SSE server + CRUD API (Node.js)
โ”‚ โ”œโ”€โ”€ ๐Ÿ”„ updater.js GitHub release checker + auto-update
โ”‚ โ””โ”€โ”€ ๐Ÿ› ๏ธ utils.js Core parsing & logic (Unit Tested)
โ”œโ”€โ”€ ๐Ÿ“œ scripts/
โ”‚ โ”œโ”€โ”€ ๐ŸŽฏ setup.js Setup wizard
โ”‚ โ”œโ”€โ”€ ๐Ÿ—‘๏ธ teardown.js Uninstall mechanism
โ”‚ โ”œโ”€โ”€ ๐Ÿ“Š status.js Status checker
โ”‚ โ”œโ”€โ”€ ๐Ÿ”ง rebuild.js Rebuilder
โ”‚ โ”œโ”€โ”€ ๐Ÿ“ค export.js GitHub exporter
โ”‚ โ”œโ”€โ”€ ๐Ÿ–ฅ๏ธ dashboard.js Dashboard launcher
โ”‚ โ”œโ”€โ”€ โšก dispatch.js Auto-dispatcher
โ”‚ โ””โ”€โ”€ ๐Ÿ“‚ lib/
โ”‚ โ””โ”€โ”€ ๐Ÿ› ๏ธ run-command.js Shared CLI utility
โ”œโ”€โ”€ ๐Ÿ“‹ templates/ Agent & workspace templates
โ”œโ”€โ”€ โš›๏ธ dashboard-react/ Vite + React 18 source (Dev)
โ””โ”€โ”€ ๐Ÿ“š skills/
โ””โ”€โ”€ ๐Ÿ“– SKILL.md Embedded documentation
```

### Dashboard Architecture

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Dashboard Data Flow โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”‚
โ”‚ ๐Ÿ“‚ Workspace Files โ”‚
โ”‚ โ”œโ”€โ”€ TASKS.json โ”‚
โ”‚ โ”œโ”€โ”€ AGENT_STATUS.json โ”‚
โ”‚ โ””โ”€โ”€ comms/broadcast.md โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ โ”‚ file change (250ms debounce) โ”‚
โ”‚ โ–ผ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ WorkspaceWatcher โ”‚ ๐Ÿ‘๏ธ chokidar file watcher โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ โ–ผ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ SlowDataCache โ”‚ โ”‚ Broadcaster โ”‚ โ”‚
โ”‚ โ”‚ (30s cache) โ”‚โ”€โ”€โ”€โ–ถโ”‚ (SSE fan-out) โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚ โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ SSE stream โ”‚
โ”‚ โ”‚ UpdateChecker โ”‚ โ–ผ โ”‚
โ”‚ โ”‚ (6h GitHub cache) โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ React Frontend โ”‚ โ”‚
โ”‚ โ”‚ (Vite + Recharts)โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

### Real-time Data Flow

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” 250ms โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” SSE โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Workspace โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚ Server โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ Browser โ”‚
โ”‚ Files โ”‚ chokidar โ”‚ dashboard.jsโ”‚ ~350ms โ”‚ React โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ–ฒ โ”‚
โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚ OpenClaw โ”‚โ—€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
CLI commands โ”‚ CLI โ”‚ User actions
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

---

## ๐Ÿค– Team Presets

### 3-Agent (Minimal) ๐Ÿƒ

Perfect for simple workflows and quick prototypes.

```
๐Ÿฆ… Orchestrator
โ”‚
โ”œโ”€โ”€โ–ถ ๐Ÿ”ฎ Researcher
โ”‚ โ”‚
โ””โ”€โ”€โ–ถ โš’๏ธ Builder
```

**Best for:** Quick prototypes, simple automation, learning

---

### 5-Agent (Standard) โšก

Balanced team for production workloads.

```
๐Ÿฆ… Orchestrator
โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โ”‚
๐Ÿ”ฎ Researcher ๐Ÿ›ก๏ธ QA
โ”‚ โ”‚
โš’๏ธ Builder โš“ Content
```

**Best for:** Production apps, balanced workloads, medium complexity

---

### 11-Agent (Full Stack) ๐Ÿš€

Complete team for complex systems - **RECOMMENDED**

```
๐Ÿฆ… Cooper
(Orchestrator)
โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โ”‚ โ”‚
๐Ÿ”ฎ Sage โš’๏ธ Forge ๐Ÿ› Pixel
(Architect) (Builder) (Debugger)
โ”‚ โ”‚ โ”‚
๐Ÿ”ญ Vista ๐Ÿ”Š Cipher ๐Ÿ›ก๏ธ Vigil
(Analyst) (Knowledge) (QA)
โ”‚ โ”‚ โ”‚
โš“ Anchor ๐Ÿ“ก Lens ๐Ÿ”„ Evolve
(Content) (Multimodal) (Process)
โ”‚
๐Ÿงช Nova
(R&D Lead)
```

**Best for:** Complex systems, enterprise, full-stack development

---

## ๐Ÿง  Model Selection Guide

Choose the right model for each role to optimize cost and quality:

| Role | Recommended Model | Why | Cost/Quality |
|------|-----------|-----|--------------|
| ๐Ÿฆ… Orchestrator | `anthropic/claude-3-5-sonnet` | High-level planning & delegation | ๐Ÿ’ฐ๐Ÿ’ฐ๐Ÿ’ฐ / โญโญโญ |
| ๐Ÿ”ฎ Architect | `anthropic/claude-3-opus` | Deep reasoning & system design | ๐Ÿ’ฐ๐Ÿ’ฐ๐Ÿ’ฐ / โญโญโญ |
| โš’๏ธ Engineer | `google/gemini-1.5-pro` | Reliable code gen & large context | ๐Ÿ’ฐ๐Ÿ’ฐ / โญโญ |
| ๐Ÿ› Debugger | `anthropic/claude-3-5-sonnet` | Precision logic & error analysis | ๐Ÿ’ฐ๐Ÿ’ฐ / โญโญโญ |
| ๐Ÿ”ญ Analyst | `google/gemini-2.0-flash` | Ultra-fast data synthesis | ๐Ÿ’ฐ / โญโญ |
| ๐Ÿ›ก๏ธ QA | `anthropic/claude-3-haiku` | Rapid pattern validation | ๐Ÿ’ฐ / โญ |
| โš“ Content | `google/gemini-1.5-pro` | Rich multimodal generation | ๐Ÿ’ฐ๐Ÿ’ฐ / โญโญโญ |
| ๐Ÿงช R&D | `deepseek/deepseek-reasoner` | Structured creative experimentation | ๐Ÿ’ฐ / โญโญโญ |

---

## โš™๏ธ Configuration

Configure AGI Farm in your `openclaw.json`:

```json
{
"plugins": {
"entries": {
"agi-farm": {
"enabled": true,
"config": {
"dashboardPort": 8080,
"dashboardHost": "127.0.0.1",
"autoStartDashboard": true,
"autoCheckUpdates": true,
"workspacePath": "~/.openclaw/workspace",
"bundlePath": "~/.openclaw/workspace/agi-farm-bundle",
"featureJobs": true,
"featureSkills": true,
"featureMemory": true,
"featurePolicy": true,
"featureMetering": true,
"featureApprovals": true
}
}
}
}
}
```

### Configuration Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `dashboardPort` | number | 8080 | Port for live ops dashboard |
| `dashboardHost` | string | "127.0.0.1" | Bind address for dashboard |
| `autoStartDashboard` | boolean | true | Auto-start dashboard on load |
| `autoCheckUpdates` | boolean | true | Check GitHub for new releases on startup |
| `workspacePath` | string | ~/.openclaw/workspace | Path to OpenClaw workspace |
| `bundlePath` | string | /agi-farm-bundle | Path to bundle directory |
| `featureJobs` | boolean | true | Enable jobs runtime APIs + background worker |
| `featureSkills` | boolean | true | Enable skills registry and routing endpoints |
| `featureMemory` | boolean | true | Enable memory indexing + search endpoint |
| `featurePolicy` | boolean | true | Enable policy evaluation on runtime/mutation actions |
| `featureMetering` | boolean | true | Enable usage metering collection + API |
| `featureApprovals` | boolean | true | Enable approval workflows for policy-gated actions |

### Runtime Files Added By Core Modules

When feature flags are enabled, AGI Farm lazily creates these additive workspace files:

- `JOBS.json`
- `JOB_RUNS.jsonl`
- `SKILLS_REGISTRY.json`
- `MEMORY_INDEX.json`
- `POLICIES.json`
- `APPROVALS.json`
- `AUDIT_LOG.jsonl`
- `USAGE_METERING.json`
- `SECRETS/` (encrypted blobs + metadata)

---

## ๐Ÿ“Š Dashboard Data Sources

All data updates in real-time from workspace files:

| Field | Source | Refresh | Latency |
|-------|--------|---------|---------|
| ๐Ÿ“‹ Tasks | `TASKS.json` | Instant | ~50ms |
| ๐Ÿค– Agents | `AGENT_STATUS.json` | Instant | ~50ms |
| ๐Ÿ“ฌ Comms | `comms/inboxes/*.md` | Instant | ~50ms |
| ๐Ÿšจ Alerts | `ALERTS.json` | Instant | ~50ms |
| ๐Ÿ“‚ Projects | `PROJECTS.json` | Instant | ~50ms |
| ๐Ÿ’ฐ Budget | `BUDGET.json` | Instant | ~50ms |
| ๐Ÿ“ˆ Velocity | `VELOCITY.json` | Instant | ~50ms |
| ๐ŸŽฏ OKRs | `OKRs.json` | Instant | ~50ms |
| ๐Ÿ“ข Broadcast | `comms/broadcast.md` | Instant | ~50ms |
| ๐Ÿงช Experiments | `EXPERIMENTS.json` | Instant | ~50ms |
| ๐Ÿ“š Knowledge | `SHARED_KNOWLEDGE.json` | Instant | ~50ms |
| ๐Ÿง  Memory | `MEMORY.md` | Instant | ~50ms |
| ๐Ÿ”„ Agent Models | `openclaw agents list` | Cached | ~30s |
| ๐Ÿ—‚๏ธ Jobs | `JOBS.json` | Instant | ~50ms |
| โœ… Approvals | `APPROVALS.json` | Instant | ~50ms |
| ๐Ÿ“Š Usage | `USAGE_METERING.json` | Instant | ~50ms |

### Interactive Actions (API)

The dashboard enables direct control over team operations via authenticated REST endpoints (all require CSRF token):

**HITL & Cron Controls:**
- `POST /api/hitl/:id/approve` โ€” Continue task with optional notes
- `POST /api/hitl/:id/reject` โ€” Block task and notify agent
- `POST /api/cron/:id/trigger` โ€” Manually run a specific cron job
- `POST /api/cron/:id/toggle` โ€” Enable or disable a cron job
- `POST /api/jobs` โ€” Create a background job from high-level intent
- `GET /api/jobs` / `GET /api/jobs/:id` โ€” List and inspect jobs
- `POST /api/jobs/:id/cancel` / `POST /api/jobs/:id/retry` โ€” Control failed/running jobs
- `GET /api/skills` + `POST /api/skills/:id/(enable|disable)` โ€” Manage skill activation
- `GET /api/memory/search?q=&tags=` โ€” Search memory index
- `GET /api/policies` โ€” Retrieve active policy rules
- `GET /api/approvals` + `POST /api/approvals/:id/(approve|reject)` โ€” Human approval queue
- `GET /api/usage` โ€” Usage and cost aggregates for dashboard

**CRUD Operations:**
- `POST /api/tasks` โ€” Create a new task with assignee, priority, dependencies
- `POST /api/comms/:id/send` โ€” Send a message to a specific agent inbox
- `POST /api/broadcast` โ€” Post a team-wide broadcast message
- `POST /api/knowledge` โ€” Add a shared knowledge entry
- `DELETE /api/knowledge/:id` โ€” Remove a knowledge entry

**LobsterBoard Parity Foundations (P0):**
- `GET /api/auth/status` โ€” PIN/public-mode status + write unlock state
- `POST /api/auth/verify-pin` โ€” Verify PIN and issue write auth token
- `POST /api/auth/set-pin` / `POST /api/auth/remove-pin` โ€” Manage dashboard PIN lock
- `POST /api/auth/public-mode` โ€” Toggle read-only public mode
- `GET /api/secrets` / `GET /api/secrets/:scope` โ€” List masked secrets metadata
- `POST /api/secrets/:scope` / `DELETE /api/secrets/:scope/:key` โ€” Store/delete scoped secrets
- `GET /api/templates` / `GET /api/templates/:id` โ€” List and inspect dashboard templates
- `POST /api/templates/export` / `POST /api/templates/import` โ€” Export/import template settings

**Integrated LobsterBoard Runtime (same host/process):**
- Full LobsterBoard runtime is mounted internally at `GET /lobsterboard/`
- Dashboard tab `LobsterBoard` loads this internal route (no separate user-facing port required)
- API/static calls from LobsterBoard are proxied through AGI Farm server under the same origin

**Auto-Update:**
- `GET /api/update-check` โ€” Force a fresh GitHub release check
- `POST /api/update-install` โ€” Install latest version via npm

**Total push latency:** ~350ms from file change to browser update

---

## โšก Auto-Dispatcher

The auto-dispatcher intelligently routes tasks to agents:

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Auto-Dispatcher Flow โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”‚
โ”‚ ๐Ÿ“‹ Pending Tasks โ”‚
โ”‚ โ”‚ โ”‚
โ”‚ โ–ผ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” No โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ HITL Check โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚ Skip Task โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚ Yes โ”‚
โ”‚ โ–ผ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” Yes โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Rate Limit? โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚ Backoff Wait โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚ No โ”‚
โ”‚ โ–ผ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” No โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Deps Met? โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚ Skip Task โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚ Yes โ”‚
โ”‚ โ–ผ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ Fire Agent โ”‚ โ–ถ openclaw agents run โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

### Features

- โœ… **HITL Integration** โ€” Human-in-the-loop decision requests
- โœ… **Rate-Limit Backoff** โ€” Exponential backoff on API limits (default: 10min)
- โœ… **Dependency Checking** โ€” Respects task dependencies
- โœ… **Cron Schedule** โ€” Runs automatically every 1 minute

```bash
# Manual dry-run
agi-farm dispatch

# Check logs
tail -f ~/.openclaw/workspace/logs/auto-dispatch.log
```

---

## ๐Ÿ› ๏ธ Installation from Source

```bash
# Clone the repository
git clone https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN.git
cd AGI-FARM-PLUGIN

# Install dependencies
npm install

# Build backend and dashboard
npm run build:all

# Link to OpenClaw extensions
ln -s $(pwd) ~/.openclaw/extensions/agi-farm
```

> If you later switch to `openclaw plugins install agi-farm`, remove the dev symlink first:
> `rm -f ~/.openclaw/extensions/agi-farm`

---

## ๐Ÿงน Uninstall Guide

```bash
# 1) Remove AGI Farm team data (agents, bundle, registries)
agi-farm teardown

# 2) Remove plugin from OpenClaw
openclaw plugins uninstall agi-farm --force

# 3) Optional: remove standalone global CLI binary
npm uninstall -g agi-farm
```

Notes:
- `agi-farm teardown` does not uninstall the plugin package.
- `openclaw plugins uninstall agi-farm --force` removes the plugin install used by OpenClaw.

---

## ๐Ÿ’ป Development

```bash
# Build everything (TS + Dashboard)
npm run build:all

# Build backend only
npm run build

# Watch mode for development
npm run dev

# Type checking
npm run typecheck

# Linting
npm run lint

# Run unit tests (Jest + ESM)
npm test

# Start dashboard server manually
npm run start-dashboard
```

---

## ๐Ÿ”ง Troubleshooting

| Symptom | Fix | Command |
|---------|-----|---------|
| โŒ Plugin fails to load | Check global install | `npm list -g agi-farm` |
| โŒ `plugin already exists` on install | Use plugin update command | `openclaw plugins update agi-farm` |
| ๐Ÿ“Š Dashboard shows stale data | Sync with workspace | `agi-farm status` |
| ๐Ÿค– Agent stuck >30 min | Verify heartbeats | `cat ~/.openclaw/workspace/HEARTBEAT.md` |
| โš ๏ธ `openclaw` not found | Add to PATH | `export PATH=$PATH:$(npm bin -g)` |
| ๐Ÿ” Access Denied | Check npm login | `npm whoami` |
| โฐ Cron registration error | Clean crontab | `openclaw cron list --fix` |
| ๐Ÿ“„ JSON Parse Error | Re-run setup | `agi-farm setup --force` |

---

## ๐Ÿ”’ Security

This plugin is designed with defense-in-depth security:

| Layer | Protection |
|-------|-----------|
| **Network** | Dashboard binds to `127.0.0.1` only โ€” not exposed to LAN or internet |
| **Origin validation** | `/api/session` gated by Origin/Referer โ€” cross-origin token theft blocked |
| **CSRF tokens** | All mutation endpoints require timing-safe CSRF token comparison; token rotates every 24h with 5-min grace period |
| **SSE authentication** | `/api/stream` and `/api/data` require CSRF token โ€” prevents cross-origin data exfiltration |
| **Security headers** | CSP, X-Frame-Options (DENY), X-Content-Type-Options, Referrer-Policy |
| **Input validation** | Agent IDs validated via `isSafeId()` regex โ€” blocks path traversal |
| **Input sanitization** | All user inputs (notes, messages, knowledge) stripped of control chars via `sanitizeText()`/`sanitizeNote()` |
| **Rate limiting** | 120 req/min (read), 30 req/min (mutations), 20 req/min (session) per IP |
| **Startup validation** | Workspace directory validated for existence and write access before server starts |
| **File locking** | Per-file mutex (`withFileLockSync`) on all service read-modify-write operations โ€” prevents concurrent corruption |
| **Atomic writes** | All file mutations use `.tmp` โ†’ `rename` pattern with in-memory locks |
| **Shell injection** | Update installer uses `execFile` (not `exec`) to prevent injection |
| **Credential isolation** | Uses OpenClaw CLI โ€” no API keys stored in plugin |
| Supports encrypted secrets (`SECRETS/`, AES-256-GCM) | Expose secret values in API responses |

**Your credentials stay in OpenClaw's configuration.**

---

## ๐Ÿ“š Plugin vs Skill

AGI Farm was migrated from a **skill** to a **plugin** because it:

| Requirement | Skill | Plugin |
|-------------|-------|--------|
| Background services | โŒ | โœ… Dashboard server |
| Complex wizard (15+ steps) | โš ๏ธ | โœ… Better UX |
| System integration | โŒ | โœ… Cron, LaunchAgent |
| Configuration management | โš ๏ธ | โœ… Schema-based |

The embedded `skills/agi-farm/SKILL.md` provides documentation reference for agents.

---

## ๐Ÿ”„ OpenClaw Compatibility

AGI Farm ensures compatibility with OpenClaw through **automated testing** and **proactive monitoring**:

### Automated Compatibility Testing
- **Weekly testing** against multiple OpenClaw versions (latest, previous, oldest-supported, beta)
- **Performance benchmarks** to detect regressions (load time, validation time thresholds)
- **API deprecation scanning** with automated replacement suggestions
- **Automated PR creation** for compatibility fixes when breaking changes detected

### Supported Versions
- **Minimum**: OpenClaw 1.0.0+
- **Tested**: Latest stable + previous stable + beta (when available)
- **Status**: All compatibility tests run weekly via GitHub Actions

### For Users
Check compatibility before upgrading OpenClaw:
```bash
# Check current OpenClaw version
openclaw --version

# Run validation
npm run validate

# View compatibility matrix
cat OPENCLAW_COMPATIBILITY.md
```

### For Maintainers
The enhanced compatibility system includes:
- Multi-version testing matrix (4 versions tested)
- Performance regression detection (<5s load time, <3s validation)
- Automated issue creation when incompatibility detected
- Optional automated PR generation with suggested fixes

**See:** [OPENCLAW_COMPATIBILITY.md](OPENCLAW_COMPATIBILITY.md) for complete compatibility guide.

---

## ๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

---

## ๐Ÿ™ Acknowledgments

This plugin integrates production-ready AI resources from the following exceptional projects:

### Agency-Agents (NEW in v1.6.0)
- **Repository**: https://github.com/msitarzewski/agency-agents
- **Author**: [@msitarzewski](https://github.com/msitarzewski)
- **Achievement**: 50+ requests in first 12 hours on Reddit, months of production iteration
- **Integration**: 59 specialized agent personalities across 11 categories
- **Impact**: Battle-tested workflows for Engineering, Design, Marketing, Product, PM, Testing, Support, Spatial Computing, and Strategy

The Agency-Agents collection dramatically expands AGI Farm's agent library with proven personalities including:
- **Agents Orchestrator** - Meta-agent for pipeline management (PM โ†’ Architect โ†’ Dev-QA Loop โ†’ Integration)
- **Evidence Collector** - Screenshot-based QA (defaults to finding 3-5 issues minimum)
- **Reality Checker** - Production readiness certification (defaults to "NEEDS WORK")
- **Whimsy Injector** - Delightful UX enhancements that serve functional or emotional purpose
- **Reddit Community Builder** - Authentic community engagement patterns

**Special thanks to @msitarzewski for creating and sharing these exceptional agent personalities with the community.**

### Everything Claude Code (ECC)
- **Repository**: https://github.com/affaan-m/everything-claude-code
- **Author**: [@affaan-m](https://github.com/affaan-m)
- **Achievement**: Winner of Anthropic's Claude Code hackathon
- **Integration**: 510 resource files (16 agents, 69 skills, 33 commands, 7 guides)
- **Impact**: Industry-standard TDD workflows, security scans, API design patterns, and framework templates for Python/Django/Spring Boot/Go/Swift/PostgreSQL

The ECC framework provides the foundation for AGI Farm's production-ready coding capabilities, including:
- Test-driven development workflows with 80%+ coverage enforcement
- Comprehensive security scanning and vulnerability detection (via AgentShield)
- API design patterns and best practices
- Framework-specific templates and conventions
- Auto-delegation based on agent roles

**Special thanks to @affaan-m for creating and open-sourcing this exceptional framework.**

### Combined Impact

**Total Integrated Resources**:
- **91 agent templates** (16 AGI Farm + 16 ECC + 59 Agency-Agents)
- **69 production skills** (ECC)
- **33 slash commands** (ECC)
- **7 quality automation hooks** (AGI Farm)
- **10,000+ lines** of agent personalities and workflows

AGI Farm is proud to stand on the shoulders of these giants, combining the best of community-driven AI agent development into a single, cohesive plugin.

---

## ๐Ÿ“ License

MIT License โ€” built for [OpenClaw](https://docs.openclaw.ai)

Copyright (c) 2025 oabdelmaksoud

## ๐Ÿ“ˆ Star History





Star History Chart

---

## ๐Ÿ”— Links

- **GitHub**: https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN
- **Issues**: https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN/issues
- **OpenClaw Docs**: https://docs.openclaw.ai
- **NPM Package**: https://www.npmjs.com/package/agi-farm

---

**Made with โค๏ธ for the OpenClaw community**

[โฌ† Back to Top](#-agi-farm)