Skip to content

Heyvhuang/copybook-skills / zh/skills/long-run-tips

long-run-tips

Flagged

长任务 · 22 条:多 agent 分工、交接、进度看板、会话周历、遗留待办。

references/job-worth-a-dynamic-workflow.md

View on GitHub
# 最该用动态工作流跑的活

哪件活值得交给一批 agent:全仓库检查、迁移或修复循环,先在一个目录、10 个 agent 以内排好计划。

## 步骤

1. 复制提示词。
2. 在项目里用 Claude Code 发给 Opus 5.5。
3. 得到:Opus 5.5 挑出最值得跑动态工作流的活,先在一个目录上做好计划,等你确认。

用户选了这条技巧。上面的步骤是写给人看的,请替用户做。

- 第 1 步说用哪段文字,它就在下面同名的标题下,一字不改地用。
- 第 2 步说明文字放在哪里。按用户实际要求的范围使用提示词。写文件或运行命令前,先展示改动,等用户同意。这里做不到的步骤(另一个应用、重启、定时任务),把文字交给用户,说明放到哪里。
- 引用示例本身不代表用户同意执行。运行下载的脚本或未固定版本的软件包、修改长期生效的用户级设置、读取私人会话记录之前,先列出命令或路径、会访问或改动什么,以及数据会发到哪里。隐藏密钥值,等用户明确同意这项操作。远程安装脚本应先下载并检查固定版本,或核对可信来源提供的校验值,再执行。
- 方括号或占位符,从用户说的话里填,没有就问。
- 第 3 步是用户最后应该得到的。

## 提示词

```text
读一下这两篇文档:
https://code.claude.com/docs/en/workflows
https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration
我们在 Claude Code 里用动态工作流跑,第二篇只借它分工和复查的写法。

然后翻一遍这个项目的代码、issue 和最近的提交,找三类适合交给动态工作流的活:
1. 整个仓库都要过一遍的检查,比如找 bug、查漏掉的权限校验。
2. 要改很多文件的迁移,比如把 JavaScript 换成 TypeScript。
3. 要反复修到通过的活,比如类型检查报出的一堆错,连续两轮没进展就停。
哪类在项目里找不到就直说,别硬凑。

挑最值得的一个,先只拿一个目录排计划,agent 先控制在 10 个以内。每块活派一个 agent,再给每块配一个 agent 复查,专找前一个漏掉的;一个 agent 失败不拖垮整个 run,没跑到的单独列出来。挑的是检查类的话,报出来的每个问题再交给另一个 agent 挑刺,站得住才算数。

先用文字给我看挑了哪个、分几个阶段、派多少个 agent。我确认之前别启动 workflow,也别改文件。
```

## 背景

Anthropic 完整公开了 Managed Agents 动态工作流的官方文档。他们在一个 116K 行的代码库里埋了 70 个 bug,单个 agent 跑三次,分别找到 14、15、27 个;Managed Agents 的工作流跑三次,每次都找到 66 个。你可以让 Opus 5.5 照着文档翻一遍你的项目,挑出最该交给一批 agent 的活,在 Claude Code 里用动态工作流跑起来。

动态工作流是 Claude 先写好计划,分几轮派给很多 agent,最后把结果合起来。Managed Agents 按 API 计费;Claude Code 里也有动态工作流,所有付费套餐都能用,算进套餐用量(Pro 要先在 /config 里打开)。一个 run 最多派 1,000 个 agent,个个都在花额度,所以先拿一个目录试,/workflows 里能看到每个 agent 用了多少 token,随时能停。

把这段 prompt 发给 Opus 5.5。

## 来源

来自 [Copybook](https://copybook.page/zh/t/pick-a-job-for-a-dynamic-workflow-in-claude-code):@Voxyz_ai 2026年10月11日[发在 X 上](https://x.com/Voxyz_ai/status/2109237583704445140),截至 2026年11月8日有 670 次收藏。适用于 Claude Code。
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall