t3-code-continue-thread
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse this skill when work must move from one T3 Code thread into a fresh thread. The input is the source thread UUID (for example ) and optionally the new focus.
a40b36e9-04d9-4a70-9f99-4ecfda1eef4b-
Resolve the source thread with the bundled script:bash
python3 <skill-dir>/scripts/find_thread.py <uuid> --fullThe script reads T3 Code's local databases underand returns JSON containing the thread record, source${CODEX_HOME:-$HOME/.codex}, branch, commit, origin, conversation, and acwd. Treat the reportedrecommended_worktree/worktree as the checkout to inspect first. Comparecwdwith the thread's recorded branch and commit. If it is false, the path has been reused or changed: userecommended_worktree.matches_recordedwhen present, otherwise locate or create the checkout for the recorded branch/commit only after the normal agent verifies it. If the path is missing, use the recorded branch and commit to locate an existing git worktree; do not silently switch to an unrelated checkout. A non-zero exit ormatching_worktreesmeans the UUID could not be resolved.found: false -
Delegate continuation context preparation to a subagent when collaboration is available. Give it the script output and the requested focus, and ask it to use theskill to write a compact continuation handoff. The subagent should preserve the source thread's exact repository, branch, worktree, dirty-file ownership, decisions, proof, blockers, and next action. It must not mutate the source checkout merely to prepare the handoff.
handoff -
The subagent's handoff path is theconsumed by the normal agent. Report the absolute path explicitly. The normal agent must read that file before acting and then continue from its stated worktree and branch. If delegation is unavailable, create the handoff yourself using the
$handoffskill and return its absolute path.handoff
Do not claim the continuation is complete merely because the source thread was found. The continuation is ready only when the handoff exists and names the checkout/worktree and the next concrete action. Never include credentials or private configuration values from the thread transcript in the handoff.
当工作需要从一个 T3 Code 线程迁移到新线程时,使用此 skill。输入内容为源线程 UUID(例如 ),也可以选择指定新的关注重点。
a40b36e9-04d9-4a70-9f99-4ecfda1eef4b-
使用随附脚本解析源线程:bash
python3 <skill-dir>/scripts/find_thread.py <uuid> --full该脚本会读取下的 T3 Code 本地数据库,并返回 JSON,其中包含线程记录、源${CODEX_HOME:-$HOME/.codex}、branch、commit、origin、conversation 以及cwd。首先检查脚本报告的recommended_worktree/worktree 对应的 checkout。将cwd与线程记录的 branch 和 commit 进行比较。如果结果为 false,说明该路径已被复用或发生变化:存在recommended_worktree.matches_recorded时应使用它,否则只有在常规 Agent 验证后,才能为记录的 branch/commit 定位或创建 checkout。如果路径不存在,应使用记录的 branch 和 commit 定位现有的 git worktree;不要在未明确说明的情况下切换到无关的 checkout。命令以非零状态退出或返回matching_worktrees,表示无法解析该 UUID。found: false -
如果支持协作,请将续接上下文的准备工作委派给 subagent。向其提供脚本输出和所要求的关注重点,并要求它使用skill 编写一份精简的续接交接文档。subagent 应保留源线程的准确 repository、branch、worktree、未提交文件的归属、决策、证据、阻塞项和下一步操作。不得仅为了准备交接文档而修改源 checkout。
handoff -
subagent 生成的交接路径是常规 Agent 使用的。必须明确报告其绝对路径。常规 Agent 在采取行动前必须读取该文件,然后从其中指定的 worktree 和 branch 继续工作。如果无法委派,请自行使用
$handoffskill 创建交接文档,并返回其绝对路径。handoff
不要仅因为找到了源线程就声称续接已经完成。只有在交接文档已经存在,并且其中明确列出了 checkout/worktree 和下一步具体操作时,续接才算准备就绪。交接文档中不得包含线程记录中的凭据或私有配置值。