GPT WORLD / INDEPENDENT CODEX FIELD MANUAL 出典レビュー · 2026-10-21

最新号 / CODEX

並列する試行ごとに checkout と session を分ける

Codex CLI 0.163.0 は作業の場所と session の所有を分離します。--worktree は managed Git worktree を作り、codex exec fork は保存済み session を新しい session へ複製し、codex queue は既存 session に message を送ります。

01 / DECIDE

Architecture decision

同じ task の複数の試行が互いを上書きしてはならない場合や、長時間の実行に再起動なしで追加指示が必要な場合に使う。

Codex CLI 0.163.0 は作業の場所と session の所有を分離します。--worktree は managed Git worktree を作り、codex exec fork は保存済み session を新しい session へ複製し、codex queue は既存 session に message を送ります。 input、output、state、side effect を一つの観測可能な経路にしてから、並列する試行ごとに checkout と session を分ける の所有層を決めます。

02 / BUILD

3段階の実装

  1. 01

    contract を定義

    caller、data classification、success condition、timeout、cancel、ownership を先に記述します。同じ task の複数の試行が互いを上書きしてはならない場合や、長時間の実行に再起動なしで追加指示が必要な場合に使う。

  2. 02

    狭い経路を構築

    request correlation、typed state、reversible failure handling を持つ一つの end-to-end path だけを実装します。Codex CLI 0.163.0 は作業の場所と session の所有を分離します。--worktree は managed Git worktree を作り、codex exec fork は保存済み session を新しい session へ複製し、codex queue は既存 session に message を送ります。

  3. 03

    outcome を証明

    acceptance を再実行可能な fixture、contract test、browser test にします。証拠は試行ごとの worktree path と session identifier、意図した thread に届く queued message、未 commit の agent 変更が残らない primary checkout です。

03 / BOUND

Production boundary

--worktree は local 実行が必要で resume、review、--ephemeral、--ignore-user-config とは併用できず、background server が使う app-server command は実験的で production workload には未対応のままです。

04 / PROVE

Acceptance evidence

証拠は試行ごとの worktree path と session identifier、意図した thread に届く queued message、未 commit の agent 変更が残らない primary checkout です。

SOURCE / HTTP

再現可能な source probe

curl -fsSI 'https://learn.chatgpt.com/docs/developer-commands?surface=cli' | sed -n '1,5p'