全部技能 / 基础工具与工作流 / continue-codex-work
基础工具与工作流 · daymade/claude-code-skills

continue-codex-work

Continues interrupted OpenAI Codex work only after read-codex-history verifies the selected rollout identity and complete fork/compaction lineage. Use when the user provides a Codex Session ID, asks to pick up a prior Codex run, says Codex was interrupted, fused, compacted, or stuck, or wants the current Agent to take over without `codex resume`. Restores the original business outcome, unfulfilled requests, user corrections, proven prior assets, current workspace truth, and the next action that directly advances the goal. Do not use when Codex itself natively resumed this same conversation and its prior turns or compaction state are already present in the current context.

风险提醒:蓝色 · 知晓即可AI 侦查报告
作者 daymadeGitHub daymade/claude-code-skills ↗Stars 1385许可 MIT(仓库根 LICENSE:Copyright (c) 2025 daymade;GitHub API spdx MIT)commit d5c4678cb5
agent 宿主通常会约束 skill 执行权限;风险提醒为 AI 侦查观点,不构成质量或安全保证。第三方 skill 仅作拆解与展示,安装使用风险自负,版权归原作者。

1实现原理 · 为什么它能做到

入口先分流:若 Codex 原生 resume 已把同一会话的 turns/compaction 状态带回当前上下文,则本技能与 read-codex-history 都不该调用,直接基于保留上下文继续并核验工作区;只有当新/不同 agent 上下文要接管旧 rollout 或用户给出另一个 Session ID 时才走本技能。

daymade-claude-code/continue-codex-work/SKILL.md
A restart is not enough to choose the second row. The deciding fact is whether the current conversation is the host-restored continuation of the same Session, not whether a Codex process was restarted.
注:Entry gate 表(原生 resume vs 外部接管)是本技能最关键的判据,避免重复读档与误接管。

Step 1 强制 verified Codex read receipt:调 read-codex-history 拿全量 chrono 简报,必须包含 prompt-ledger/state-index/rollout 源、session_meta.id 精确匹配、root-to-child fork 血统与继承字节边界、选中的用户/助手 turns、compaction、end reason、未决调用与缺口。

daymade-claude-code/continue-codex-work/SKILL.md
Fail closed on a mismatched rollout, missing child rollout, ambiguous physical copy, missing parent, broken byte boundary, or continuation cue with no recoverable parent objective. Never continue from the “closest” file.
注:fail-closed 条件比 Claude 版更细(Codex 的 fork/物理副本模型更复杂)。

Step 2 重建同构的 7 字段续接契约;子会话只有‘继续/continue//fork’时从已验证父快照继承任务——本地 cue 不是独立目标。

daymade-claude-code/continue-codex-work/SKILL.md
If the child contains only “继续,” “continue,” or `/fork`, inherit the task from the verified parent snapshot. A local cue is not a standalone goal.
注:fork 血统(root-to-child 继承字节边界)是 Codex 版特有的核心概念。

Step 3 与现实对账:读目标项目 AGENTS.md/CLAUDE.md、核 cwd/branch/工作树/外部状态,验证记录的 patch/commit/push/download/job/agent 输出是否真落地;瞬时失败(usage limit/服务错误)先查原进程是否后来自己恢复完成再决定是否重做。

daymade-claude-code/continue-codex-work/SKILL.md
rollouts record attempted actions too.
注:与 Claude 版同哲学:尝试≠成功,恢复≠需要重做。

Step 4 执行与门禁:下一步直接动作 + 反馈闭环;分支前问‘If this succeeds, which original unfulfilled result becomes smaller?’;禁止 codex resume/--continue;不覆盖无关改动。

daymade-claude-code/continue-codex-work/SKILL.md
Do not run `codex resume` or `codex --continue`.
注:与 Step 5 汇报契约(含 Session lineage)共同构成完整执行闭环。

2核心能力

01原生 resume vs 外部接管判定(Entry gate)
02verified Codex read receipt(rollout 身份 + fork/compaction 血统 + 继承字节边界)
037 字段续接契约 + 父快照任务继承(子会话仅含续接 cue 时)
04当前工作区/外部状态核验(patch/commit/push/download/job 落地检查)
05目标缩减测试防漂移 + 禁 codex resume + 按契约汇报

