harness-adapters
它能做什么
这项技能讲解 Firstmate 如何为其辅助智能体启动和管理不同的 AI 编程工具,这些工具被称为 harness。适合运行多个编程智能体、并希望每个都被正确处理的人。
适用场景
- ✓当你想使用某个特定的 AI 编程工具启动一个新的辅助智能体时。
- ✓当某个辅助智能体显示需要回答的信任提示时。
- ✓当你需要停止、中断或恢复一个已退出的智能体时。
技能链接
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/harness-adapters/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用 Codex 工具启动一个新的辅助智能体,并先确认该工具已通过验证。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体加载共享指南,以及当前所用工具的说明。它拒绝在未验证的工具上启动辅助智能体,并在做出会改变这些工具的选择之前先询问你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
harness-adapters
This is the one skill, trigger, and routing owner for harness-specific Firstmate operations.
Load this router first, then exactly the common reference and one harness reference selected below.
When an action spans rows, load the union once rather than every reference.
Files under references/ are resources of this skill, not additional catalogued skills.
Path contract
The skill directory is the directory containing this SKILL.md.
Resolve on-demand reference links and relative links to their executable, documentation, or sibling-skill owners against the skill directory, including links named by a nested reference.
Operational paths keep the context named by their owner: config/ and active-home settings belong to the active Firstmate home, state/ belongs to that home, and project settings such as .claude/settings.json belong to the target project.
Non-negotiable safety
Never dispatch a crewmate or secondmate on an unverified adapter.
If config/crew-harness or config/secondmate-harness names one, tell the captain under ../../../AGENTS.md section 9 that the requested worker runtime is not verified, use firstmate's own verified runtime for current work, and ask only whether to verify the requested runtime for future work.
Do not pause current work for that choice.
On unknown, ask the captain instead of guessing.
A current captain override beats detection, while a per-task override governs only that dispatch.
For recovery and control, use the exact harness= in state/<id>.meta; never infer it from a model or provider.
Deliver lifecycle actions only through ../../../bin/fm-control.sh <task-id> interrupt|exit|relaunch.
Never type an interrupt key or exit command through fm-send, where routing-marked lifecycle text becomes chat.
Trust handling is complete only when inspection proves the target started processing its instructions; delivery success alone is not proof.
Muse, Gemini, Devin, Command Code, Polytoken, Cortex, and Kiro are verified only for crewmate and scout work, never a secondmate or primary.
Detection
../../../bin/fm-harness.sh prints firstmate's own harness from verified environment markers and process ancestry, and owns how they combine.
A marker names its harness, but a structural ancestor of a different harness outranks it, because a marker is ordinary environment state a child or a multiplexer can retain while ancestry is what proves who owns the process tree.
Only FM_PI_HARNESS=pi-signed at the launch boundary together with PI_CODING_AGENT=true selects Pi-signed; shared unmarked launcher ancestry remains Pi.
omp publishes no marker of its own; FM_OMP_HARNESS=omp is Firstmate's launch marker and the anchored process name omp is its ancestry evidence, as references/harness/omp.md records.
../../../bin/fm-spawn.sh owns worker marker establishment, while the README launch command owns the signed-primary boundary.
../../../bin/fm-harness.sh crew resolves config/crew-harness, where absent or default means firstmate's own harness.
docs/configuration.md owns secondmate pin resolution, including per-mate overrides; bin/fm-harness.sh owns the resolver commands.
../../../bin/fm-spawn.sh re-resolves on every spawn, and an explicit per-spawn argument wins for that spawn.
A new adapter's verified marker and command name must land in ../../../bin/fm-harness.sh.
Operation-to-reference matrix
Every emitted plan appends the selected or recorded harness reference after the named common references.
The harness-adapter-routing-v1 object is the machine-readable and human-visible selection contract: choose the operation, choose the scenario within it, then append the selected harness reference.
default is the normal scenario when no narrower scenario applies.
Kimi establishes its unsupported primary boundary in its selected harness reference; Muse and Gemini follow Non-negotiable safety above.
A new tool remains undispatchable until the verify plan, its harness entry, every named owner, and the live checks land.
{
"operations": {
"start": {
"default": ["references/common/dispatch.md", "references/common/model-and-effort.md"],
"trust-dialog": ["references/common/control-and-recovery.md"]
},
"trust": {"default": ["references/common/control-and-recovery.md"]},
"skill": {"defaul
常见问题
它可以使用未验证的工具吗?
不可以。它会告诉你该工具未经验证,并为当前工作使用已验证的工具。
它处理哪些类型的操作?
启动智能体、回答信任提示、发送技能命令,以及中断、退出或恢复智能体。
遇到不清楚的情况它会猜测吗?
不会。如果工具未知,它会询问你,而不是猜测。
详情
作者的原始描述
Load before spawning or recovering a crewmate or secondmate, handling a trust dialog, sending a harness-specific skill invocation, interrupting or exiting an agent, resuming an exited agent, or verifying a new harness adapter.
repo: kunchenguid/firstmate
热度
- GitHub 星标
- 8.5k
- 排名
- #12437
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …