
Antfarm CLI命令完整参考install、run、status到resume的必备速查清单【免费下载链接】antfarmBuild your agent team in OpenClaw with one command.项目地址: https://gitcode.com/gh_mirrors/antf/antfarmAntfarm是一个用一条命令在 OpenClaw 中搭建 AI 智能体团队的命令行工具。你可以把 planner规划、developer开发、verifier验证、tester测试、reviewer评审组成一支自动化数字员工小队让它按固定流水线完成功能开发、Bug 修复和安全审计。本文将带你快速掌握 Antfarm CLI 命令install、run、status、resume以及 dashboard、logs 等常用命令的速查清单新手照抄即可上手。一、Antfarm CLI 命令全景先记住这张速查表Antfarm 的 CLI 由 src/cli/cli.ts 实现命令分为四组生命周期安装/卸载、workflow 工作流操作核心、dashboard 监控面板、logs 日志。命令用途新手使用频率antfarm install一键安装全部内置工作流⭐⭐⭐antfarm workflow list查看可用工作流⭐⭐⭐antfarm workflow run id 任务启动一次运行⭐⭐⭐antfarm workflow status 查询检查运行进度⭐⭐⭐antfarm workflow runs列出所有历史运行⭐⭐antfarm workflow resume run-id从失败处恢复运行⭐⭐antfarm workflow stop run-id停止/取消运行⭐antfarm dashboard启动 Web 监控面板⭐⭐⭐antfarm logs [行数]查看最近活动日志⭐⭐antfarm uninstall彻底卸载agents、crons、DB⭐三个内置工作流位于 workflows/ 目录可直接用run启动feature-dev7 个 agentplan → setup → implement → verify → test → PR → reviewbug-fix6 个 agenttriage → investigate → setup → fix → verify → PRsecurity-audit7 个 agentscan → prioritize → setup → fix → verify → test → PR 小贴士直接运行antfarm不带参数会打印完整用法说明随时当人肉手册查。二、Antfarm 安装命令一键装好智能体团队前置要求Node.js ≥ 22需要原生 SQLite 支持注意不要用 Bun 的 node 包装器OpenClaw v2026.2.9已在宿主机运行PR 类步骤还需要ghCLI两步完成安装第一步用安装脚本把 Antfarm CLI 本身装进机器脚本会 clone 仓库、构建并链接命令curl -fsSL https://raw.githubusercontent.com/snarktank/antfarm/v0.5.1/scripts/install.sh | bash安装脚本源码见 scripts/install.sh。第二步执行核心安装命令它会安装全部内置工作流并自动启动 dashboard$ antfarm install Installing 3 workflow(s)... ✓ feature-dev ✓ bug-fix ✓ security-audit Done. Start a workflow with: antfarm workflow run name your task Dashboard started (PID 4821): http://localhost:3333也可以只安装单个工作流antfarm workflow install feature-dev命令要点antfarm install 安装全部工作流 启动面板适合初次配置antfarm workflow install id 精细控制只装需要的antfarm workflow list 确认当前有哪些工作流可用antfarm uninstall 完整拆除agents、crons、数据库有运行中的任务时会拒绝执行加--force可强制antfarm update 拉取最新代码、重新构建并重装工作流三、Antfarm run 命令启动一次工作流运行最快启动方法antfarm workflow run feature-dev Add user authentication with OAuth Run: #1 (a1fdf573) Workflow: feature-dev Task: Add user authentication with OAuth Status: running命令只需要两个参数工作流 ID和任务描述。剩下的事——任务拆解、写代码、跑测试、提 PR——都由流水线上的各角色 agent 自动接力完成实现见 src/installer/run.ts。run 命令进阶# 带通知回调完成后向指定 URL 发通知 antfarm workflow run bug-fix Login fails after password reset --notify-url http://...运行启动后无需守着终端。每个 agent 通过 cron 轮询领取自己的步骤失败了会自动重试重试耗尽才升级提醒。想实时盯着进度直接打开 Web 面板即可四、Antfarm status 命令随时查看智能体团队进度按任务关键词查询status支持任务子串模糊匹配也支持 run ID 前缀$ antfarm workflow status OAuth Run: #1 (a1fdf573) Workflow: feature-dev Task: Add user authentication with OAuth Status: running Steps: [done ] plan (planner) [done ] setup (setup) [running] implement (developer) [pending] verify (verifier) [pending] test (tester) [pending] pr (developer) [pending] review (reviewer) Stories: 3/7 done一眼看清哪一步在跑、由哪个 agent 负责、故事story完成了几条。状态查询逻辑在 src/installer/status.ts。配合 runs 和 step 命令antfarm workflow runs # 列出所有历史运行 antfarm workflow runs # [running ] #1 a1fdf573 feature-dev Add user authentication with OAuth... # [completed] #2 9c21ab04 bug-fix Login fails after password reset...antfarm workflow resume 2 # 直接用运行编号 antfarm workflow stop a1fdf5 # 用 ID 前缀取消运行五、Antfarm resume 命令失败后从哪里断开从哪继续这是 Antfarm CLI 命令中最实用的恢复命令。运行失败后例如某个 story 验证不通过、网络抖动导致超时你不需要从头重跑一条命令即可从失败步骤继续antfarm workflow resume a1fdf573 Resumed run a1fdf573 from step verifyresume 的完整逻辑在 src/cli/cli.ts它做了这些事定位失败的步骤支持完整 ID、ID 前缀、运行编号3三种写法把该步骤重置为 pending并清零重试计数若是循环步骤里的某个 story 失败只重置那个 story其余已完成的工作全部保留自动确保该工作流的 agent cron 已拉起流水线重新流动⚠️ resume 只接受failed状态的运行运行还在running中时会提示 Nothing to resume。想彻底放弃则用antfarm workflow stop run-id。六、监控与日志dashboard 和 logs 命令启动 Web 监控面板antfarm dashboard # 默认 3333 端口 antfarm dashboard --port 4000 # 自定义端口 antfarm dashboard status # 查看是否运行中 antfarm dashboard stop # 停止面板面板里可以按步骤列查看整条流水线点开单个运行能看到每一步的执行 agent、Stories 进度和验收标准查看活动日志antfarm logs # 最近 50 条事件 antfarm logs 100 # 最近 100 条 antfarm logs a1fdf5 # 指定运行ID 前缀的全部事件 antfarm logs #3 # 按运行编号查询日志输出形如Feb 9, 10:45 AM [a1fdf573] developer Claimed step — implement排查卡在哪了非常好用。七、给新手的 5 条避坑建议版本报错若antfarm报node:sqlite相关错误多半是 Node 版本低于 22或 PATH 里排第一的是 Bun 的 node 包装器。npm 上那个 antfarm 不是本项目Antfarm 从仓库安装不在 npm 注册表上别npm install antfarm。卸载被拒绝有运行中的 run 时uninstall会列出让路名单并拒绝先workflow stop或加--force。想自定义流水线工作流就是 YAML Markdown见 docs/creating-workflows.md会写 Prompt 就能定义自己的 agent 团队。忘了命令敲antfarm回车用法清单会完整打印出来。总结Antfarm CLI 命令最小工作流日常使用其实只需要记住这条主线antfarm install # 1. 装好团队 antfarm workflow run feature-dev 任务描述 # 2. 派活 antfarm workflow status 任务关键词 # 3. 查进度 antfarm workflow resume run-id # 4. 失败后恢复 antfarm dashboard # 5. 看面板从 install 到 resumeAntfarm 把搭建 AI 开发团队压缩成了四条命令。配合 Web 面板和日志即使是第一次接触多智能体工作流的新手也能在几分钟内跑通第一个自动化任务。【免费下载链接】antfarmBuild your agent team in OpenClaw with one command.项目地址: https://gitcode.com/gh_mirrors/antf/antfarm创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考