Herdr 桌面应用:协同 Claude Code 与 Codex
Claude Code users, if you didn’t know, Herdr now has its 𝗼𝘄𝗻 𝗱𝗲𝘀𝗸𝘁𝗼𝗽 𝗮𝗽𝗽.
提供了具体的 CLI 安装命令和完整的 Prompt 模板,结构清晰且具备极高的实操参考价值。
Claude Code users, if you didn’t know, Herdr now has its 𝗼𝘄𝗻 𝗱𝗲𝘀𝗸𝘁𝗼𝗽 𝗮𝗽𝗽.
Claude Code 用户,如果你还不知道的话,Herdr 现在有了自己的桌面应用。
Install it, and Opus 5.5 can coordinate 𝘂𝗽 𝘁𝗼 𝟭𝟬 𝘄𝗼𝗿𝗸𝗲𝗿𝘀 through Herdr: Claude Code writes the code, nitpick-obsessed Codex Astra reviews it, and the app comes with a perfect dashboard built in.
安装它后,Opus 5.5 可以通过 Herdr 协调多达 10 个工作者:Claude Code 编写代码,对细节吹毛求疵的 Codex Astra 进行审查,并且该应用内置了完美的仪表盘。
Hand off the heavy implementation work to Claude Code, including polishing your pages’ layout, interactions, and visual details.
将繁重的实现工作交给 Claude Code,包括完善页面的布局、交互和视觉细节。
Set it up once. Here’s how 👇
设置一次即可。方法如下 👇
1. Open Claude Code and install Herdr and its Skill
1. 打开 Claude Code 并安装 Herdr 及其 Skill
Select Opus 5.5 and ask it to run these two commands (Mac):
选择 Opus 5.5 并要求它运行以下两条命令(Mac):
curl -fsSL https://releases.herdr.dev/app/install.sh | sh hc --skill
Once installed, have Opus 5.5 confirm that hc works.
安装完成后,让 Opus 5.5 确认 hc 是否可用。
𝗬𝗼𝘂 𝗸𝗲𝗲𝗽 𝘄𝗼𝗿𝗸𝗶𝗻𝗴 𝗶𝗻 𝗖𝗹𝗮𝘂𝗱𝗲 𝗖𝗼𝗱𝗲. Herdr manages the workers in the background, so you don’t have to switch interfaces.
你继续在 Claude Code 中工作。Herdr 在后台管理工作进程,因此你无需切换界面。
2. Have Opus 5.5 finish the setup
2. 让 Opus 5.5 完成设置
Paste this prompt:
粘贴以下提示词:
“Use the official Herdr docs and the instructions from hc --skill and herdr-app --skill to create a coordination Skill called herdr-desktop. Keep the main conversation in this Claude Code session and use hc to manage background workers. Don’t require me to operate inside a Herdr terminal.
“使用官方 Herdr 文档以及 hc --skill 和 herdr-app --skill 中的说明,创建一个名为 herdr-desktop 的协调 Skill。保持主对话在此 Claude Code 会话中进行,并使用 hc 管理后台工作者。不要要求我在 Herdr 终端内进行操作。”
Start separately named background workers for this task, explicitly setting the working directory. Check whether Claude Code CLI and Codex CLI are installed. If either is missing, install it. If authentication is needed, ask me to sign in.
为此任务启动单独命名的后台工作者,明确设置工作目录。检查是否安装了 Claude Code CLI 和 Codex CLI。如果缺少任一组件,请安装它。如果需要身份验证,请让我登录。
After authentication, start one Codex worker using Astra, with reasoning effort explicitly set to xhigh. Give it a read-only task: inspect the project and explain its main entry points. Run Codex with --no-daemon and allow network access in its sandbox, or it can’t reach hc. The first time it starts in a new folder, it asks whether to trust that folder. If it gets stuck there, tell me. Wait for it to finish and read back its actual response to confirm that task dispatch and result retrieval work. If the model or configuration is unavailable, tell me. Don’t silently substitute another.
身份验证完成后,使用 Astra 启动一个 Codex 工作者,明确将推理力度设置为 xhigh。给它一个只读任务:检查项目并解释其主要入口点。以 --no-daemon 模式运行 Codex,并在其沙箱中允许网络访问,否则它无法连接到 hc。当它在新的文件夹中首次启动时,会询问是否信任该文件夹。如果卡在那里,请告诉我。等待它完成并读取其实际回复,以确认任务分发和结果检索功能正常。如果模型或配置不可用,请告诉我。不要静默替换为其他模型。”
When the Herdr app is open, put the workers in a space so I can see them in the sidebar.
当 Herdr 应用打开时,将工作者放入一个空间中,以便我能在侧边栏中看到它们。
Save the verified startup, dispatch, wait, and result-reading procedures in the Skill. Don’t modify project code during setup.”
将已验证的启动、分发、等待和读取结果的流程保存到 Skill 中。在设置过程中不要修改项目代码。”
3. Sign in to your Codex account
3. 登录你的 Codex 账户
Opus 5.5 will check Codex’s login status.
Opus 5.5 将检查 Codex 的登录状态。
If needed, follow the prompts to authenticate with your ChatGPT account.
如果需要,请按照提示使用你的 ChatGPT 账户进行身份验证。
After that, you keep assigning tasks in Claude Code, while Codex runs in the background using your ChatGPT account’s allowance.
此后,你可以继续在 Claude Code 中分配任务,而 Codex 则使用你的 ChatGPT 账户的额度在后台运行。
4. Tell Opus 5.5 how to delegate
4. 告诉 Opus 5.5 如何委派任务
Paste this prompt:
粘贴以下提示词:
“From now on, use this workflow:
“从现在开始,使用以下工作流程:“
You are the coordinator.
你是协调员。
→ Handle project understanding, planning, task decomposition, integration, and final review. Make the best decision that will elevate all three: the user experience (UX), developer experience (DX), and agent experience (AX) always, without breaking anything.
→ 负责项目理解、规划、任务分解、集成和最终审查。始终做出最佳决策,以提升用户体验 (UX)、开发者体验 (DX) 和代理体验 (AX),且不得破坏任何现有功能。
→ When a task needs substantial implementation, debugging, test fixes, or multi-file changes, delegate it to Claude Code through herdr-desktop. For frontend work, have it refine the layout, visual details, and actual interactions. Give it this rule: Do not design for rare or future cases nobody asked about.
→ 当任务需要大量实现、调试、测试修复或多文件更改时,通过 herdr-desktop 将其委派给 Claude Code。对于前端工作,让它优化布局、视觉细节和实际交互。赋予它这条规则:不要为无人询问的罕见或未来情况做设计。
Use Opus 5.5 for Claude Code workers and Astra for Codex workers, both with reasoning effort explicitly set to xhigh.
对 Claude Code 工作者使用 Opus 5.5,对 Codex 工作者使用 Astra,两者均将推理努力明确设置为 xhigh。
Briefly explain the division of work, then start independent tasks in parallel. Choose concurrency based on the task, machine load, and available allowance, up to 10 workers. You don’t need to use all 10.
简要说明工作分工,然后并行启动独立任务。根据任务、机器负载和可用配额选择并发数,最多 10 个工作者。你不需要使用全部 10 个。
Give each task a clear objective, working directory, necessary context, deliverable, and completion criteria. Use separate worktrees for parallel code changes. You own the integration.
为每个任务提供清晰的目标、工作目录、必要上下文、交付物和完成标准。对并行的代码更改使用独立的工作树(worktrees)。由你负责集成。
Send follow-up feedback to the original worker whenever possible and continue its existing conversation. Don’t start over every round.
尽可能向原始工作者发送后续反馈,并继续其现有的对话。不要每轮都重新开始。
After a worker finishes, inspect the actual changes yourself and run the necessary checks after integration. For page changes, open the browser and check them.
工作者完成后,亲自检查实际更改并在集成后运行必要的检查。对于页面更改,打开浏览器进行检查。
After code changes, hand the review to a Codex worker that didn’t work on the implementation, with this rule: Rate each bug from 1 to 10 on how often it would happen and how bad it would be. If the two scores multiplied are below 5, just file it as an issue and leave the code alone.
代码更改后,将审查工作交给未参与实现的 Codex 工作者,并赋予此规则:对每个 bug 按发生频率和影响程度进行 1 到 10 的评分。如果两个分数的乘积低于 5,仅将其记录为 issue 并保留代码不动。
Don’t treat a task as finished just because another agent says it is.
不要因为其他代理说任务已完成就认为任务真的完成了。
At the end, show me the result, what was verified, and any unresolved issues. Release task resources that are no longer needed while preserving the work and records needed to continue.”
最后,向我展示结果、已验证的内容以及任何未解决的问题。释放不再需要的任务资源,同时保留继续工作所需的记录和成果。”
A few tips:
一些提示:
1. Save the delegation instructions from step 4 in herdr-desktop too, so you can invoke the Skill at the start of future tasks.
1. 也将第 4 步中的委派指令保存在 herdr-desktop 中,以便你可以在未来任务的开始时调用该 Skill。
2. Pair the Skill with a clear end goal. For example: “Finish this pricing page, keep it consistent with the existing site, and check the mobile layout and plan switching.”
2. 将 Skill 与明确的目标配对。例如:“完成这个定价页面,使其与现有站点保持一致,并检查移动端布局和计划切换功能。”
3. Each account still has its own usage limits. Adjust concurrency to the task and remaining allowance.
3. 每个账户仍有其各自的使用限制。根据任务和剩余配额调整并发数。
4. For long tasks, keep a record of progress, key decisions, and next steps. When switching conversations, check the actual state before continuing.
4. 对于耗时较长的任务,需记录进度、关键决策和下一步操作。在切换对话时,继续执行前应先检查实际状态。
It works the other way around, too: Codex coordinates, and Claude Code executes. Swap the roles and their corresponding settings.
反之亦然:Codex 负责协调,Claude Code 负责执行。交换两者的角色及其对应的设置即可。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力