export function piTeamsHelp(): string { return [ "pi-crew commands:", "", "Core:", "- Agent can use the `team` tool autonomously; slash commands are manual controls.", "- /teams — list teams, workflows, agents, recent runs", "- /team-run [--team=name] [--workflow=name] [--async] [--worktree] ", "- /team-status ", "- /team-summary ", "- /team-resume ", "- /team-cancel ", "- /team-retry [taskId]", "- /team-respond ", "- /team-follow-up ", "- /team-goal — autonomous goal loop (sub-actions: start/status/pause/resume/stop/step/clear)", "- /workflows — list static + dynamic workflows", "", "Inspection:", "- /team-events ", "- /team-artifacts ", "- /team-result [taskId]", "- /team-transcript [taskId]", "- /team-worktrees ", "- /team-api [key=value]", "- /team-metrics [filter]", "- /team-dashboard", "- /team-mascot", "", "Maintenance:", "- /team-manager — interactive menu (alias: /team-cleanup-menu)", "- /team-forget --confirm [--force]", "- /team-prune --keep=20 --confirm", "- /team-invalidate ", "", "Skills:", "- /skill-list [--json] — list builtin skill templates", "- /skill-create [--var key=value...] [--project]", "", "Portability:", "- /team-export ", "- /team-import ", "- /team-imports", "", "Diagnostics & config:", "- /team-doctor", "- /team-validate", "- /team-init [--copy-builtins] [--overwrite]", "- /team-config [key=value] [--unset=key.path] [--project]", "- /team-settings [list|get |set |unset |path|scope]", "- /team-autonomy [status|on|off|manual|suggested|assisted|aggressive]", "- /team-help", "", "Non-team commands: /schedules [log ], /crew-view , /crew-back, /team-vibes [on|off], /crew-brief [on|off|status]", "", "Goal loops (P0/P1 — autonomous goal loop):", "- team action='goal' config.subAction='start' config.objective='...' config.evaluatorModel='...' [config.maxTurns=20] [budgetTotal=N]", "- team action='goal' config.subAction='status' [config.goalId=]", "- team action='goal' config.subAction='pause|resume|stop|step|clear' config.goalId=", "", "Dynamic workflows (P2/P3 — JS-script orchestration):", "- Place a .dwf.ts under .crew/workflows/ then: team action='run' workflow='' goal='...'", "- team action='workflow-list'", "- team action='workflow-get' config.name=''", "- team action='workflow-create' confirm=true config.name='' config.script='<.dwf.ts source>' (USER-initiated only; ACE-gated)", "- team action='workflow-save' config.name='' config.script=''", "- team action='workflow-delete' confirm=true config.name=''", "- /workflows — list dynamic workflows", "", "Real child workers are enabled by default. Use runtime.mode=scaffold or executeWorkers=false only for dry runs.", ].join("\n"); }