codex-with-chatgpt

codex-with-chatgpt is a skill for Claude Code, Codex from XiaoDuoYa/codex-with-chatgpt. It costs 90 tokens per session (11,140 once invoked), scanned B, original, MIT.

A connection that lets ChatGPT help plan and review coding work while Codex edits files, runs commands, tests code, and handles execution.

In plain words
What is it for?
It helps connect or disconnect ChatGPT to the current workspace, plan coding tasks, review progress, and guide debugging.
Why use it?
It separates high-level planning from hands-on work, so you can use ChatGPT's reasoning without copying files, changes, or logs into a chat.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

Good fit It helps connect or disconnect ChatGPT to the current workspace, plan coding tasks, review progress, and guide debugging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoduoya/codex-with-chatgpt/skill
About the project

Codex with ChatGPT connects the ChatGPT web app to Codex as a planning and review assistant through a read-only MCP bridge. Developers use ChatGPT for reasoning about a coding task while Codex retains control of executing changes in the workspace. The catalogue skill supports this workflow.

XiaoDuoYa/codex-with-chatgpt · 7,478 stars · on GitHub

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 XiaoDuoYa/codex-with-chatgpt --skill skill
Clone the repo
git clone --depth 1 https://github.com/XiaoDuoYa/codex-with-chatgpt

