跳到正文
Skillpedia
智能体8.5k · #12448

stuck-crewmate-recovery

它能做什么

这项技能讲解如何让 Firstmate 中卡住的辅助智能体重新运转。适合运行的辅助智能体会停滞、循环或停止响应的人。

适用场景

  • ✓当某个辅助智能体已经过时、正在循环或停止响应的时候。
  • ✓当辅助智能体提出的问题,其原始指令已经回答过的时候。
  • ✓当发送给辅助智能体的指令似乎没有生效的时候。

技能链接

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/stuck-crewmate-recovery/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/stuck-crewmate-recovery/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的辅助智能体一直在同一步骤上循环。请帮我让它恢复运行,同时不丢失它的工作。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用控制命令来中断、停止或重新启动辅助智能体,并检查每个操作。恢复过程的设计目标是绝不拆除或丢弃工作,并避免对已完成的拉取请求进行强制清理。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

stuck-crewmate-recovery

Use this playbook when the session-start digest reports an ordinary direct report's endpoint dead or its metadata has no window, or when a direct report is stale, looping, repeatedly confused, asking a question its brief already answers, unresponsive, or when a steer failed to land. A stale or dead-endpoint report for a worker whose pull request has already landed is not a recovery case: the work is finished, so close the task through ordinary teardown (AGENTS.md section 7 for firstmate, the landed-work rule in bin/fm-branch-prompt.sh for the supervision branch) instead of this playbook, never with --force.

Follow the crew-hosted Lavish board contract in docs/configuration.md when recovering a worker that hosts a board.

Interrupt, stop, and relaunch a worker through bin/fm-control.sh <task-id> interrupt|exit|relaunch, which resolves the recorded runtime itself, verifies each action, and never tears down or discards anything (docs/agent-control.md). That plane covers workers running in this home; a remotely placed secondmate is refused by name and reconciled through secondmate-provisioning instead. Load harness-adapters before a resume command or a harness-specific skill invocation, and whenever the adapter's own quirks matter. The target window's harness is recorded as harness= in state/<id>.meta.

Managed approval failover

After observing a Codex command-approval prompt under bypass or a Claude policy refusal of a bypass session, ask the captain for explicit approval to change the owning home's worker permission posture and relaunch the worker. Only after that explicit word, load harness-adapters and use FM_HOME=<owning-home> bin/fm-approval-failover.sh apply <id>; its header owns persistent configuration and guarded recovery, with no automatic detection. Report the saved model-reviewed remedy and actual recovery result, preserving explicit settings and work rather than changing vendor policy or answering approval or hook-trust prompts. A backend=t3code worker already runs at T3's full-access runtime mode, so the command refuses it before changing anything; approve its pending request in T3 Code itself (T3 pending-request procedure) or move the work to another backend.

Session-start reconciliation for a dead ordinary direct report

This procedure covers ordinary kind=ship and kind=scout direct reports. Load secondmate-provisioning instead for kind=secondmate recovery.

For a REMOTE secondmate, fm-crew-state and fm-peek read the actual remote endpoint over fm-on.sh, and fm-send reports a delivered-with-pending-confirmation steer as delivered (their headers own the contracts); an unknown-remote read or unreachable-host failure means the remote state could not be read, never that the mate is dead or the send failed. Recover a genuinely stuck remote mate only through bin/fm-spawn.sh <id> --secondmate, never raw herdr pane close/kill surgery, which strands the endpoint binding.

Treat the digest's endpoint result as a presence signal, not proof that the task's work or validation run is gone. Read the targeted current state with bin/fm-crew-state.sh <id> before deciding to relaunch. A no-mistakes run matched to the crew's branch and current code remains authoritative when the endpoint is dead: handle a terminal or parked run through the normal lifecycle, and keep supervising an active run instead of creating a duplicate worker.

When no authoritative run accounts for the task, inspect only its recorded backend and worktree inventory. Use treehouse status for treehouse-backed tmux, herdr, zellij, cmux, Paseo, Rex, t3code, tern, or hc tasks, and use the recorded orca_worktree_id= and terminal= for Orca tasks. Do not sweep another home's endpoints or infer ownership from a matching window label.

Before relaunch, prove that no live agent still owns the recorded task and that the existing worktree remains available. Preserve its uncommitted changes and commits, keep the same task identity, and resume or relaunch the recorded harness in that existing worktree with the same brief plus a concise progress note. A HERDR endpoint that is not merely idle but destroyed - a pane or workspace removed in Herdr churn - is recovered by that same relaunch, which creates one fresh en

常见问题

恢复过程会删除辅助智能体的工作吗?

不会。控制步骤的设计是绝不拆除或丢弃任何内容。

如果辅助智能体的工作已经合并怎么办?

任务应通过正常的清理流程关闭,而不是通过恢复流程。

智能体需要了解每个工具的细节吗?

有时需要。在执行任何恢复命令之前,它会加载工具说明。

详情

作者的原始描述

Load when the session-start digest reports an ordinary direct report's endpoint dead or its metadata has no window, after a stale wake, looping pane, repeated confusion, an answered-by-brief question, an unresponsive crewmate, or a failed steer, after observing a defeated Claude or Codex bypass, and when a live crewmate reports its no-mistakes pipeline dead, unreachable, or timed out.

repo: kunchenguid/firstmate

热度

GitHub 星标
8.5k
排名
#12448
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能