ethsign/sign-skills/codex-delegator
Claude Code and agent skill by ethsign/sign-skills
- community
Checking that the SKILL.md file is still in the repository.
Ask the installed Codex CLI for an independent, read-only review from Claude Code. Use when the user asks to ask Codex, get a Codex second opinion, or have Codex review a code diff, a plan, or a document or question against the code at a commit. Not for editing, publishing, or autonomous review loops.
Install
npx vskill@latest install ethsign/sign-skills/codex-delegatorSKILL.md
The same SKILL.md was published earlier as ethsign/sign-skills/codex-delegator.
Codex Delegator
Use scripts/invoke-codex.py relative to this skill directory. This launches an independent Codex model, not a tool server. Claude remains responsible for scope, verification, and the final answer.
Workflow
- Confirm the bounded review target and choose one mode.
- Committed: resolve explicit base/head commits and verify the intended PR head locally.
--basemeans the exact endpoint diff, not an implicit merge base. - Working tree:
--working-treereviews uncommitted work: tracked changes and nonignored untracked files. - Code-grounded: to review a document or answer a question against the code, pass
--repoand--head FULL_SHAwith an objective and no--base/--working-tree. Codex reads a read-only snapshot of that exact commit; there is no diff. Put the document text and any context excerpts in the--prompt-file(at most 1 MiB). Do not clone the repository or add an untrackedREVIEW/folder for this. - Plan: provide a concise UTF-8 objective without
--repo.
- Locate Python 3.10+ (
python,python3, or a known full executable path), Git, and the native Codex executable. The wrapper resolves barecodexandgitnames only from absolute PATH entries, never the current directory. On Windows a.cmd/.ps1shim is insufficient: use--codex-pathto the nativecodex.exe. Do not install dependencies, change authentication, or weaken sandbox settings automatically. CLI authentication is separate from whether a Codex desktop session is running. - Tell the user the scope before starting.
--run-directoryis optional. If you supply one, use a fresh absolute path outside the source repository; it may be nonexistent or an existing empty directory, and the wrapper claims it exclusively and refuses a nonempty one. If you omit it, the wrapper creates a durable temporary directory. Either way it printsCODEX_DELEGATION_RUN_DIRECTORY=<path>on stderr before preflight andrun_directoryin the final JSON; record that path. Keep the objective compact: use--promptfor a short inline objective or--prompt-filefor long, quoted, or multiline text (not both). Do not paste the entire diff, repository, or chat. The wrapper materializes a detached snapshot and, in diff modes, supplies the exact patch path. - Run once. Default effort is
medium; respect an explicit user model/effort request using--model/--effort. Omitted model uses the CLI built-in default because user config is ignored. Never silently substitute an unavailable model. The default process timeout is 30 minutes, with no arbitrary turn, tool-call, finding-count, or output-token cap. An explicit longer timeout can be selected before launch for a justified scope. Git commands are limited to 60 seconds each; for a repository whose checkout is slow, pass--git-timeout-seconds(5 to 600) instead of retrying. - Preserve the host's live shell/background-task handle and poll it until completion. A host tool returning early is not a failed run. If the handle is lost, read
status.json,stream.jsonl, andstderr.login the recorded run directory; do not start a second process. If a process is still running, wait or obtain permission to terminate it. - Require
status.json.status=complete,metadata.json.complete=true, andresult.json.complete=truefor a completed review. A timeout, interruption, failed turn, malformed stream, missing final JSON, source change, artifact error, orreview.complete=falseis incomplete, never clean. If writes fail, recover theCODEX_DELEGATION_METADATA=record from the tracked command's stderr; itsartifact_erroroverrides any stale files. Partial findings can be inspected but must be labeled partial. No automatic retry aftercodex_start_attempted=true, and none after aninterruptedstatus; ask for approval with the reason and proposed scope/settings. A preflight failure with both start flags false can be corrected without spending a model call. - Independently reproduce actionable findings. Do not fix, commit, push, post comments, or mark a PR ready merely because Codex suggested it. Those actions require the user's applicable authorization.
- Finish with findings plus a short debug footer: status, mode, requested model/effort, exact base/head or code-grounded commit or other scope, diff hash (if any), elapsed time, reported token usage, item counts, cleanup status, and artifact path. In code-grounded mode, the review
summarycarries the direct answer. In every repository mode, a finding with an empty file and line 0 has no code location: it concerns the plan, objective, or supplied document. Do not invent a dollar cost or infer actual model identity from the requested alias.
Commands
Substitute absolute paths and, when you choose one, a unique run directory. Resolve this skill's path from the loaded skill, not the caller's working directory.
PowerShell uses the same arguments on one line: & 'C:\path\python.exe' 'C:\path\invoke-codex.py' .... Use --dry-run for local preparation/compatibility checks without contacting the model; a dry run is not a review.
Boundaries
- The wrapper requests the native read-only sandbox and
approval_policy=never; shell inspection is allowed inside that sandbox. Do not reject a review merely for using shell. Do not bypass host Claude permissions or fall back to an unsandboxed invocation. - User config/rules, project instructions, web search, hooks, plugins, apps, delegation, and host skill discovery are suppressed by CLI controls; execution starts in a fresh directory outside the snapshot. These controls are not a separate container, filesystem read allowlist, or guarantee against every managed configuration layer. See README.md for the trust boundary and compatibility limits.
- Code-grounded mode keeps every one of those controls. It reads the whole tree at one immutable commit as reference evidence; it does not review a diff or show what changed.
- Snapshot preparation runs local Git under the caller's permissions, ignoring inherited
GIT_DIR,GIT_WORK_TREE, andGIT_INDEX_FILEso a run started from a Git hook cannot touch the caller's index. Git configuration and the installed executables must be trusted. Preflight and Git commands are time-bounded and their process trees are killed on timeout. Codex must not run project code/tests/installers or network commands; this is an inspection review, not a test run. - Submodules are refused rather than silently omitted, including a submodule that is only staged in the working tree. Working evidence is limited to 64 MiB and 250 untracked files; untracked symlinks and out-of-tree paths are refused. Ignored files are not included. Do not broaden or silently truncate the scope to get past these gates.
- Artifacts can contain source, prompts, paths, and model output. Keep them private; do not upload them automatically. Retain them for recovery, including generated temporary run directories. Temporary snapshots are cleaned up; ambiguous cleanup is reported and retained for inspection. SIGINT, SIGTERM, and SIGHUP (a closed terminal or lost host session) end the run as
interruptedand stop Codex; final cleanup and artifact publication ignore repeated signals.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcodex-delegator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ethsign/sign-skills/codex-delegator)