/lorenzh:dispatching-codexfrom lorenzh
Codex CLI dispatch with completion notices that mean Codex really finished. Use when starting, dispatching or waiting for `codex exec`; when handing work to a GPT or Codex subagent; for cross-family review or verification by a GPT model; when running several Codex jobs in parallel; or when a workflow fans out to Codex.
Ships in lorenzh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start codex exec runs so the harness reports their real end, and check each run's answer before using it.
Codex itself is the command the harness watches. A wrapper with nohup or & exits at once, so its "completed" notice proves nothing.
Make a private output dir per dispatch, e.g. out=$(mktemp -d). Put the brief in $out/brief.md; its line 1 asks for Model: <your model id>.
Pick the sandbox: -s read-only for research, review and verification; -s workspace-write only when the run must edit files.
Both sandboxes have no network: no package registry, no GitHub API. Depending on the sandbox, /tmp can be read-only; tests then fail with EROFS or EPERM, and child processes may also be blocked.
If the task must install from a registry, push, open a PR or call GitHub, give it to an agent with network instead.
Otherwise install dependencies before the run, and let the lead commit and push. For a review, allow targeted tests only after you verified that CI runs the full suite on the reviewed commit.
Otherwise the reviewer or the lead runs the full suite where the sandbox allows it, and says so when it cannot.
Done when $out/brief.md exists, the sandbox is chosen, and the task needs no network.
Run this as the whole Bash command, in the foreground or with the harness background option:
codex exec -m <model> -c model_reasoning_effort=<effort> -s <read-only|workspace-write> \
--skip-git-repo-check -C <repo> -o "$out/answer.md" - < "$out/brief.md" > "$out/log.txt" 2>&1
-C sets the writable root; point it at a parent dir when one run must edit several repos, or add more writable dirs with --add-dir <dir>.
Never add nohup or a trailing & to a run that should notify. For several parallel runs, pick one:
& and ends with wait;-o files: timeout 60m bash -c 'until [ -s a.md ] && [ -s b.md ]; do sleep 15; done'.If a run was already started with nohup or &, ignore its notice and check it as in step 3.
Done when each run is the watched command, or a wait or the 60-minute until-loop covers it.
A run is finished and usable only when all of these hold:
pgrep -f '[c]odex exec.*<out-dir>' prints nothing;[ -s "$out/answer.md" ];grep -m1 'model:' "$out/log.txt".An empty or missing answer file after the process ended is a failed run, not a result. Report it with the log tail. Done when each run is reported as finished (with its answer path) or failed (with its log tail).
Record the model: header from the log, not the Model: line the answer claims; answers often name a different model than the header. If they differ, or the requested model is missing, report it; never substitute another model silently.
Done when the report names each run's runtime model and effort.
Input: two GPT reviewers in parallel. Action: one background Bash runs codex exec … -o "$out/a.md" … & codex exec … -o "$out/b.md" … & wait. Result: the notice arrives after both end, both files are non-empty, and each log shows model:.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lorenzh/skills --plugin lorenzh27 skills in this plugin
/checking-before-publishingPrivacy check for anything about to go public. Use when about to post an issue or PR comment, opening a PR, committing, pushing, publishing a release, blog post or README, or sharing screenshots, GIFs, videos or terminal recordings; when relaying a subagent's text to a public place; or when the user asks to "check for private data", "scrub" or "redact" something before sharing./cloning-voices-with-kittenttsVoice cloning with KittenTTS 2 from a short recording and text. Use when users say "kitten tts", "Stimme klonen", "clone my voice", "sprich diesen Text mit meiner Stimme", or "text to speech with my voice" and want a speech WAV.
/competing-implementationsImplementation competition for one task. Use when the user asks to have two agents compete on a change, wants competing implementations, asks to compare implementations and ship the winner, or asks for competing implementations on several dependent issues in waves./creating-worktreesGit worktree setup and cleanup for isolated parallel work. Use when the user asks to "work in a worktree", wants an isolated workspace or a parallel branch checkout, is about to execute an implementation plan that should not touch the current checkout, asks how to install dependencies or copy .env files into a worktree, wants a coding agent or sandbox to work in one, or asks to remove or clean up a worktree, or when worktrees fill the disk (ENOSPC, "No space left on device")./cutting-releasesRelease workflow from version bump to verified install. Use when the user asks to "cut a release", "release x.y.z", "ship a new version" or publish to npm or another registry, or when a release was tagged but the package, the back-merge to main or the installed version still needs checking./directing-videosVideo directing workflow for demos, screencasts, terminal tours, tutorials, launch videos and short films. Use when the user asks to plan, script, storyboard or direct a video, wants a "tour of all features", a demo or launch video, asks how long or how paced a video should be, or asks whether a recorded cut is ready to publish.