codex-with-claudecode

codex-with-claudecode is a skill for Codex from joonlab/joonlab-claudecode-setting-for-share. It costs 120 tokens per session (1,352 once invoked), scanned B, original, MIT.

A bridge for running the OpenAI Codex or ChatGPT command-line tool from inside Claude Code. It supports asking another GPT-based tool for code, review, or a second opinion and continuing the same session later.

In plain words
What is it for?
Use it for cross-checking code, generating code, getting an alternative perspective, and resuming earlier Codex sessions.
Why use it?
It lets a Claude Code workflow compare approaches or split work between different AI tools without leaving the command-line environment.

Skill for Codex

Written for Codex: runs codex exec. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it for cross-checking code, generating code, getting an alternative perspective, and resuming earlier Codex sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joonlab/joonlab-claudecode-setting-for-share/codex-with-claudecode
Install

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.

Any agent
npx skills add joonlab/joonlab-claudecode-setting-for-share --skill codex-with-claudecode
Clone the repo
git clone --depth 1 https://github.com/joonlab/joonlab-claudecode-setting-for-share

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-with-claudecode

README.md
[![agentmods](https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/codex-with-claudecode.svg)](https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/codex-with-claudecode)
Your own site
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/codex-with-claudecode"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/codex-with-claudecode.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,352 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00120 $0.01352
Opus 5 $0.00060 $0.00676
Sonnet 5 $0.00024 $0.00270
Haiku 4.5 $0.00012 $0.00135

Measured 8d ago against content hash dfc537c82b60, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

codex-with-claudecode scanned grade B with 1 finding 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/convert_exec_session.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

SESSION_FILE=$(find ~/.codex/sessions -name "*<session-id>*.jsonl" | head -1)
claude/skills/codex-with-claudecode/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex with Claude Code

Execute OpenAI Codex/ChatGPT CLI queries directly from Claude Code environment, with full session management and resume capabilities.

Quick Start

Simple Query

codex exec --skip-git-repo-check "질문 내용"

Resume Previous Session (within Claude Code)

codex exec --skip-git-repo-check resume "<session-id>" "후속 질문"

Execution Workflow

Step 1: Execute Query

To run a Codex query, always use exec mode with the git repo bypass flag:

codex exec --skip-git-repo-check "질문 내용"

Required flags:

  • exec: Non-interactive mode (Claude Code Bash is non-interactive)
  • --skip-git-repo-check: Required when running outside git repositories

Step 2: Capture Session ID

The output includes a session ID. Always report this ID to the user:

session id: 019b6da3-5947-77c1-b50e-84c2a39eeb7e

Step 3: Convert Session for Terminal Access

Exec sessions do not appear in terminal resume list by default. To enable terminal access, run the conversion:

# Using the skill's conversion script
scripts/convert_exec_session.sh "<session-id>" "질문 요약"

Or manually:

SESSION_FILE=$(find ~/.codex/sessions -name "*<session-id>*.jsonl" | head -1)
sed -i '' 's/codex_exec/codex_cli_rs/g' "$SESSION_FILE"
sed -i '' 's/"source":"exec"/"source":"cli"/g' "$SESSION_FILE"

Step 4: Provide Terminal Resume Command

After execution and conversion, always provide the user with the exact terminal command to continue the conversation:

cd <Claude Code 프로젝트 경로> && codex resume <session-id>

Example output to user:

Codex 실행 완료!

세션 ID: 019b6e30-1cdc-7391-85de-50c1b2efbcfa

터미널에서 이 대화를 이어가려면:
cd ~/my-project && codex resume 019b6e30-1cdc-7391-85de-50c1b2efbcfa

Complete Workflow Example

When user asks "Codex한테 한국에 대해 글 써달라고 해봐":

# 1. Execute query
codex exec --skip-git-repo-check "한국에 대해 짧은 글을 작성해줘"
# Output: session id: 019b6e30-1cdc-7391-85de-50c1b2efbcfa

# 2. Convert session for terminal access
scripts/convert_exec_session.sh "019b6e30-1cdc-7391-85de-50c1b2efbcfa" "한국에 대한 글 작성"

Read the full file on GitHub · 168 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 8d ago First seen · 168 lines · 120 tokens per session scan B dfc537c82b60

Subscribe to this mod's changes

codex-with-claudecode is a skill published in the GitHub repository joonlab/joonlab-claudecode-setting-for-share (10 stars, last pushed 1mo ago), licensed MIT. It adds 120 tokens to every session and 1,352 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens