{
  "id": "agi-farm",
  "kind": "team-orchestration",
  "name": "AGI Farm — Multi-Agent Team Builder",
  "version": "3.3.3",
  "description": "Bootstrap complete multi-agent AI teams with Paperclip dashboard, auto-dispatcher, and infrastructure. Includes interactive wizard, SOUL.md generation, comms setup, cron registration, and OpenClaw gateway integration.",
  "author": "oabdelmaksoud",
  "homepage": "https://github.com/oabdelmaksoud/AGI-FARM-PLUGIN",
  "openclawVersion": ">=1.0.0",
  "engines": {
    "openclaw": ">=1.0.0",
    "node": ">=20.0.0"
  },
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "paperclipPort": {
        "type": "number",
        "default": 3100,
        "minimum": 1024,
        "maximum": 65535,
        "description": "Port for the Paperclip dashboard server"
      },
      "paperclipHost": {
        "type": "string",
        "default": "127.0.0.1",
        "description": "Bind address for the Paperclip server"
      },
      "autoStartPaperclip": {
        "type": "boolean",
        "default": true,
        "description": "Automatically start Paperclip when plugin loads"
      },
      "paperclipDeploymentMode": {
        "type": "string",
        "enum": ["local_trusted", "authenticated"],
        "default": "local_trusted",
        "description": "Paperclip deployment mode (local_trusted for dev, authenticated for production)"
      },
      "workspacePath": {
        "type": "string",
        "description": "Path to OpenClaw workspace (defaults to ~/.openclaw/workspace)"
      },
      "bundlePath": {
        "type": "string",
        "description": "Path to AGI Farm bundle (defaults to <workspace>/agi-farm-bundle)"
      },
      "autoCheckUpdates": {
        "type": "boolean",
        "default": true,
        "description": "Automatically check GitHub for plugin updates on startup"
      },
      "featureJobs": {
        "type": "boolean",
        "default": true,
        "description": "Enable jobs runtime APIs and background worker"
      },
      "featureSkills": {
        "type": "boolean",
        "default": true,
        "description": "Enable skills registry APIs"
      },
      "featureMemory": {
        "type": "boolean",
        "default": true,
        "description": "Enable memory indexing and search APIs"
      },
      "featurePolicy": {
        "type": "boolean",
        "default": true,
        "description": "Enable policy engine for runtime actions"
      }
    },
    "required": []
  },
  "uiHints": {
    "paperclipPort": {
      "label": "Paperclip Port",
      "description": "Port for the Paperclip dashboard server"
    },
    "paperclipHost": {
      "label": "Paperclip Host",
      "description": "Bind address for the Paperclip server"
    },
    "autoStartPaperclip": {
      "label": "Auto-Start Paperclip",
      "description": "Automatically start Paperclip when OpenClaw loads"
    },
    "paperclipDeploymentMode": {
      "label": "Deployment Mode",
      "description": "Paperclip deployment mode"
    },
    "workspacePath": {
      "label": "Workspace Path",
      "description": "Path to OpenClaw workspace directory"
    },
    "bundlePath": {
      "label": "Bundle Path",
      "description": "Path to AGI Farm team bundle directory"
    },
    "autoCheckUpdates": {
      "label": "Auto-Check Updates",
      "description": "Check GitHub for new releases when plugin loads"
    },
    "featureJobs": {
      "label": "Feature: Jobs",
      "description": "Enable jobs runtime APIs and background worker"
    },
    "featureSkills": {
      "label": "Feature: Skills",
      "description": "Enable skills registry APIs"
    },
    "featureMemory": {
      "label": "Feature: Memory",
      "description": "Enable memory indexing and search APIs"
    },
    "featurePolicy": {
      "label": "Feature: Policy",
      "description": "Enable policy engine for runtime actions"
    }
  },
  "skills": [
    "skills/agi-farm"
  ],
  "hooks": [
    "hooks/quality-gate",
    "hooks/typecheck",
    "hooks/console-warn",
    "hooks/auto-format",
    "hooks/pr-logger",
    "hooks/git-push-reminder",
    "hooks/build-analyzer"
  ],
  "tools": [
    {
      "name": "hire_specialist",
      "description": "Autonomously hire and provision a new specialized agent to the team.",
      "executable": "./skills/agi-farm/tools/hire_specialist.js"
    },
    {
      "name": "create_company",
      "description": "Create a new company/team in Paperclip dashboard. Use when starting a new venture or when no company exists.",
      "executable": "./skills/agi-farm/tools/create_company.js"
    },
    {
      "name": "create_project",
      "description": "Create a new project in Paperclip. Auto-creates company if none exists.",
      "executable": "./skills/agi-farm/tools/create_project.js"
    },
    {
      "name": "create_task",
      "description": "Create a task (issue) in Paperclip and assign to an agent. Auto-creates company if none exists.",
      "executable": "./skills/agi-farm/tools/create_task.js"
    },
    {
      "name": "update_task",
      "description": "Update task status, reassign, change priority, or add comments in Paperclip.",
      "executable": "./skills/agi-farm/tools/update_task.js"
    },
    {
      "name": "list_projects",
      "description": "List all projects in Paperclip. Use before creating a new project to avoid duplicates.",
      "executable": "./skills/agi-farm/tools/list_projects.js"
    },
    {
      "name": "manage_board",
      "description": "Query board state — see tasks by status, agent, or project. Get stats and overview.",
      "executable": "./skills/agi-farm/tools/manage_board.js"
    }
  ],
  "commands": [
    {
      "name": "agi-farm setup",
      "description": "Interactive wizard to create a new multi-agent AI team",
      "handler": "./scripts/setup.js"
    },
    {
      "name": "agi-farm status",
      "description": "Show team health: agents, tasks, cron status",
      "handler": "./scripts/status.js"
    },
    {
      "name": "agi-farm rebuild",
      "description": "Regenerate workspace from existing bundle (preserves edits)",
      "handler": "./scripts/rebuild.js"
    },
    {
      "name": "agi-farm export",
      "description": "Push team bundle to GitHub repository",
      "handler": "./scripts/export.js"
    },
    {
      "name": "agi-farm dashboard",
      "description": "Launch Paperclip dashboard for team management",
      "handler": "./scripts/paperclip.js"
    },
    {
      "name": "agi-farm dispatch",
      "description": "Run auto-dispatcher — fires agent sessions for pending tasks",
      "handler": "./scripts/dispatch.js"
    },
    {
      "name": "agi-farm teardown",
      "description": "Completely uninstall and teardown the active AGI Farm team",
      "handler": "./scripts/teardown.js"
    }
  ]
}
