sass-maker/saas-maker/call-codex
Claude Code and agent skill by sass-maker/saas-maker
- community
Checking that the SKILL.md file is still in the repository.
Delegate repo-local coding work to OpenAI Codex CLI as a teammate agent — scoped implementation, mechanical refactors, test-fix loops, or an independent second-opinion code review from a different model family. Use when the user asks to call/delegate to codex, wants a second opinion on a diff, or when a well-scoped implementation task can run in parallel (e.g. in a worktree) while you do other work. Not for strategy, taste-heavy UX, or vague requirements.
Install
npx vskill@latest install sass-maker/saas-maker/call-codexSKILL.md
The same SKILL.md was published earlier as sass-maker/saas-maker/call-codex.
call-codex — delegate to Codex CLI as a teammate
Codex is a specialist contractor, not an oracle. You (the parent agent) own the outcome: you write the brief, set the authority level, verify the work independently, and accept or reject it. Never blindly trust the result.
Validated against codex-cli 0.142.5 on this machine (2026-07-03).
When to call Codex
- Scoped implementation — a feature/fix with known files, clear acceptance
criteria, and a test command, especially one that can run in an isolated worktree while you do something else.
- Mechanical refactors — rename/extract/migrate patterns across a repo
where the spec is crisp and the diff is verifiable.
- Test-fix loops — "make this failing test pass" style tasks where Codex
can iterate against a command.
- Independent code review — fresh eyes from a different model family on a
diff you (or another agent) wrote. Use the exec review subcommand.
When NOT to call Codex
- Vague requirements, product strategy, architecture debates, or taste-heavy
UI/copy work — that judgment is yours.
- Tasks that depend on conversation context Codex can't see. If the brief
needs more than ~a screen of context-dumping, do it yourself.
- Trivial edits. Each call has a ~18k-input-token baseline; a one-line fix is
faster and cheaper done directly.
- Repos containing secrets or untrusted code, unless running
-s read-only.
Preflight
codex --version— installed and roughly 0.142.x.~/.codex/auth.jsonexists (logged in).- Safety-critical on this machine:
~/.codex/config.tomldefaults to
sandbox_mode = "danger-full-access" and approval_policy = "never". Always pass an explicit `-s` flag. Never rely on the config default.
~/.local/bin/fleet-skill-runexists. Refresh Fleet's local command and
hook with ./scripts/agent-stack.sh install-skills when missing.
Command contract
Read-only (analysis, review, questions about a repo):
Implementation (write access — prefer an isolated worktree, see loop below):
Built-in code review (its own diff-aware harness; plain-text report):
Key flags:
| Flag | Purpose | |||
|---|---|---|---|---|
| `-s read-only \ | workspace-write` | Sandbox. Always explicit. Never danger-full-access. | ||
-C <dir> | Working root. Point at the worktree, not the main checkout. | |||
--output-schema <file> | JSON Schema the final message must conform to. | |||
-o <file> | Write the final message (the JSON) to a file — parse this. | |||
--json | JSONL events on stdout (progress, thread_id, token usage). | |||
--ephemeral | No session persisted. Use for read-only one-shots. | |||
| `-c model_reasoning_effort=low\ | medium\ | high` | Config default here is high — downgrade for small tasks or they crawl. | |
-m <model> | Override model (default here: gpt-5.5). | |||
--skip-git-repo-check | Only for non-repo scratch dirs. |
Resume a session to iterate ("fix the review findings"): grab thread_id from the thread.started JSONL event, then codex exec resume <thread_id> "<follow-up>" < /dev/null (or resume --last).
Gotchas (verified)
- Always append `< /dev/null`. Codex reads piped stdin as extra prompt
input; an open pipe hangs the call indefinitely. This is the #1 failure mode when shelling out from an agent harness.
- Anything non-trivial takes minutes: run it in the background and poll the
-o file / JSONL log rather than blocking.
--output-schemaconstrains only the final message; treat the
self-reported tests.result as a claim, not a fact — re-run tests yourself.
Briefing contract
A brief must contain, in order: goal, exact files/dirs in scope, constraints (including "no unrelated edits — smallest diff that satisfies the goal"), the test command, and what to return. Template and worked example: references/codex-prompting.md.
Safety contract
- Default to
-s read-only; escalate toworkspace-writeonly for
implementation tasks, and prefer pointing -C at an isolated worktree.
- Never use
--dangerously-bypass-approvals-and-sandbox. - Never delegate work in a dirty checkout — commit or stash first so the
delegated diff is cleanly attributable and revertible.
- Codex does not commit, push, or touch anything outside
-C. Git operations
belong to the parent.
- Don't put secrets in the brief. Codex can read repo files itself.
Review loop (parent responsibilities)
- Parse the
-oresult JSON; checkstatusanddeviationsfirst. git -C <worktree> diff --stat, then read the full diff. Reject scope
creep — edits outside the briefed files need a stated reason in deviations.
- Run the test command yourself. Codex's
tests.resultis unverified. - Verdict: accept (merge/apply), revise (
codex exec resumewith
specific findings), or reject (discard the worktree). Two failed revise rounds → reject and do it yourself; don't loop.
- Append one line to the scorecard (below).
The Fleet wrapper is required for new delegations. It preserves Codex's exit status, retains sanitized stdout/stderr plus the schema-constrained result file, and records the run as private local evidence. The checked-in scorecard remains the concise routing summary.
Delegated implementation loop (the standard workflow)
While Codex works, you keep working — that's the point.
Scorecard
After every delegation, append one line to ~/.claude/teammates/SCORECARD.md (format documented at the top of that file). Before delegating, skim it for the task type at hand — past rejects tell you what Codex is bad at. Comparative routing across teammates: ~/.claude/teammates/ROSTER.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtooling/skills/call-codex/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/sass-maker/saas-maker/call-codex)