Skip to content

Commit c9fa530

Browse files
committed
docs(v1.6.1): playbook freshness pass — lead with af workforce init
The v1.6.0 release shipped `af workforce init` as the native deploy default but three onboarding playbooks still pointed users at the deprecated `af paperclip init` — a real UX regression caught by the blueprint + playbook verification pass. Updated: - `first-touch`: "Deploy a team to AgenticFlow (native, v1.6+)" section now leads; paperclip section demoted to "DEPRECATED — sunset 2026-10-14" - `amazon-seller`: full rewrite with OPTION A (native) → OPTION B (paperclip deprecated). Shows `--include-optional-slots` for the full 5-agent team, MCP-attach-per-agent recipe pointing at the mcp-client-quirks playbook - `company-from-scratch`: flow restructured so native workforce comes first; paperclip path retained as legacy with clear sunset - `deploy-to-paperclip`: prominent ⚠️ DEPRECATED header + pointers to migrate-from-paperclip and amazon-seller/company-from-scratch playbooks Verified live: - All 6 blueprints (dev-shop, marketing-agency, sales-team, content-studio, support-center, amazon-seller) translate cleanly through --dry-run - Full e2e `content-studio` deploy: creates workforce + 3 agents (ceo + cmo + engineer), wired graph validates with 0 errors, graph shape confirmed trigger → ceo → {cmo, engineer, output} - Clean delete of all 4 resources (workforce + 3 agents) via the v1.5.2 envelope Tests: 392 pass, 14 skipped, 10 todo — unchanged (content-only patch).
1 parent 7d0b8bf commit c9fa530

3 files changed