3外部依赖

类型依赖
clicodex(宿主 CLI,禁止 resume/--continue)
skillread-codex-history(同仓兄弟技能,读本地 Codex 会话库)

4风险提醒 风险提醒:蓝色 · 知晓即可

风险提醒:蓝色 · 知晓即可
  • 依赖 read-codex-history 的实现质量 — fork 血统与字节边界判定若 reader 有 bug,本技能会在错误血缘上续接(fail-closed 只能降低概率)
  • Codex 数据模型随版本演进 — prompt-ledger/state-index 等内部结构非公开稳定 API,Codex 升级可能使 receipt 字段失效
  • 本地会话库隐私 — 把过去完整 rollout(含敏感内容)读入当前上下文
  • 纯流程约束的局限 — 业务完成度判断仍依赖 agent 与用户确认,SKILL 无法机械保证
风险提醒:蓝色,知晓即可。纯 SKILL.md 编排:无脚本、无网络、无凭证文件读取、无自研写入;功能 = 经同仓 read-codex-history 只读本地会话库取得 verified receipt 后,在当前工作树继续业务任务(项目写入属 agent 正常授权工作)。注意点:读取内容含过去完整会话(隐私敏感);本技能目录只有 SKILL.md,一切解析委托兄弟技能。

5第二遍独立确认

  • [ok] 无脚本/无网络/无凭证 — 目录仅 SKILL.md,无任何命令执行/网络/凭证读取指令
  • [ok] 引用的兄弟技能存在 — read-codex-history 与 continue-claude-code-work 均在 daymade-claude-code/ 下
  • [ok] Entry gate 自洽 — ‘deciding fact is whether current conversation is host-restored continuation of same Session, not whether process restarted’ 前后无矛盾
  • [ok] fail-closed 条件有可操作性 — mismatched rollout/missing child/ambiguous copy/missing parent/broken byte boundary 均为可判定条件
  • [ok] 不夸大能力 — 宣称只做‘external takeover 续接’,原生 resume 场景被显式排除——与 SKILL 内容一致

6结论

  • 精确区分原生 resume 与外部接管,避免重复读档
  • 对 Codex rollout/fork 血统的 fail-closed 验证(字节边界、物理副本歧义都拒)
  • 瞬时失败处理有据:先查原进程是否自愈再决定是否重做,避免重复劳动
  • 完成单位锁定业务结果,读档/解析/审阅通过都不算成功
  • 适合:适合要让新 agent 上下文接管中断/compacted/卡死的 Codex rollout(用户给 Session ID),或 fork 出来需要从父快照继承目标继续开发的场景;重视‘不重复劳动、不漂移’的续接工作流。
    不适合:不适合 Codex 已原生 resume 且上下文完整的会话(SKILL 明令直接继续);不适合 Claude Code 会话(走 continue-claude-code-work);不适合只要历史摘要/检索的用户(那是 read-codex-history 的活)。
    安装 agent 直装可复制
    ① 本站镜像 更新 2026-09-09
    方式 A · 人下载镜像包下载 continue-codex-work.tar.gz
    sha256: 5f48ef1a57b0b2b3…
    方式 B · JSON 格式安装指南,复制给 agent
    安装指南
    agent 读 JSON 指南后会自动从本站下载安装,无需更多说明。
    ② 上游 GitHub · 原始来源
    能访问 GitHub?直接去上游安装(实时版,可能已更新)GitHub 原始 ↗
    本页镜像锁定 commit d5c4678cb5;上游为实时仓库。
    来源信息 GitHub 原始
    作者 / 仓库daymade / daymade/claude-code-skills
    Stars1385
    最近推送2026-09-09
    本 skill commitd5c4678cb5
    许可MIT(仓库根 LICENSE:Copyright (c) 2025 daymade;GitHub API spdx MIT)
    本站信息
    收录日期2026-09-06
    分类基础工具与工作流
    侦查报告AI 侦查 · 2 遍 · 2026-09-06
    本站镜像与 GitHub 原始是不同来源:本站锁定 commit 快照经 /r2 分发;GitHub 为实时上游,内容可能已更新。
    同分类邻近