Skip to main content
Glama

Preview a delegate (free)

codex_delegate_dry_run
Read-only

Preview a Codex delegate call before spending: check seeded baseline, prompt size, workspace, and isolation so you can confirm scope and avoid paid failures.

Instructions

Deprecated: use amicus_delegate_dry_run. Preview what a codex_delegate/codex_delegate_async call would do — the baseline it seeds from (HEAD commit, tracked file count/size, uncommitted and untracked counts), the prompt size that would be sent, and the resolved workspace/isolation. Free — no model call, no spend, no worktree created.

Use it before delegating to confirm scope and repo before committing to cost, exactly as codex_dry_run previews codex_review_changes. Mirrors the real delegate's zero-spend validation (workspace, isolation, task size, git repo), so a failure here is a failure the paid call would also hit. The returned tier/sandbox describe the previewed propose run, not this read-only preview; the result echoes the effective model/reasoning_effort overrides the paid call would send (unvalidated). deadline_advisory is non-null when size or reasoning effort risks the synchronous deadline and names codex_delegate_async verbatim — the async counterpart of the previewed call, not of this dry-run tool. A hint, not a refusal.

A dry run reports metadata about the input this plugin would assemble; it does not invoke Codex, and it neither enumerates nor bounds the files the model itself reads and sends during the paid call. Codex can read files outside the workspace — up to everything the OS user running it can read — and send them to OpenAI. The sandbox bounds writes, not reads, so no choice of workspace is a read boundary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesThe coding task you want Codex to implement via a real codex_delegate call; this dry run only previews the seeded baseline and prompt size — it does NOT call Codex or return a diff. Must be non-blank: empty or whitespace-only is rejected here too, not previewed.
modelNoThe Codex model slug the previewed paid call would use; defaults to the server default (CODEX_IN_CLAUDE_MODEL) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the model.
isolationNoCodex config isolation: 'inherit' | 'ignore-config' | 'ignore-rules'. Defaults to the server's configured value (built-in 'inherit'; `codex_status` reports the resolved one).
workspace_rootNoAbsolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning. On an active call it selects where Codex works, not what it can read — it is not a read boundary.
reasoning_effortNoThe reasoning effort the previewed paid call would send (as a `model_reasoning_effort` config override); defaults to the server default (CODEX_IN_CLAUDE_REASONING_EFFORT) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the value beyond the paid params' shape bounds (no control or surrogate characters, ≤128 chars).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.0
    • changedInput schema / properties / model / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[^\\x00-\\x1F\\x7F-\\x9F]*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / workspace_root / description
      Previous value: -"Absolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning."New value: +"Absolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning. On an active call it selects where Codex works, not what it can read — it is not a read boundary."
  2. Changed4 schema fields changedv0.17.0
    • changedInput schema / properties / isolation / description
      Previous value: -"Codex config isolation: 'inherit', 'ignore-config', or 'ignore-rules'. Defaults to the server's configured isolation (built-in default 'inherit'; `codex_status` reports the resolved value)."New value: +"Codex config isolation: 'inherit' | 'ignore-config' | 'ignore-rules'. Defaults to the server's configured value (built-in 'inherit'; `codex_status` reports the resolved one)."
    • changedInput schema / properties / task / description
      Previous value: -"The coding task you want Codex to implement via a real codex_delegate call; this dry run only previews the seeded baseline and prompt size — it does NOT call Codex or return a diff."New value: +"The coding task you want Codex to implement via a real codex_delegate call; this dry run only previews the seeded baseline and prompt size — it does NOT call Codex or return a diff. Must be non-blank: empty or whitespace-only is rejected here too, not previewed."
    • changedInput schema / properties / workspace_root / description
      Previous value: -"Absolute path to the target repository root. Pass it (or rely on an MCP root) so the call targets the intended repo; otherwise it falls back to the server's own cwd and meta.workspace_warning is set."New value: +"Absolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cwd": {
      -        "type": "string"
      -      },
      -      "fingerprint": {
      -        "type": "string"
      -      },
      -      "isolation": {
      -        "enum": [
      -          "inherit",
      -          "ignore-config",
      -          "ignore-rules"
      -        ],
      -        "type": "string"
      -      },
      -      "max_input_bytes": {
      -        "type": "integer"
      -      },
      -      "model": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Model override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "prompt_bytes": {
      -        "type": "integer"
      -      },
      -      "reasoning_effort": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Reasoning-effort override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      -      },
      -      "sandbox": {
      -        "enum": [
      -          "read-only",
      -          "workspace-write",
      -          "danger-full-access"
      -        ],
      -        "type": "string"
      -      },
      -      "server_version": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "tier": {
      -        "enum": [
      -          "consult",
      -          "propose",
      -          "apply"
      -        ],
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "codex_delegate_dry_run",
      -        "type": "string"
      -      },
      -      "workspace_source": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "workspace_warning": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "worktree_plan": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "head_commit": {
      -            "type": "string"
      -          },
      -          "head_subject": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "note": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "tracked_bytes": {
      -            "type": "integer"
      -          },
      -          "tracked_files": {
      -            "type": "integer"
      -          },
      -          "uncommitted_tracked_files": {
      -            "type": "integer"
      -          },
      -          "untracked_files": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "head_commit",
      -          "tracked_files",
      -          "tracked_bytes",
      -          "uncommitted_tracked_files",
      -          "untracked_files"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "cwd",
      -      "isolation",
      -      "prompt_bytes",
      -      "max_input_bytes",
      -      "worktree_plan"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cwd": {
      +        "type": "string"
      +      },
      +      "deadline_advisory": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Non-null when the previewed call would actually run the model AND its prompt size or reasoning effort risks the synchronous deadline; null otherwise (including whenever it would not call the model at all). Names the previewed PAID tool's own `_async` counterpart verbatim (e.g. codex_review_changes_async for a codex_dry_run preview) — never this dry-run tool's own name, which has no `_async` variant. A hint, not a refusal. codex_consult has no dry-run preview; prefer codex_consult_async for a high-effort or broad repo-grounded consult."
      +      },
      +      "fingerprint": {
      +        "type": "string"
      +      },
      +      "isolation": {
      +        "enum": [
      +          "inherit",
      +          "ignore-config",
      +          "ignore-rules"
      +        ],
      +        "type": "string"
      +      },
      +      "max_input_bytes": {
      +        "type": "integer"
      +      },
      +      "model": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Model override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "prompt_bytes": {
      +        "type": "integer"
      +      },
      +      "reasoning_effort": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Reasoning-effort override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "roots_source": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "client",
      +              "not_negotiated",
      +              "probe_failed"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "sandbox": {
      +        "enum": [
      +          "read-only",
      +          "workspace-write",
      +          "danger-full-access"
      +        ],
      +        "type": "string"
      +      },
      +      "server_version": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tier": {
      +        "enum": [
      +          "consult",
      +          "propose",
      +          "apply"
      +        ],
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "codex_delegate_dry_run",
      +        "type": "string"
      +      },
      +      "workspace_source": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "workspace_warning": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "worktree_plan": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "head_commit": {
      +            "type": "string"
      +          },
      +          "head_subject": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "tracked_bytes": {
      +            "type": "integer"
      +          },
      +          "tracked_files": {
      +            "type": "integer"
      +          },
      +          "uncommitted_tracked_files": {
      +            "type": "integer"
      +          },
      +          "untracked_files": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "head_commit",
      +          "tracked_files",
      +          "tracked_bytes",
      +          "uncommitted_tracked_files",
      +          "untracked_files"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "cwd",
      +      "isolation",
      +      "prompt_bytes",
      +      "max_input_bytes",
      +      "worktree_plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed3 schema fields changedv0.13.0
    • changedInput schema / properties / model / description
      Previous value: -"The Codex model slug the real codex_delegate call would use; this dry run does not call Codex or validate the model."New value: +"The Codex model slug the previewed paid call would use; defaults to the server default (CODEX_IN_CLAUDE_MODEL) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the model."
    • addedInput schema / properties / reasoning_effort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 128,
      +      "pattern": "^[^\\x00-\\x1F\\x7F-\\x9F]*$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The reasoning effort the previewed paid call would send (as a `model_reasoning_effort` config override); defaults to the server default (CODEX_IN_CLAUDE_REASONING_EFFORT) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the value beyond the paid params' shape bounds (no control or surrogate characters, ≤128 chars)."
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cwd": {
      -        "type": "string"
      -      },
      -      "fingerprint": {
      -        "type": "string"
      -      },
      -      "isolation": {
      -        "enum": [
      -          "inherit",
      -          "ignore-config",
      -          "ignore-rules"
      -        ],
      -        "type": "string"
      -      },
      -      "max_input_bytes": {
      -        "type": "integer"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "prompt_bytes": {
      -        "type": "integer"
      -      },
      -      "sandbox": {
      -        "enum": [
      -          "read-only",
      -          "workspace-write",
      -          "danger-full-access"
      -        ],
      -        "type": "string"
      -      },
      -      "server_version": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "tier": {
      -        "enum": [
      -          "consult",
      -          "propose",
      -          "apply"
      -        ],
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "codex_delegate_dry_run",
      -        "type": "string"
      -      },
      -      "workspace_source": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "workspace_warning": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "worktree_plan": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "head_commit": {
      -            "type": "string"
      -          },
      -          "head_subject": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "note": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "tracked_bytes": {
      -            "type": "integer"
      -          },
      -          "tracked_files": {
      -            "type": "integer"
      -          },
      -          "uncommitted_tracked_files": {
      -            "type": "integer"
      -          },
      -          "untracked_files": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "head_commit",
      -          "tracked_files",
      -          "tracked_bytes",
      -          "uncommitted_tracked_files",
      -          "untracked_files"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "cwd",
      -      "isolation",
      -      "prompt_bytes",
      -      "max_input_bytes",
      -      "worktree_plan"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cwd": {
      +        "type": "string"
      +      },
      +      "fingerprint": {
      +        "type": "string"
      +      },
      +      "isolation": {
      +        "enum": [
      +          "inherit",
      +          "ignore-config",
      +          "ignore-rules"
      +        ],
      +        "type": "string"
      +      },
      +      "max_input_bytes": {
      +        "type": "integer"
      +      },
      +      "model": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Model override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "prompt_bytes": {
      +        "type": "integer"
      +      },
      +      "reasoning_effort": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Reasoning-effort override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "sandbox": {
      +        "enum": [
      +          "read-only",
      +          "workspace-write",
      +          "danger-full-access"
      +        ],
      +        "type": "string"
      +      },
      +      "server_version": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tier": {
      +        "enum": [
      +          "consult",
      +          "propose",
      +          "apply"
      +        ],
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "codex_delegate_dry_run",
      +        "type": "string"
      +      },
      +      "workspace_source": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "workspace_warning": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "worktree_plan": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "head_commit": {
      +            "type": "string"
      +          },
      +          "head_subject": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "tracked_bytes": {
      +            "type": "integer"
      +          },
      +          "tracked_files": {
      +            "type": "integer"
      +          },
      +          "uncommitted_tracked_files": {
      +            "type": "integer"
      +          },
      +          "untracked_files": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "head_commit",
      +          "tracked_files",
      +          "tracked_bytes",
      +          "uncommitted_tracked_files",
      +          "untracked_files"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "cwd",
      +      "isolation",
      +      "prompt_bytes",
      +      "max_input_bytes",
      +      "worktree_plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed1 schema field changedv0.11.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cwd": {
      -        "type": "string"
      -      },
      -      "fingerprint": {
      -        "type": "string"
      -      },
      -      "isolation": {
      -        "enum": [
      -          "inherit",
      -          "ignore-config",
      -          "ignore-rules"
      -        ],
      -        "type": "string"
      -      },
      -      "max_input_bytes": {
      -        "type": "integer"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "prompt_bytes": {
      -        "type": "integer"
      -      },
      -      "sandbox": {
      -        "enum": [
      -          "read-only",
      -          "workspace-write",
      -          "danger-full-access"
      -        ],
      -        "type": "string"
      -      },
      -      "tier": {
      -        "enum": [
      -          "consult",
      -          "propose",
      -          "apply"
      -        ],
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "codex_delegate_dry_run",
      -        "type": "string"
      -      },
      -      "workspace_source": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "workspace_warning": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "worktree_plan": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "head_commit": {
      -            "type": "string"
      -          },
      -          "head_subject": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "note": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "tracked_bytes": {
      -            "type": "integer"
      -          },
      -          "tracked_files": {
      -            "type": "integer"
      -          },
      -          "uncommitted_tracked_files": {
      -            "type": "integer"
      -          },
      -          "untracked_files": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "head_commit",
      -          "tracked_files",
      -          "tracked_bytes",
      -          "uncommitted_tracked_files",
      -          "untracked_files"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "cwd",
      -      "isolation",
      -      "prompt_bytes",
      -      "max_input_bytes",
      -      "worktree_plan"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cwd": {
      +        "type": "string"
      +      },
      +      "fingerprint": {
      +        "type": "string"
      +      },
      +      "isolation": {
      +        "enum": [
      +          "inherit",
      +          "ignore-config",
      +          "ignore-rules"
      +        ],
      +        "type": "string"
      +      },
      +      "max_input_bytes": {
      +        "type": "integer"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "prompt_bytes": {
      +        "type": "integer"
      +      },
      +      "sandbox": {
      +        "enum": [
      +          "read-only",
      +          "workspace-write",
      +          "danger-full-access"
      +        ],
      +        "type": "string"
      +      },
      +      "server_version": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tier": {
      +        "enum": [
      +          "consult",
      +          "propose",
      +          "apply"
      +        ],
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "codex_delegate_dry_run",
      +        "type": "string"
      +      },
      +      "workspace_source": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "workspace_warning": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "worktree_plan": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "head_commit": {
      +            "type": "string"
      +          },
      +          "head_subject": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "tracked_bytes": {
      +            "type": "integer"
      +          },
      +          "tracked_files": {
      +            "type": "integer"
      +          },
      +          "uncommitted_tracked_files": {
      +            "type": "integer"
      +          },
      +          "untracked_files": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "head_commit",
      +          "tracked_files",
      +          "tracked_bytes",
      +          "uncommitted_tracked_files",
      +          "untracked_files"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "cwd",
      +      "isolation",
      +      "prompt_bytes",
      +      "max_input_bytes",
      +      "worktree_plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed2 schema fields changedv0.8.0
    • changedInput schema / properties / isolation / description
      Previous value: -"Codex config isolation: 'inherit' (default), 'ignore-config', or 'ignore-rules'."New value: +"Codex config isolation: 'inherit', 'ignore-config', or 'ignore-rules'. Defaults to the server's configured isolation (built-in default 'inherit'; `codex_status` reports the resolved value)."
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  6. First observedv0.5.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds substantial context beyond them: zero model call/spend/worktree, that a failure here mirrors a paid failure, the deadline_advisory semantics, and the critical caveat that the sandbox bounds writes not reads so no workspace is a read boundary. The only deduction is that the read-boundary warning is repeated rather than further elaborated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the deprecation and purpose, which is good, but it is dense and repeats the 'not a read boundary' point in both the body and the workspace_root schema description. Several clauses restate what the annotations and schema already convey.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only preview tool with an output schema, the description covers what is previewed, what is not validated, what the result echoes, and the safety boundary of the underlying paid call. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics beyond the schema: that model/reasoning_effort are echoed from the paid call's resolution and are unvalidated, that task non-blankness is enforced here too, and that workspace_root selects where Codex works but is not a read boundary.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: preview what a codex_delegate/codex_delegate_async call would do, enumerating what it reports (baseline, prompt size, resolved workspace/isolation). It explicitly distinguishes itself from codex_delegate, codex_delegate_async, and codex_dry_run, and flags its own deprecation in favor of amicus_delegate_dry_run.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('Use it before delegating to confirm scope and repo before committing to cost') and names the analogous sibling pattern (codex_dry_run previews codex_review_changes). It also routes to the async counterpart via deadline_advisory and to the replacement tool via the deprecation notice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.