Lines changed: 138 additions & 68 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pixelml/agenticflow-cli",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "AgenticFlow CLI for agent-native API operations.",
55
"license": "Apache-2.0",
66
"repository": {

packages/cli/src/cli/changelog.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ export interface ChangelogEntry {
1313
}
1414

1515
export const CHANGELOG: ChangelogEntry[] = [
16+
{
17+
version: "1.6.1",
18+
date: "2026-04-14",
19+
highlights: [
20+
"Playbook freshness pass — three onboarding playbooks (`first-touch`, `amazon-seller`, `company-from-scratch`) now lead with `af workforce init` (v1.6 native deploy) and show the deprecated `af paperclip init` path as a secondary option with a sunset date",
21+
"`deploy-to-paperclip` playbook got a prominent `⚠️ DEPRECATED` header pointing at `af playbook migrate-from-paperclip` and the sunset 2026-10-14",
22+
"`amazon-seller` playbook expanded: shows `--include-optional-slots` to create all 5 agents, attach-MCP-per-agent recipe pointing at `mcp-client-quirks`, and smoke-run/publish commands",
23+
"Verified: all 6 blueprints translate cleanly through `--dry-run` (node/edge math correct). Full e2e `content-studio` deploy creates + wires + validates + tears down cleanly",
24+
],
25+
for_ai: [
26+
"When `af bootstrap --json` returns workforces=0 and the user wants a team, the FIRST thing to show them is `af workforce init --blueprint <id> --dry-run --json` — the playbooks now lead with this, no longer with paperclip",
27+
"For Amazon Singapore sellers, run `af playbook amazon-seller` — it shows the one-command native deploy path first, with `--include-optional-slots` for the full 5-agent team",
28+
"`af playbook deploy-to-paperclip` now explicitly flags itself deprecated and points at `migrate-from-paperclip` — follow that path unless the user has an existing Paperclip instance",
29+
],
30+
},
1631
{
1732
version: "1.6.0",
1833
date: "2026-04-14",

packages/cli/src/cli/playbooks.ts

Lines changed: 122 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,22 @@ export const PLAYBOOKS: Record<string, Playbook> = {
4646
"af agent create --body <payload> --json # Create",
4747
"```",
4848
"",
49-
"**Deploy a team to Paperclip:**",
49+
"**Deploy a team to AgenticFlow (native, v1.6+):**",
5050
"```bash",
51-
"af paperclip blueprints --json # See templates",
52-
"af paperclip init --blueprint <id> --json # Deploy entire company",
53-
"af paperclip connect --json # Wire to gateway",
51+
"af paperclip blueprints --json # See 6 blueprints",
52+
"af workforce init --blueprint <id> --name \"My Team\" --dry-run --json # Preview",
53+
"af workforce init --blueprint <id> --name \"My Team\" --json # Creates",
54+
" # workforce + N",
55+
" # agents + wired",
56+
" # graph, all in",
57+
" # one command.",
58+
"af workforce publish --workforce-id <id> --json # Mint public URL",
59+
"```",
60+
"",
61+
"**Deploy to Paperclip (DEPRECATED — sunset 2026-10-14):**",
62+
"See `af playbook migrate-from-paperclip` for the full migration map.",
63+
"```bash",
64+
"af paperclip init --blueprint <id> --json # Still works but prints deprecation warning",
5465
"```",
5566
"",
5667
"**See what's new after an upgrade:**",
@@ -325,9 +336,26 @@ export const PLAYBOOKS: Record<string, Playbook> = {
325336
},
326337
"deploy-to-paperclip": {
327338
topic: "deploy-to-paperclip",
328-
title: "Deploy Agents to Paperclip",
329-
summary: "Publish AgenticFlow agents to a Paperclip company where they receive tasks, execute work, and report results — all from the CLI.",
339+
title: "Deploy Agents to Paperclip (DEPRECATED)",
340+
summary: "[DEPRECATED — sunset 2026-10-14] Publish AgenticFlow agents to a Paperclip company. Use `af playbook migrate-from-paperclip` for the AgenticFlow-native alternative.",
330341
content: [
342+
"# ⚠️ DEPRECATED — Migrate to `af workforce` by 2026-10-14",
343+
"",
344+
"This playbook describes the legacy Paperclip-based deploy. As of CLI v1.5.0,",
345+
"AgenticFlow ships a native multi-agent deploy surface (`af workforce *`) that",
346+
"replaces most of this flow — no separate Paperclip instance, no gateway to run,",
347+
"no connect step. See:",
348+
"",
349+
"- **`af playbook migrate-from-paperclip`** — command-by-command map",
350+
"- **`af playbook amazon-seller`** or **`af playbook company-from-scratch`** — native examples",
351+
"- **`af workforce init --blueprint <id> --json`** — one-command native deploy (v1.6+)",
352+
"",
353+
"The commands below still work — you'll see a one-time `[deprecated]` warning per session.",
354+
"Silence with `AF_SILENCE_DEPRECATIONS=1`. After the 2026-10-14 sunset the `af paperclip *`",
355+
"commands will be removed.",
356+
"",
357+
"---",
358+
"",
331359
"Paperclip is an orchestration control plane for AI agent companies.",
332360
"AgenticFlow agents can be deployed to Paperclip as HTTP-adapter workers",
333361
"that receive tasks and execute them.",
@@ -513,20 +541,15 @@ export const PLAYBOOKS: Record<string, Playbook> = {
513541
"VERIFY: `health: true`. EXTRACT: `projectId`.",
514542
"",
515543
"```bash",
516-
"curl -s http://PAPERCLIP_URL/api/health",
517-
"```",
518-
"VERIFY: `status: \"ok\"`. Replace PAPERCLIP_URL with the user's Paperclip URL (default: http://localhost:3100).",
519-
"IF FAIL: Paperclip is not running. Ask the user to start it.",
520-
"",
521-
"```bash",
522544
"af agent list --fields id,name,model --json",
523545
"```",
524-
"VERIFY: at least 1 agent exists. These are the agents that will work in the company.",
525-
"IF EMPTY: the user needs to create agents first — run `af playbook quickstart`.",
546+
"VERIFY: at least 1 agent exists in the workspace (not strictly required — `af workforce init` creates fresh ones). If you want to re-use existing agents, note their IDs.",
526547
"",
527548
"---",
528549
"",
529-
"## OPTION A: Blueprint (one command, recommended)",
550+
"## OPTION A: AgenticFlow-native workforce (RECOMMENDED, v1.6+)",
551+
"",
552+
"One command creates workforce + N agents + wired DAG. No Paperclip, no gateway, no webhooks.",
530553
"",
531554
"### A1. Choose a blueprint",
532555
"```bash",
@@ -538,8 +561,40 @@ export const PLAYBOOKS: Record<string, Playbook> = {
538561
"- `sales-team` — lead gen + outreach (director, researcher, SDR)",
539562
"- `content-studio` — content production (creative dir, social, writer, visual)",
540563
"- `support-center` — customer support (manager, agent, KB)",
564+
"- `amazon-seller` — Amazon SG seller team (CEO, listing, PPC, research, support)",
565+
"",
566+
"### A2. Deploy the team",
567+
"```bash",
568+
"af workforce init --blueprint BLUEPRINT_ID --name \"My Team\" --dry-run --json # preview",
569+
"af workforce init --blueprint BLUEPRINT_ID --name \"My Team\" --json # creates",
570+
"```",
571+
"VERIFY: response has `schema: \"agenticflow.workforce.init.v1\"`, `mode: \"full\"`, `skeleton: false`, non-empty `agents` array.",
572+
"EXTRACT: `workforce_id`, each `agents[].agent_id`.",
573+
"",
574+
"### A3. Inspect the wired graph (optional)",
575+
"```bash",
576+
"af workforce schema --workforce-id <id> --json",
577+
"af workforce validate --workforce-id <id> --json # expects 0 errors",
578+
"```",
579+
"",
580+
"### A4. Attach tools/MCPs per agent (recommended)",
581+
"Each agent starts with `tools: []`. For real use, attach Composio MCP clients (see `af playbook mcp-client-quirks`):",
582+
"```bash",
583+
"af mcp-clients list --name-contains \"google\" --fields id,name --json",
584+
"af mcp-clients inspect --id <mcp_id> --json",
585+
"af agent update --agent-id <agent_id> --patch --body '{\"mcp_clients\":[{\"mcp_client_id\":\"<id>\",\"run_behavior\":\"auto_run\",\"tools\":{}}]}' --json",
586+
"```",
587+
"",
588+
"### A5. Run it",
589+
"```bash",
590+
"af workforce run --workforce-id <id> --trigger-data '{\"message\":\"Kick off week 1 tasks\"}'",
591+
"af workforce publish --workforce-id <id> --json # public URL for teammates",
592+
"```",
593+
"",
594+
"## OPTION A-LEGACY: Paperclip (DEPRECATED — sunset 2026-10-14)",
595+
"",
596+
"Still functional but emits a deprecation warning. See `af playbook migrate-from-paperclip`.",
541597
"",
542-
"### A2. Bootstrap the company",
543598
"```bash",
544599
"af paperclip init --blueprint BLUEPRINT_ID --budget 50000 --json",
545600
"```",
@@ -632,7 +687,7 @@ export const PLAYBOOKS: Record<string, Playbook> = {
632687
"amazon-seller": {
633688
topic: "amazon-seller",
634689
title: "Amazon Seller AI Team",
635-
summary: "Deploy a 5-agent AI team for Amazon Singapore sellers — listing optimization, PPC, competitor analysis, pricing, and customer support. One command setup.",
690+
summary: "Deploy a 5-agent AI team for Amazon Singapore sellers — listing optimization, PPC, competitor analysis, pricing, and customer support. One command.",
636691
content: [
637692
"Deploy an AI team that runs your Amazon Singapore business 24/7.",
638693
"",
@@ -642,79 +697,79 @@ export const PLAYBOOKS: Record<string, Playbook> = {
642697
"```",
643698
"VERIFY: `health: true`. If not, run `af login`.",
644699
"",
645-
"```bash",
646-
"curl -s http://PAPERCLIP_URL/api/health",
647-
"```",
648-
"VERIFY: `status: \"ok\"`. Default: http://localhost:3100",
700+
"## OPTION A: AgenticFlow-native (RECOMMENDED, v1.6+)",
701+
"",
702+
"One command creates workforce + 5 real agents + wired DAG graph (trigger → CEO coordinator → 4 workers → output).",
649703
"",
650-
"## STEP 1: Bootstrap the Amazon Seller Team",
651704
"```bash",
652-
"af paperclip init --blueprint amazon-seller --budget 100000 --json",
705+
"af workforce init --blueprint amazon-seller --name \"My Amazon Team\" --include-optional-slots --dry-run --json",
706+
"# ^ Preview: see agent specs + estimated node/edge count, no side effects",
707+
"",
708+
"af workforce init --blueprint amazon-seller --name \"My Amazon Team\" --include-optional-slots --json",
709+
"# ^ Creates it for real. Response: { workforce_id, agents:[{slot_role, agent_id, title}],",
710+
"# node_count, edge_count, next_steps }",
653711
"```",
654-
"VERIFY: response has `agents` array with 5 entries and `tasks` array with 5 entries.",
655-
"EXTRACT: `company.id` as COMPANY_ID.",
656712
"",
657-
"This creates:",
658-
"- Amazon Business Manager (CEO) — strategy, P&L, coordination",
659-
"- Listing & SEO Specialist (CMO) — product listing optimization",
660-
"- PPC Campaign Manager (Engineer) — advertising campaigns",
661-
"- Market & Competitor Analyst (Researcher) — competitive intelligence",
662-
"- Customer Support Agent (General) — buyer communication",
713+
"VERIFY: response has `mode: \"full\"`, `agents` array with 4-5 entries (each with `agent_id`), and `skeleton: false`.",
663714
"",
664-
"## STEP 2: Start Gateway",
715+
"### Confirm the graph is wired (optional)",
665716
"```bash",
666-
"af gateway serve --channels paperclip &",
717+
"af workforce schema --workforce-id <id> --json",
718+
"af workforce validate --workforce-id <id> --json # 0 errors expected",
667719
"```",
668-
"VERIFY: `curl -s http://localhost:4100/health` returns `status: \"ok\"`.",
669720
"",
670-
"## STEP 3: Connect Agents",
721+
"### Attach tools/MCPs per agent (recommended for real use)",
722+
"Each auto-created agent starts with `tools: []`. To give them capabilities:",
671723
"```bash",
672-
"af paperclip connect --json",
724+
"# Example — give the Listing & SEO Specialist (CMO role) Google Sheets for tracking",
725+
"af mcp-clients list --name-contains \"google sheets\" --fields id,name --json",
726+
"af mcp-clients inspect --id <sheets_mcp_id> --json # classify Pipedream vs Composio",
727+
"af agent update --agent-id <cmo_agent_id> --patch --body '{\"mcp_clients\":[{\"mcp_client_id\":\"<id>\",\"run_behavior\":\"auto_run\",\"tools\":{}}]}' --json",
673728
"```",
674-
"VERIFY: all agents show `status: \"connected\"`.",
675729
"",
676-
"## STEP 4: Trigger Work",
677-
"The init command created 5 starter tasks already assigned. Trigger each agent:",
678-
"```bash",
679-
"af paperclip issue list --json",
680-
"```",
681-
"For each issue, trigger the assigned agent via gateway:",
730+
"See `af playbook mcp-client-quirks` for the Pipedream vs Composio write-safety distinction.",
731+
"",
732+
"### Run it",
682733
"```bash",
683-
"curl -s -X POST http://localhost:4100/webhook/paperclip \\",
684-
" -H \"Content-Type: application/json\" \\",
685-
" -d '{\"agentId\":\"PC_AGENT_ID\",\"runId\":\"RANDOM_UUID\",\"context\":{\"issueId\":\"ISSUE_ID\",\"taskKey\":\"IDENTIFIER\",\"wakeReason\":\"Execute task\",\"wakeSource\":\"on_demand\"}}'",
734+
"af workforce run --workforce-id <id> --trigger-data '{\"message\":\"Optimize our top 3 ASINs for CNY 2026.\"}'",
735+
"# Streams SSE events — each event prints one JSON line. Exits when stream closes.",
736+
"",
737+
"af workforce publish --workforce-id <id> --json # Mint a public_key + public_url so teammates can hit it",
686738
"```",
687739
"",
688-
"## STEP 5: Monitor Results",
740+
"## OPTION B: Paperclip (DEPRECATED — sunset 2026-10-14)",
741+
"",
742+
"Still works but emits a deprecation warning per session. Silence with `AF_SILENCE_DEPRECATIONS=1`.",
743+
"",
689744
"```bash",
690-
"af paperclip dashboard --json",
691-
"af paperclip issue comments --id ISSUE_ID --json",
745+
"af paperclip init --blueprint amazon-seller --budget 100000 --json",
746+
"af gateway serve --channels paperclip &",
747+
"af paperclip connect --json",
748+
"af paperclip issue list --json",
692749
"```",
693750
"",
694-
"## STARTER TASKS (auto-created)",
751+
"See `af playbook migrate-from-paperclip` for the full paperclip → workforce command map.",
752+
"",
753+
"## WHAT THE 5 AGENTS DO",
754+
"- **Amazon Business Manager (CEO)** — strategy, P&L oversight, coordinates the team",
755+
"- **Listing & SEO Specialist (CMO)** — product listings, keyword research, A+ content",
756+
"- **PPC Campaign Manager (Engineer)** — Sponsored Products/Brands/Display, bid optimization",
757+
"- **Market & Competitor Analyst (Researcher)** — pricing intel, trend analysis",
758+
"- **Customer Support Agent (General, optional)** — buyer messages, review replies — only created if you pass `--include-optional-slots`",
759+
"",
760+
"## STARTER TASKS (embedded in trigger.meta.starter_tasks)",
695761
"1. **Optimize top 3 product listings** (CMO) — title, bullets, backend keywords for SG market",
696762
"2. **Set up PPC campaigns** (Engineer) — Sponsored Products, SGD 500/mo, 25% ACoS target",
697763
"3. **Competitive analysis report** (Researcher) — top 5 competitors, pricing, gaps",
698-
"4. **Draft review responses** (Support) — handle recent 1-2 star reviews",
764+
"4. **Draft review responses** (Support) — handle recent 1-2 star reviews (optional agent)",
699765
"5. **Q2 pricing strategy** (CEO) — 11.11, Great Singapore Sale, National Day promos",
700766
"",
701-
"## SKILLS AVAILABLE",
702-
"These agents use the amazon-seller-pack skills:",
703-
"- `listing-optimizer` — A9/A10 optimized titles, bullets, descriptions",
704-
"- `keyword-researcher` — multilingual keywords (EN, ZH, MS) for SG market",
705-
"- `review-analyzer` — sentiment analysis, complaint extraction, actionable insights",
706-
"- `ppc-campaign-planner` — SP/SB/SD campaign structure with bid strategy",
707-
"- `competitor-monitor` — pricing, listing quality, review comparison",
708-
"- `pricing-strategist` — FBA fee calculation, margin optimization, promo calendar",
709-
"- `customer-response` — Amazon-compliant buyer message drafts",
710-
"- `product-launcher` — full launch pipeline (composed: keywords → listing → pricing → PPC)",
711-
"",
712767
"## FOR AI AGENTS",
713-
"1. Run `af paperclip init --blueprint amazon-seller --json` to create the full team.",
714-
"2. Start gateway + connect: `af gateway serve --channels paperclip & af paperclip connect`.",
715-
"3. Trigger agents via `/webhook/paperclip` with issueId from task list.",
716-
"4. Each agent responds with structured analysis posted as issue comments.",
717-
"5. Use `af agent run --agent-id <AF_ID> --message <task> --json` for direct queries.",
768+
"1. Default: `af workforce init --blueprint amazon-seller --name \"<name>\" --include-optional-slots --json` creates a runnable 5-agent team in one call.",
769+
"2. Attach MCPs/tools to each agent via `af agent update --patch` (tools start empty on init).",
770+
"3. Smoke test with `af workforce run --workforce-id <id> --trigger-data '{\"message\":\"...\"}'`.",
771+
"4. Publish a public URL via `af workforce publish --workforce-id <id>` when ready to hand off.",
772+
"5. Clean up test deploys with `af workforce delete --workforce-id <id>` + `af agent delete --agent-id <id>` for each created agent.",
718773
].join("\n"),
719774
},
720775
"mcp-to-cli-map": {

0 commit comments

Comments
 (0)