首页 / 全部技能 / 基础工具与工作流 / 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.

L2 本地 · 限定工作目录V1 已固定读写文件Dual-pass Audit
Author daymadeGitHub daymade/claude-code-skills ↗Stars 1385License MIT(仓库根 LICENSE:Copyright (c) 2025 daymade;GitHub API spdx MIT)Commit d5c4678cb5
管控等级描述 skill 的能力与建议配套的管控措施,不代表质量或安全认证,也不表示可用或不可用。是否使用由用户和管理者决定。不同 agent 宿主对权限的约束各不相同,请勿假定宿主一定会提供安全兜底。第三方 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外部依赖

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

4管控建议与判定依据

建议配套管控措施
面向 Agent
限定工作目录
面向管理者
保留操作记录
判定依据(文件路径与关键语句摘要)
  • 本地工作目录: 文件读写与工件输出: (由 agent 按正常授权执行当前项目工作——技能本身无写指令;改动前强制 read receipt 与契约)
审计说明: 。纯 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 的活)。
    Install Agent-Ready
    ① Verified Mirror 2026-09-09
    Option A · Direct DownloadDownload continue-codex-work.tar.gz
    sha256: 5f48ef1a57b0b2b3…
    Option B · Copy Guide for Agent
    install.json
    agent 读 JSON 指南后会自动从本站下载安装,无需更多说明。
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit d5c4678cb5.