handoff

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Produce a self-contained context payload that lets a fresh agent continue this work without re-deriving or re-learning what this session already established. The argument is what the next session is for — use it to shape what's captured and what's left out.
Capture what's hard-won — anything the new session would have to re-do otherwise. For each item that travels, carry the grounding with it, so the receiver inherits the working state rather than just the conclusion. Examples (illustrative, not required): a settled decision travels with the alternatives considered and why this won; a verified fact travels with how it was verified (file:line, command output, doc URL); an open thread travels with what would close it.
Carry the next session's assigned activity and scope, the source and limits of delegated choices, retained decisions, and any accepted artifact/version. Preserve current withdrawals and wait conditions with the route to resume. The handoff grants no more authority than its caller holds; a proposal for later work remains a proposal.
Carry the current acceptance claims, hard requirements and working revision freedom, plus material review dispositions with their evidence and what would reopen them. Include unfinished mandatory work and evidence that needs refreshing, not just a prior verdict.
Prefer references to the correct artifact/version when the receiving session can access them. When it cannot, carry the essential contract and continuation state in the payload, naming the unavailable source and any evidence limit. A local path alone is not a cross-host handoff; avoid copying unrelated history or duplicating content the receiver can already read.
Name the skills the next agent should invoke when the work ahead maps to them — the receiver may not know the toolbox it's inheriting.
Redact credentials, tokens, and personal data — the payload outlives this session and may become another agent's prompt verbatim. Point at where a secret lives (an env var name, a vault path) instead of its value.
Shape is the agent's call. Section names, headings, prose-vs-lists, ordering — driven by the intent, not a template.
Output to
~/.manifest-dev/handoffs/handoff-{timestamp}-{id}.md
(create the dir;
~
=
$HOME
/
%USERPROFILE%
) where
{timestamp}
is
YYYYMMDD-HHMMSS
in UTC and
{id}
is four random hex characters, creating the file only where that path is free and drawing a new
{id}
otherwise, so two handoffs written in the same second never overwrite each other — a durable home so handoffs survive OS temp cleanup between sessions. Fall back to a writable temp path only when the home directory isn't writable. If the argument is a path to a prior handoff, read it first and write a fresh doc reflecting the current state — pure rewrite, not append.
生成一个自包含的上下文载荷,使新的 Agent 无需重新推导或重新学习即可继续当前工作。参数说明了下一个会话的用途——利用它来决定应捕获哪些内容、排除哪些内容。
捕获来之不易的信息——任何新会话原本都必须重新完成的事项。对于每一项要传递的内容,一并带上依据,使接收方继承的是工作状态,而不只是结论。示例(仅作说明,并非必需): 已确定的决策应连同考虑过的备选方案及其胜出原因一起传递;已验证的事实应连同验证方式一起传递(file:line、命令输出、文档 URL);未完成事项应连同使其闭环所需的信息一起传递。
带上下一个会话所分配的活动和范围、委派选项的来源和限制、已保留的决策,以及任何已验收的产物或版本。保留当前的撤回项和等待条件,并注明恢复路径。交接不会授予超出调用者自身权限的权限;为后续工作提出的建议仍然是建议。
带上当前的验收声明、硬性要求和可调整的修订空间,以及实质性审查结论及其证据和重新开启审查的条件。包括尚未完成的强制工作以及需要刷新的证据,而不只是此前的判定。
如果接收会话能够访问,请优先引用正确的产物或版本。当其无法访问时,在载荷中包含必要的约定和延续状态,并注明不可用的来源及任何证据限制。仅有本地路径并不构成跨主机交接;避免复制无关历史,也避免重复接收方已经能够读取的内容。
指明下一位 Agent 在后续工作与某些 skill 对应时应调用哪些 skill——接收方可能并不了解自己继承的工具箱。
对凭据、令牌和个人数据进行脱敏——该载荷的寿命长于当前会话,并且可能会逐字成为另一个 Agent 的提示词。请指向秘密所在的位置(例如环境变量名称、vault 路径),而不是其值。
结构形式由 Agent 自行决定。章节名称、标题、使用散文还是列表、排序方式——均由意图决定,而不是套用模板。
输出到
~/.manifest-dev/handoffs/handoff-{timestamp}-{id}.md
(创建目录;
~
=
$HOME
/
%USERPROFILE%
),其中
{timestamp}
是 UTC 格式的
YYYYMMDD-HHMMSS
,
{id}
是四个随机十六进制字符;仅当该路径不存在时才创建文件,否则重新生成
{id}
,从而确保同一秒内写入的两次交接不会相互覆盖——使用一个持久化主目录,使交接文件能够在会话之间躲过操作系统临时文件清理。只有在主目录不可写时,才回退到可写的临时路径。如果参数是先前交接文件的路径,先读取该文件,然后写入一份反映当前状态的新文档——这是完全重写,不是追加。