Made for: Claude Code, 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-chatgpt

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoduoya/codex-with-chatgpt/skill/github.svg)](https://agentmods.dev/skills/xiaoduoya/codex-with-chatgpt/skill)
Your own site
<a href="https://agentmods.dev/skills/xiaoduoya/codex-with-chatgpt/skill"><img src="https://agentmods.dev/badge/skills/xiaoduoya/codex-with-chatgpt/skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-with-chatgpt

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoduoya/codex-with-chatgpt/skill"><img src="https://agentmods.dev/badge/skills/xiaoduoya/codex-with-chatgpt/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,140 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 7 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 186
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Rogue Agent · line 45
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Excessive Agency · line 75
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Prompt Injection · line 180
    Subtle instructions detected that may alter agent decision-making or introduce hidden biases.
    Fix: Review content for implicit steering or bias. Ensure instructions are explicit and align with the skill's stated purpose.
  • medium Agent Snooping · line 201
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Excessive Agency · line 345
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
  • medium Excessive Agency · line 692
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00090 $0.11140
Opus 5.5 $0.00036 $0.04456
Sonnet 5.5 $0.00018 $0.02228
Haiku 4.5 $0.00009 $0.01114

Measured 19d ago against content hash 436324d095ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

codex-with-chatgpt 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 19d 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

commands (both are cheap / cached; never mention them unless an update exists):
skill/SKILL.md · 753 lines

How it starts

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

Codex with ChatGPT

ChatGPT thinks. Codex works.

You (Codex) own execution: editing, shell, git, tests, recovery. ChatGPT owns high-level reasoning: understanding, planning, review, debug strategy. The C2C Bridge gives ChatGPT read-only MCP access to the current workspace, so control messages between you and ChatGPT stay tiny (< 1 KB) — ChatGPT pulls whatever data it needs by itself.

Golden rules

  1. NEVER paste file contents, diffs, or logs into ChatGPT. ChatGPT reads them through MCP.
  2. NEVER show the user technical internals (MCP, OAuth, PKCE, tunnel, ports, localhost). Speak in terms of "连接 ChatGPT / 安全连接 / 配对". The only exception is the guided manual ChatGPT setup below: expose only the exact settings field labels/values the user must enter, without explaining internals.
  3. The pairing code is the ONLY credential you may ever type into a browser. Never touch OAuth tokens, cookies, or session storage.
  4. If something fails, run c2c doctor and repair silently. Only involve the user for logins, CAPTCHA, 2FA, explicit consent screens, or guided manual ChatGPT setup below — and then give them ONE action. Before the first ChatGPT connection on this machine, c2c prefs --json:
    • setupMode missing: tell the user exactly setupChoicePrompt, wait for 「1」or「2」, then c2c prefs set --setup-mode auto|manual --json. Do not start ChatGPT configuration until they answer. Do not guess.
    • setupMode is manual: skip automatic ChatGPT settings. Use guided manual from the start (chosen, not a failure).
    • setupMode is auto: automatic browser setup. Two explicit failures of the same configuration step after repair then enter guided manual. A browser/js timeout, a page still loading/generating, or waiting for user login/2FA does NOT count as a failure. Do not change the saved setupMode when falling back. developerModeEnabled: true means skip #settings/Security until a connector create fails because developer mode is required. Then open that page, enable it, and c2c prefs set --developer-mode --json. These prefs are for this machine, not per workspace. Do not ask again on reconnect or a second repo. A new computer (empty prefs) asks/checks once.
  5. ALWAYS use the built-in in-app browser (iab) for every ChatGPT step. Follow In-app browser (ChatGPT) below. NEVER Computer Use (no screenshot-click). NEVER launch or control a third-party/external browser (Chrome, Safari, Edge…), and never use open <url> to hand off to one.
    • The ONLY exception: the user explicitly says the Cloudflare login must use their own browser session — that single Cloudflare login step may go through their browser; everything else stays in the built-in browser.
    • If the user asks to run ChatGPT in their own browser, refuse politely and explain: "Codex 需要持续调用 ChatGPT 和配置连接,这会频繁操作页面,可能影响 你浏览器的正常使用。ChatGPT 只能跑在内置浏览器里。" Only if the user replies with an explicit "我愿意承担影响" may you proceed in their browser; otherwise keep ChatGPT in the built-in browser, every time they ask.
  6. Conversation reuse depends on c2c session --json → conversation.mode (see Conversation management). Do not invent a second mode.
    • long-chat (legacy session file, or the user opted out): ONE ChatGPT conversation per workspace. Never silently start a new chat.
    • project (new workspaces, or an existing workspace that opted in): ONE ChatGPT Project (collection) per workspace. Same Codex conversation reuses the ChatGPT chat URL saved in THIS thread. A new Codex conversation opens a new chat from the Project collection page — never goto https://chatgpt.com/ to create it, and never reuse another Codex conversation's chat URL just because session.url exists. Each workspace also has exactly ONE ChatGPT connector. Do not create a second connector for the same workspace. Other workspaces may have their own connectors — never edit those.
  7. After first-time setup, never ask the user to approve writing C2C's local settings directory. Run c2c sandbox-allow --json (idempotent). If it fails with EPERM / Operation not permitted, request elevated permissions and retry ONCE. After { "alreadyAllowed": true } or { "added": true }, stay silent.
  8. ChatGPT pages: only the URLs in In-app browser (ChatGPT). Never start from chatgpt.com and click through menus.
  9. Doctor gate. After c2c doctor --json, do not goto ChatGPT and do not send [C2C] until local is green — except the reconnect settings pages when chatgptRepair.needed is true. Not green:
    • report.bridge.ok is not true
    • report.mcp.ok is not true (unauthenticated local /mcp must be 401)
    • sandbox / state-dir write failed (EPERM)
    • this workspace used to have a public URL and the tunnel is down
    • chatgptRepair.needed is true (fix the connector first, then doctor again)
    • namedRepair.needed is true (user must log in to Cloudflare, then doctor again. Do not Delete the ChatGPT connector — the address did not change)
    • report.bridge says 状态无法确认: the local bridge may still be running. Do not c2c start, do not Delete the connector, do not treat it as chatgptRepair. Wait and run doctor again. If doctor is already green and chatgptRepair.needed is false, do not c2c restart, do not start a second tunnel, and do not Delete the connector. ChatGPT/IAB-only errors are not permission to churn the public address. A ChatGPT-side 401 after a sent message is different: repair then, do not treat it as permission to skip this gate next time.

Read the full file on GitHub · 753 lines

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. 19d ago Changed · +23 lines scan C → B 436324d095ce
  2. 1mo ago Changed · +6 lines 958caf5d9e27
  3. 1mo ago Changed · +29 lines c246fe129166
  4. 1mo ago Changed · +139 lines 63010b8b0473
  5. 1mo ago First seen · 556 lines · 90 tokens per session scan C 3e0eb67fe648

Subscribe to this mod's changes

codex-with-chatgpt is a skill published in the GitHub repository XiaoDuoYa/codex-with-chatgpt (7,478 stars, last pushed 19d ago), licensed MIT. It adds 90 tokens to every session and 11,140 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

codexless-browser-repair

Diagnose and temporarily repair Codexless Browser compatibility after a Codex, Chrome Skill, or Browser runtime update when Codexless Browser stopped working. Use for current-version Codexless Browser compatibility drift, not ordinary website bugs, general Browser operation, Codexless install/update work, or long-term…

liyana31811/Codexless · 70 tokens

migrate-waniwani-sdk-0.24-to-0.25

Migrate a project from @waniwani/sdk 0.24.x, or straight from 0.23.x, to 0.25.x. 0.25 removes the asked-only gate: the first question or widget lists every state field in fields, and any call writes a declared field whose value fits its Zod schema, so the flow skips the questions it fills. Computed values (price…

WaniWani-AI/sdk · 248 tokens

add-widget

Add a new widget (React UI + MCP tool) to this template. Use when asked to "add a widget", "add a new tool with UI", "create a new widget", "scaffold a widget", or "build a new MCP App feature".

pomerium/mcp-app-typescript-template · 56 tokens

migrate-waniwani-sdk-0.23-to-0.24

Migrate a project from @waniwani/sdk 0.23.x to 0.24.x and auto-apply its breaking change to flows: the tool listing no longer names state fields under stateUpdates, start merges no stateUpdates, and continue and reset merge only fields the run has asked through an interrupt question or a widget's field. A field the…

WaniWani-AI/sdk · 352 tokens

create-mcp-tool

Add a plain (text-only) or UI-enhanced MCP tool to this template's server. Use when asked to "add a tool", "add an MCP tool", "create a new tool", "add a server-side tool without a widget", "add a tool with a UI", "add a tool with a widget", or "create a tool and a widget".

pomerium/mcp-app-typescript-template · 80 tokens

audit-tracking

Audit Waniwani event tracking across an MCP project. Does an in-depth overview check of the whole app (server, flows, tools, widgets, chat embed), verifies that only events defined in the Waniwani taxonomy are sent, and identifies missing events worth adding at each funnel stage (identify, leadqualified, priceshown…

WaniWani-AI/sdk · 118 tokens