/agenticflow-plugin:agenticflow-workforcefrom agenticflow-plugin
Deploys and operates multi-agent DAG workforces with AgenticFlow — trigger, coordinator, worker agents that hand off results. Use for team pipelines like research-then-write, dev shop, marketing agency, sales team.
Ships in agenticflow-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A workforce is an AgenticFlow-native DAG of agents — typically trigger → coordinator agent → worker agents → output — that hand off structured results to each other. Use this when orchestration between roles matters.
If the user wants a single chat endpoint, a customer-facing bot, one assistant, or routing-by-prompt inside one agent, use agenticflow-agent instead. A single-agent solution with rules in the system prompt is simpler, cheaper, and easier to iterate on. Workforces are for genuine multi-role orchestration.
af bootstrap --json
Returns auth, agents, workforces, blueprints, commands, playbooks, whats_new, _links. Extract:
auth.project_id — required for agent creation (the agents inside your workforce)auth.workspace_id_links.workspace — surface this URL to the user right away: "Your workspace is at <_links.workspace> — open it anytime to see the workforce I'm building." The user needs a human-first anchor before the first mutationblueprints[] — the 6 built-in team templates, each with required/optional slot countsworkforces[] — any existing workforces in the workspace (empty initially is normal; check data_fresh if false — that means the backend was unreachable, not the workspace empty)If data_fresh: false in the bootstrap response, the backend is degraded — do not mutate. Run af doctor --json --strict and fix auth/network before proceeding.
| Blueprint | Required slots | Optional |
|---|---|---|
autonomous-desk ⭐ | planner, researcher, critic, editor | — |
batch-research-desk | planner, researcher, editor | — |
dev-shop | ceo, engineer | designer, qa |
marketing-agency | ceo, cmo, designer | researcher |
sales-team | ceo, researcher, general | — |
content-studio | ceo, cmo, engineer | designer |
support-center | ceo, general | researcher |
amazon-seller | ceo, cmo, engineer, researcher | general |
tutor | ceo, cmo, engineer, researcher | general |
freelancer | ceo, cmo, engineer, researcher | general |
Heads-up: the
tutorandfreelancerblueprints replace the legacyaf pack install tutor-pack/freelancer-packflow as of CLI v1.7.0.af pack *still works but is deprecated (sunset 2026-10-14).
Always preview with --dry-run first:
af workforce init --blueprint <slug> --name "<name>" --dry-run --json
af workforce init --blueprint <slug> --name "<name>" --json
init creates the workforce + one real agent per required slot + the wired graph — in a single atomic call. On failure, every resource is rolled back automatically; inspect details.rolled_back_agents and details.rolled_back_workforce in the error.
Use --include-optional-slots to fill every slot, not just required ones. Use --model <id> (e.g. agenticflow/gemini-2.0-flash) to override the default model for all auto-created agents. (Slots that a blueprint pins to a specific model — e.g. the desk's JSON routers — keep their pinned model regardless of --model.)
autonomous-desk ⭐When the ask is a mission with built-in quality control ("research X and make sure it's verified", "self-correcting team", "plan → execute → review"), deploy the desk:
af workforce init --blueprint autonomous-desk --name "<name>" --json
Topology: plan → route → execute → critic QA gate → auto-revision → editor → output. The planner and critic return structured JSON that drives real condition gates; rejected drafts loop through a revision pass automatically — component failures and thin drafts become revisions, not shipped garbage.
To give the desk a deterministic execution route (a deployed workflow it can send suitable missions through — cheap repeatable baseline, agent judgment spent only on the delta):
af workflow update --workflow-id <wf_id> --body '{... "public_runnable": true ...}' --json # REQUIRED
af workforce init --blueprint autonomous-desk \
--tool-workflow-id <wf_id> \
--tool-workflow-purpose "stock watchlist brief for a ticker" \
--tool-workflow-input '{"ticker": "{{nodes.agent_planner.output.structured_output.workflow_input_primary}}"}' \
--json
The attached workflow must be public_runnable: true or its invocations fail with "Workflow is not public runnable".
For multi-target missions ("brief me on each of these N competitors/tickers/prospects"), use the loop-topology desk instead:
af workforce init --blueprint batch-research-desk --json
Planner splits the mission into targets[], a loop node runs the researcher once per target, the editor composes the comparative digest. Loop-node rules (body subgraphs, entry/exit edges, {{loop_item.*}} templating, the double-deploy requirement for parented nodes) are in graph-building.md §8.
If the user's ask is a precise custom pipeline that no blueprint matches (e.g. a 2-step researcher → writer flow that doesn't fit the 3–5-agent blueprints), skip blueprints:
af schema workforce --field schema --json
af workforce create --body '{"name":"Raul Content Pipeline","description":"..."}' --json
af agent create (see agenticflow-agent skill).trigger → researcher (agent node, agent_id from step 3) → writer (agent node) → output.af workforce deploy --workforce-id <id> --body @graph.json --json
af workforce validate --workforce-id <id> --json
Edge connection_type is one of next_step, condition, ai_condition. Agent nodes require a real agent_id in input.
Before hand-authoring ANY graph, read graph-building.md (or af playbook mas-graph-building). The non-obvious, field-verified rules in one place:
.output hop — {{nodes.<name>.output.last_message}}, {{nodes.<name>.output.structured_output.<field>}}. Wrong refs render as empty strings, not errors — the run "succeeds" with hollow prompts. Smoke-run once and check node_start.node_input in the event stream.state_modifier writes variables.<x>, readers use {{variables.<x>}}.connection_type: "condition" + {branch_index: N}; -1 = default branch (always wire one).{name, strict, schema} wrapper AND "additionalProperties": false on every object level; pin them to agenticflow/gpt-4o-mini-class models.plugin node wrapping call_other_workflow (workflow_input is a JSON string; target workflow must be public_runnable); result at {{nodes.<n>.output.output.workflow_output.content}}.deploy diffs nodes by name and can't change a node's type in place — rename the node to change type.af workforce run --workforce-id <id> --trigger-data '{"message":"..."}'
# Streams SSE events — each line is one JSON event. The CLI auto-wraps your
# payload in {trigger_data: ...} — don't wrap it yourself.
af workforce publish --workforce-id <id> --json
# Mints a public_key + public_url — hand this to teammates so they can run the
# workforce without platform auth.
af workforce versions publish --workforce-id <id> --version-id <v> --json
# Snapshot + publish a specific version (draft/published/restore workflow).
MCP clients attach to individual agents, not to the workforce graph. After init, use:
af mcp-clients list --name-contains "google sheets" --fields id,name --json
af mcp-clients inspect --id <mcp_id> --json # Check pattern before attach
af agent update --agent-id <agent_id> --patch --body '{"mcp_clients":[{"mcp_client_id":"<id>","run_behavior":"auto_run","tools":{}}]}' --json
See the agenticflow-mcp skill for the Pipedream vs Composio write-safety distinction.
Workforces + agents are billed while they exist. Delete test deploys:
af workforce delete --workforce-id <id> --json
# For each auto-created agent id captured from init:
af agent delete --agent-id <id> --json
Both return {"schema":"agenticflow.delete.v1","deleted":true,"id":"...","resource":"..."} on success.
All API errors return {schema: "agenticflow.error.v1", code, message, hint, details}. Read hint first — it points at the recovery command (e.g. af <resource> list on a 404). For 422s, inspect details.payload.detail for field-level errors.
workforce run occasionally returns a backend Failed to retrieve user info for user_id: ... 400 — this is a known server-side issue with API-key auth, not a CLI bug. Working fallback: publish the workforce and run through the public endpoint, which doesn't do the user lookup:
af workforce publish --workforce-id <id> --json # → run_url
curl -X POST "https://api.agenticflow.ai/v1/workforce/public/<public_key>/run" \
-H 'Content-Type: application/json' \
-d '{"trigger_data":{"message":"..."},"stream":true}'
The web UI (browser session auth) is also unaffected.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agenticflow, multi-agent, workforce, dag-orchestration, team-pipeline
npx claudepluginhub pixelml/agenticflow-skill --plugin agenticflow-plugin3 skills in this plugin
/agenticflow-agentCreate, run, and iterate on a single AgenticFlow AI agent — one chat endpoint, one assistant, one persona. Use when the user wants a customer-facing bot, a support assistant, a single task agent, or a prompt experiment. Choose this skill over agenticflow-workforce when there's no orchestration between roles (no handoff, no coordinator → workers). Covers `af agent create/update/run/delete`, the `--patch` partial-update pattern for iteration, `af schema agent --field <name>` for nested payload shapes (including suggested_messages, mcp_clients, response_format), the `model_user_config` / `code_execution_tool_config` settings, and safe iteration loops./agenticflow-mcpAttach external tool providers (Google Docs, Google Sheets, Slack, Notion, GitHub, Apify, etc.) to an AgenticFlow agent via MCP clients. Use when the user wants their agent to read or write external data, call third-party APIs, save outputs to a doc/sheet, or use any tool beyond the model's built-in knowledge. Covers `af mcp-clients list --name-contains`, `af mcp-clients inspect --id` (classify pattern before attach), and the Pipedream vs Composio write-capability distinction — critical for parametric writes. Route traffic through the `af` CLI; the standalone `agenticflow-mcp` server repo lags the CLI and is not recommended.Other plugins' skills for the same job