Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ozzaii/codex-claude-loop/codex-claude-loopnpx skills add ozzaii/codex-claude-loop --skill codex-claude-loopgit clone --depth 1 https://github.com/ozzaii/codex-claude-loopWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00071 | $0.01472 |
| Opus 5 | $0.00036 | $0.00736 |
| Sonnet 5 | $0.00014 | $0.00294 |
| Haiku 4.5 | $0.00007 | $0.00147 |
Grade A, and why
codex-claude-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
codex-claude-loop — the gated Claude × Codex build loop
Claude is the principal orchestrator; it rarely types product code. Codex CLI does the
hands-on implementation from persistent threads. The whole thing is bash around
codex exec — no framework, no MCP, no daemon.
The cycle (one brief)
Claude writes a brief → Codex authors a plan (persistent thread) → back to Claude
→ Claude APPROVES the plan (loop until tight) → Codex implements (same thread)
→ Claude REVIEWS the diff against the plan (loop until clean) → cl_release
The persistent thread is the trick: the plan Codex authored carries into implementation, so it implements its own approved plan with full context. The approved plan text is also sent with the implementation instruction, so if a human edited and re-approved the plan file, the file wins over what the thread drafted.
How to run it
source ${CLAUDE_PLUGIN_ROOT}/skills/codex-claude-loop/lib/codex-claude-loop.sh then use
the phase functions, or call bash lib/codex-claude-loop.sh <phase> … directly. Config
via env (CL_REPO, CL_IMPL_MODEL, CL_PLAN_MODEL, CL_REVIEW_MODEL, CL_SANDBOX,
CL_LOCK_TIMEOUT).
- First run:
cl_doctor(codex/jq/git/sha256 present, the four codex capabilities the loop needs, repo + schema resolve). - Codex plans:
cl_plan <slug> <brief.md>→ writes<slug>.plan.md, opens a persistent thread, stores its id. - Claude approves the plan (judgment — YOU read it): read
<slug>.plan.md. If tight,cl_record_verdict <slug> plan approve "why". If not, re-brief and re-plan. Loop until the plan holds. Prompt yourself to refute it, not rubber-stamp it. - Codex implements:
cl_impl <slug>→ resumes the thread, writes code, runs tests, holds the writer lock, and records a success marker only if codex exited clean. - Optional same-session follow-up:
cl_prompt <slug> "<additional request>"queues behind the lane's writer lock, resumes the exact stored thread, and prints Codex's response. It requires a successful implementation and makes re-review mandatory. - Claude reviews the diff:
cl_review_human <slug>(rich review you read) — or inspectgit diff <base>yourself. Judge it against the plan. Approve (cl_record_verdict <slug> review approve "why") or send the blocking items back into the same thread withcl_revise <slug> "…"and re-review. Loop until clean. - Release:
cl_release <slug>confirms both gates still hold for the tree as it is right now, and refuses otherwise. Then changelog, tag, merge, deploy (honor the project's own deploy gate).
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 98 lines · 71 tokens per session scan A fd72d27a6aab
codex-claude-loop is a skill published in the GitHub repository ozzaii/codex-claude-loop (6 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 1,472 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
competitive-intel
Compare brands and products across social media — share of voice, sentiment, positioning, and audience overlap using Xpoz. Use when asked to "compare brands", "competitive analysis", "share of voice", "brand vs brand", or "competitive intelligence".
influencer-discovery
Find and rank influencers by niche, engagement, and authenticity using Xpoz. Searches Twitter, Instagram, and Reddit for active voices in any topic. Use when asked to "find influencers", "discover thought leaders", "who's talking about X", "influencer research", or "find KOLs".
reddit-research
Search and analyze Reddit discussions for market research, product feedback, and community insights using Xpoz. Use when asked to "search Reddit", "what does Reddit think about X", "Reddit feedback on X", "subreddit analysis", or "Reddit market research".
security-osint
Monitor social platforms for security threats, vulnerability discussions, and breach intelligence using Xpoz. Use when asked to "find CVE discussions", "security threat monitoring", "OSINT social media", "vulnerability intelligence", "breach mentions", or "threat intel from Twitter/Reddit".
social-sentiment-analyzer
Analyze brand or topic sentiment across Twitter, Reddit, and Instagram using Xpoz. Classifies posts as positive/neutral/negative, extracts recurring themes, and generates a sentiment report. Use when asked for "sentiment analysis", "what are people saying about X", "brand sentiment", or "social media opinion on X".
typescript-react-nextjs-patterns
Production-grade TypeScript reference for React & Next.js frontend development. Covers type narrowing, component Props, generic hooks, discriminated unions, as const, satisfies, Zod validation, TanStack Query, server/client boundaries, forms, state management, performance, accessibility, debugging, and code review.…