cc-codex

cc-codex is a skill for Codex from Dianel555/DSkills. It costs 157 tokens per session (1,214 once invoked), scanned B, original, MIT.

A bridge that sends coding tasks to the Codex command-line tool and returns the results as JSON. It is aimed at prototyping, debugging, algorithm work, API and database code, and code review.

In plain words
What is it for?
Use it to implement or optimize backend logic, investigate bugs, generate API or database code, and review or refactor existing code.
Why use it?
It lets another program hand work to Codex in a project folder and collect structured results, without waiting for interactive approval prompts.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: reads ~/.codex paths; mentions AGENTS.md; mentions Codex.

Good fit Use it to implement or optimize backend logic, investigate bugs, generate API or database code, and review or refactor existing code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dianel555/dskills/cc-codex
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 Dianel555/DSkills --skill cc-codex
Clone the repo
git clone --depth 1 https://github.com/Dianel555/DSkills

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin cc-codex — /plugin install cc-codex after adding the marketplace above.

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 cc-codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/dianel555/dskills/cc-codex/github.svg)](https://agentmods.dev/skills/dianel555/dskills/cc-codex)
Your own site
<a href="https://agentmods.dev/skills/dianel555/dskills/cc-codex"><img src="https://agentmods.dev/badge/skills/dianel555/dskills/cc-codex/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 cc-codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/dianel555/dskills/cc-codex"><img src="https://agentmods.dev/badge/skills/dianel555/dskills/cc-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,214 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: 2 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 75
    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 Excessive Agency · line 44
    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.00157 $0.01214
Opus 5.5 $0.00063 $0.00486
Sonnet 5.5 $0.00031 $0.00243
Haiku 4.5 $0.00016 $0.00121

Measured 2mo ago against content hash 950faf25e6f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

cc-codex 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 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/codex_bridge.py, tests/test_codex_bridge.py), 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.

| `~/.codex/config.toml` | Yes (unless `--ignore-user-config`) |
skills/cc-codex/SKILL.md · 109 lines

How it starts

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

Quick Start

python scripts/codex_bridge.py --cd "/path/to/project" --PROMPT "Your task"

Output: JSON with success, SESSION_ID, agent_messages, stream_file (path to the raw JSONL stream persisted line-by-line), optional stderr (codex diagnostics; lines repeated verbatim except for their timestamp are collapsed to one line with an [xN] count), and optional error.

Headless exec runs with approvals disabled by Codex itself; bridge --yolo maps to Codex's --dangerously-bypass-approvals-and-sandbox. Stdin is detached, so an approval prompt could never be answered. On Windows the PROMPT is delivered via stdin (- positional) to bypass cmd.exe quoting/length limits.

Parameters

usage: codex_bridge.py [-h] [--PROMPT PROMPT] [--cd CD]
                       [--sandbox {read-only,workspace-write,danger-full-access}]
                       [--SESSION_ID SESSION_ID] [--skip-git-repo-check]
                       [--return-all-messages] [--image IMAGE] [--model MODEL]
                       [--yolo] [--profile PROFILE] [--stream-file STREAM_FILE]
                       [--idle-timeout IDLE_TIMEOUT] [--ignore-user-config]
                       [--dangerously-bypass-hook-trust]
                       {mcp,plugin} ...

Codex Bridge

options:
  --PROMPT PROMPT       Instruction for the task to send to codex.
  --cd CD               Set the workspace root for codex before executing the task.
  --sandbox {read-only,workspace-write,danger-full-access}
                        Sandbox policy for model-generated commands. Defaults to `read-only`.
  --SESSION_ID SESSION_ID
                        Resume the specified session of the codex.
  --skip-git-repo-check
                        Allow codex running outside a Git repository.
  --return-all-messages
                        Return all messages (reasoning, tool calls, etc.).
  --image IMAGE         Attach image files to the initial prompt.
  --model MODEL         Model for the session (only when user explicitly requests).
  --yolo                Bypass approvals/sandboxing (last resort).
  --profile PROFILE     Load `~/.codex/<name>.config.toml` profile (only when user requests).
  --stream-file STREAM_FILE
                        Persist raw JSONL stream path.
  --idle-timeout IDLE_TIMEOUT
                        Kill codex if no output for N seconds (default 600; 0 disables).
  --ignore-user-config  Do not load `$CODEX_HOME/config.toml` (auth still uses CODEX_HOME).
  --dangerously-bypass-hook-trust
                        Run Codex hooks without persisted hook trust. DANGEROUS.

subcommands:
  mcp                   Thin passthrough to `codex mcp` (list/get/add/remove/login/logout).
  plugin                Thin passthrough to `codex plugin` (add/list/remove/marketplace).

Read the full file on GitHub · 109 lines

Files

What ships with it

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

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. 2mo ago Changed 950faf25e6f3
  2. 2mo ago Changed 9d86e0c18bb1
  3. 2mo ago Changed 410ba7660aab
  4. 3mo ago First seen · 109 lines · 157 tokens per session scan B ac889fbaa038

Subscribe to this mod's changes

cc-codex is a skill published in the GitHub repository Dianel555/DSkills (64 stars, last pushed 1mo ago), licensed MIT. It adds 157 tokens to every session and 1,214 once invoked, about $0.0006 per session on Opus 5.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-30.

Related

cc-codex compared with skills from other repositories

cc-codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cc-codexDianel555/DSkillsSkill641mo agoMITB157Codex
tryworld-kaiyanTryWorld2026/paper-algorithmSkill3518d agoMITA129Claude Code, Codex
tryworld-kouboTryWorld2026/paper-algorithmSkill3518d agoMITA190Codex
tryworld-paperTryWorld2026/paper-algorithmSkill3518d agoMITA215Codex
tryworld-topicsTryWorld2026/paper-algorithmSkill3518d agoMITA125Codex
geekx-gategeekjourneyx/geekx-skillsSkill231mo agoMITA155Claude Code, Codex
geekx-app-forgegeekjourneyx/geekx-skillsSkill231mo agoMITA93Claude Code, Codex