codex-with-chatgpt

codex-with-chatgpt is a skill for Claude Code, Codex from czstudio/codex-with-chatgpt-pro. It costs 90 tokens per session (6,192 once invoked), scanned C, original, MIT.

A skill that connects ChatGPT to a Codex coding session for planning, review, and debugging advice. Codex remains responsible for changing files, running commands, and executing the work.

In plain words
What is it for?
Use it to plan coding tasks, review changes, choose debugging approaches, or connect and disconnect ChatGPT from the current workspace.
Why use it?
It separates high-level reasoning from hands-on coding while allowing ChatGPT to read workspace information through the connection.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/czstudio/codex-with-chatgpt-pro/skill
Any agent
npx skills add czstudio/codex-with-chatgpt-pro --skill skill
Clone the repo
git clone --depth 1 https://github.com/czstudio/codex-with-chatgpt-pro

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/czstudio/codex-with-chatgpt-pro/skill.svg)](https://agentmods.dev/skills/czstudio/codex-with-chatgpt-pro/skill)
Your own site
<a href="https://agentmods.dev/skills/czstudio/codex-with-chatgpt-pro/skill"><img src="https://agentmods.dev/badge/skills/czstudio/codex-with-chatgpt-pro/skill.svg" alt="Measured on agentmods" 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 6,192 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00090 $0.06192
Opus 5 $0.00045 $0.03096
Sonnet 5 $0.00018 $0.01238
Haiku 4.5 $0.00009 $0.00619

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

Security

Grade C, and why

codex-with-chatgpt scanned grade C with 2 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 4d 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):

Reads agent configuration directoriesmediumAgent snooping

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

`~/.codex/config.toml` on both, or `%USERPROFILE%\.codex\config.toml` on Windows).
skill/SKILL.md · 424 lines

How it starts

The opening of the file, as written. The whole thing — 424 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 / 安全连接 / 配对".
  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, or explicit consent screens — and then give them ONE action.
  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. Reuse ONE ChatGPT conversation per workspace (see Conversation management). Never silently start a new chat. 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 login to Cloudflare, then doctor again. Do not Delete the ChatGPT connector — the address did not change) A ChatGPT-side 401 after a sent message is different: repair then, do not treat it as permission to skip this gate next time.
  10. Checkpoint, not a second state machine. Before compaction, handoff, or a conversation switch, append a compact task-bound checkpoint. It is a recovery hint only; the project Controller remains the sole business-state authority.
  11. Evidence before DONE. A ChatGPT DONE is not sufficient by itself. Record the execution and tests, append the reviewed DONE checkpoint, then run c2c gate. A failed gate must be reported as BLOCKED, never promoted to completion.

Read the full file on GitHub · 424 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. 4d ago First seen · 424 lines · 90 tokens per session scan C d17d5f654ac1

Subscribe to this mod's changes

codex-with-chatgpt is a skill published in the GitHub repository czstudio/codex-with-chatgpt-pro (0 stars, last pushed 5d ago), licensed MIT. It adds 90 tokens to every session and 6,192 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 2 findings (subtle steering, 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

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

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens