stow
它能做什么
这项技能把当前 Firstmate 会话中的重要知识保存到其记录中,并整理它的记忆。适合希望智能体记住经验、且不丢失未完成工作的人。
适用场景
- ✓当你要求智能体保存它在本次会话中学到的内容的时候。
- ✓当会话即将重置或被压缩,而你希望不丢失任何内容时。
- ✓当你希望智能体的记忆随时间保持更新时。
技能链接
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/stow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把你从本次会话中学到的内容保存下来,以免在我们重置之前丢失。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会回顾会话,找出仅存在于聊天中的事实和未完成任务,并把它们归入正确的记录。旧的条目会被移到归档中,而不会被删除。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
stow
Sweep this session for durable knowledge and open-work record state that exist only in conversation, then leave the next session with a compact current operating map rather than an accumulating journal. Memory entries are tiered and decay between passes, and stale material retires to a cold archive instead of being deleted. This skill writes only through the existing Firstmate ownership and write boundaries.
Memory tiers and entry markers
Markers are compact trailing HTML comments, deliberately cheap because marker bytes are counted content:
<!--a:YYYY-MM-DD-->- anagingentry; the embedded date is its last-reinforced date.<!--p:YYYY-MM-DD-->- aperishableentry; the embedded date is its last-reinforced date.<!--a:YYYY-MM-DD/N-->- only in a home that has opted in to the pass horizon below: either dated marker may carry/N, the number of passes that evaluated the entry without reinforcing it. An absent/Nmeans zero, so an entry the fleet keeps exercising costs no counter bytes at all, and a home that has not opted in never writes one.<!--P-->- an explicitlypinnedentry in a file whose default tier is notpinned.<!--g-->- migration-only: an unconfirmed legacy entry that has consumed its one grace cycle, carrying no date because grace is not reinforcement.<!--t:NAME-->- pending capture: a tier-owned entry that the declared memory tierNAMEdoes not yet hold because no session that wrote or curated it could reach that tier; it follows any tier marker the entry already carries. Stow never prunes, ages out, evicts, offloads, consolidates away, or moves to the cold archive an entry carrying it, whatever its tier clock says. A later pass that can reachNAMEcaptures the entry there under the tier's declared rule, then removes the marker, after which the entry is curated like any other. When the declaration no longer namesNAMEbecause the home renamed or retired that tier, the next pass retargets the marker to the declared tier that now owns the entry's knowledge class, or removes it when no declared tier owns that class, so no entry stays pinned by a tier that no longer exists.
- Treehouse pool slots share one repo, so workers must create their task branch before editing. <!--a:2026-08-03-->
- While state/.afk exists, the away-daemon owns triage (until the afk-wake fix lands; tracked: afk-pi-wake-bypass-r1). <!--p:2026-07-20-->
- Never restart the shared no-mistakes daemon while runs are active. <!--P-->
- Codex writes its trust prompt to stderr, not stdout. <!--a:2026-07-28/6-->
The tier names say what the pass does with an entry:
pinned- no clock is ever read for it: exempt from decay and from budget eviction, changed only through inspect-then-update when the captain or reality changes it, except that an explicit per-item captain approval may offload it under the flow below.aging- it must re-prove itself: an entry whose age is greater than or equal to 30 days since its last-reinforced date is stale, and a stale entry is re-validated (date refreshed) or archived, never kept by inertia alone.perishable- it is stored expecting disposal: an entry whose age is greater than or equal to 7 days since its last-reinforced date is stale, and its prose must name a checkable expiry condition, such as a backlog id, a version floor, or a dated expectation. An admitted durable entry that cannot name a checkable expiry condition is notperishableand must be stored asaging. Omission is reserved for non-durable material or facts already owned elsewhere.
Marking rules:
- Tier defaults are file-scoped: entries in
data/captain.mdanddata/captain-shared.mddefault topinnedbecause preferences and authority boundaries do not age, and entries indata/learnings.mddefault toagingbecause operational facts must re-prove themselves. - An entry matching its file's
pinneddefault carries no marker at all; everyagingandperishableentry always carries its dated marker, whose letter names the tier, so a clock-carrying entry is never ambiguous with unmarked legacy material. - Marker and header-pointer bytes count toward the startup-memory budget: the pass's own bookkeeping is costed
常见问题
它会删除旧的记忆吗?
不会。过时的内容会被移到冷归档中,而不是被删除。
它会保存哪些类型的内容?
持久的知识,例如已声明的偏好、操作经验和未完成的下一步。
它能写入任何它想写的文件吗?
不能。它只会通过 Firstmate 现有的归属和写入规则进行写入。
详情
作者的原始描述
Sweep the session for uncaptured durable knowledge and unfiled or wrong open work records, and curate startup memory. Use when the captain invokes /stow (e.g. "/stow", "stow what you've learned"), before a session reset or context compaction, or periodically to keep operational memory current.
repo: kunchenguid/firstmate
热度
- GitHub 星标
- 8.5k
- 排名
- #12447
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …