afk
它能做什么
这项技能让 Firstmate 工具进入离开模式,使智能体在你不在电脑前时仍能继续监督工作。适合运行 Firstmate、并希望暂时离开的人。
适用场景
- ✓当你离开座位,希望智能体在你不在时继续推进工作的时候。
- ✓当你离开一段时间后回来,想要一份关于所发生事情的简短简报时。
- ✓当你希望智能体把重大决定留到你回来再处理的时候。
技能链接
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/afk/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我接下来几个小时不在线。请让智能体进入离开模式,并把所有重大决定留给我。”
每周 5 个新技能,1 分钟读完。
工作原理
你通过输入命令开启离开模式,智能体会先记录这一选择。然后它遵循离开模式的规则,把属于你的决定保留到你回来。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
afk
Away mode is a POSTURE of the one supervision session, not a second architecture.
Being away changes exactly two things: how the captain is informed, and what happens at a captain-owned decision point (hold for return, or the answer the captain's away words already gave).
It never changes the authority set.
The posture is a file, state/.afk-contract, written only by bin/fm-afk-contract.sh in the same turn as /afk; nothing infers the posture from chat.
A record carrying quiet mode (bin/fm-afk-contract.sh mode) is not this posture: the captain is present, so none of this skill's holds for a return apply to it (the quiet skill owns it).
Typing /afk is itself the go: the captain may not look at the screen again, so entry never waits for a further human response, and no read-back gates it or asks for a go.
Hold-for-return is the default and the only reach profile this release records: there is no phone channel, and the entry announcement says so aloud every time.
Entering: /afk [words]
- Write the record first, in this same turn.
Before any other work, run
bin/fm-afk-launch.sh enter --words-file <path> [--expected-return <UTC ISO 8601>] [--spend <n>](or--words <text>). It writesstate/.afk-contractat once, with no separate confirmation step, then prints the entry announcement and the record's read-back. The words are the whole mandate:bin/fm-afk-contract.shrecords them exactly as given, with no clause fields, verbs, ids, or merge-grant list, and by the captain's mandate no parser, tokenizer, classifier, or grammar reads them anywhere. Readbin/fm-afk-contract.sh --helpfor the flags rather than memorizing them. Plain/afkwith no words is a valid entry with no mandate; the announcement says no instructions were recorded. Re-invoking/afkwhile already away with no new words is a refresh and leaves the standing record untouched; new words replace the mandate at once, preserve the original session entry, and archive the superseded words for the return brief. - Per harness, after the record exists:
- Pi and pi-signed: nothing to launch; go on to the announcement.
The away daemon is no longer launched on Pi; the ordinary supervision session (
docs/pi-supervision-branch.md) keeps running with the record present, andbin/fm-afk-launch.sh startrefuses on these harnesses. With the record present main is parked: the supervision branch takes every safe actionable wake, captain outcomes accumulate for the return brief, and main's standing authority relocates to the branch through the guarded scripts (docs/pi-supervision-branch.md"Postures"); only a wake the branch declines (including a broken branch or unsafe scan) or a watcher failure wakes main./quietneeds nothing extra on Pi: the attended branch already keeps routine wakes out of this conversation, so quiet-while-present is the attended posture's own shape there. - A home that runs the supervision host (a Claude home unless
config/supervision-host-offopts it out, or a Cursor, OpenCode, omp, Grok, or Codex home withconfig/supervision-hostand no opt-out;docs/configuration.md"Supervision host"): nothing to launch for/afk; go on to the announcement. The supervision host (docs/supervision-host.md) is the away session there: it runs the branch's contract on a headless engine under the record while main is parked, andbin/fm-afk-launch.sh startandstart-nativerefuse the away daemon on that home. Ifenterprinted aSupervision host: no engine ...line, every away wake reaches this conversation instead; say so in the announcement./quietenters nothing there where the attended host runs, and otherwise still launches the daemon below (the quiet skill'squiet-checkdecides). - Harness WITH a native in-pane tracked-background tool (claude's and grok's, on a home that does not run the supervision host): run
bin/fm-afk-launch.sh start-native, then runFM_AFK_STATE_PREPARED=1 bin/fm-afk-start.shthrough that native tool. This is a deliberate no-separate-terminal exception because the harness-hosted job creates no terminal or layout mutation, and a shell launcher cannot invoke a harness-native background tool. If the native launch fails, runbin/fm-afk-launch.sh stopto roll back the prepared lifecycle. Do not wrap it innohup ... &(Codex/herdr can reap fire-and-forget shell children after a tool call returns)
- Pi and pi-signed: nothing to launch; go on to the announcement.
The away daemon is no longer launched on Pi; the ordinary supervision session (
常见问题
离开模式下智能体可以做任何决定吗?
它只在你授予的权限范围内行动,并且在不确定时会留到你回来再处理。
智能体如何告诉我发生了什么?
你回来时,它会给你一份返回简报,总结你离开期间发生的事情。
我可以用手机联系到吗?
这个版本不支持。没有手机通道,因此智能体无法在你离开电脑时联系你。
详情
作者的原始描述
Enter the away posture when the captain invokes /afk, says they are going afk, `state/.afk-contract` or `state/.afk` exists, an incoming message starts with `FM_INJECT_MARK`, or any `state/.subsuper-*` marker is involved. Load it at once in the /afk turn, before any other work, and on the first unmarked message while away to render the return brief.
repo: kunchenguid/firstmate
热度
- GitHub 星标
- 8.5k
- 排名
- #12426
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …