All skills
dianel555 avatar

/codex-cc

@b6a6d5f
by dianeldianel555/dskills65 stars
8

Delegates coding tasks from Codex to local Claude Code in print mode while preserving Claude's normal runtime customizations by default. Use when: (1) You want Codex to call Claude Code locally, (2) You need Claude-side skills, plugins, MCP servers, custom commands, CLAUDE.md rules, or workspace settings to stay active, (3) You want resumable Claude sessions from Codex via SESSION_ID, (4) You need thin `claude mcp` / `claude plugin` passthrough from the same bridge.

Use this Skill: https://skilld.dev/gh/dianel555/dskills/codex-cc

This session only. Nothing lands on disk.

README.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

codex-cc

A Codex-facing DSkills bridge that shells out to local Claude Code and returns a stable JSON envelope.

Overview

codex-cc is for the inverse direction of cc-codex: Codex calls Claude Code locally.

By default the bridge preserves Claude Code's normal runtime behavior. It does not force --safe-mode, --bare, --disable-slash-commands, or --strict-mcp-config, so trusted-workspace customizations such as CLAUDE.md, skills, plugins, MCP servers, custom commands, and rules continue to load the same way Claude normally would.

Two runtime caveats still come from Claude Code itself:

  • claude -p skips the interactive trust dialog, so only use this in directories you already trust.
  • Invalid settings files may be silently ignored in print mode, so if inheritance seems missing, validate the workspace .claude configuration first.

Installation

Copy this skill to your Codex skills directory:

cp -r skills/codex-cc ~/.codex/skills/

The bridge expects a working local Claude Code installation available as claude on PATH.

Usage

Basic

python scripts/claude_bridge.py --cd "/path/to/project" --PROMPT "Analyze the auth flow"

Resume a Claude session

# Initial turn
python scripts/claude_bridge.py --cd "/project" --PROMPT "Review the failing tests"

# Follow-up turn using the returned SESSION_ID
python scripts/claude_bridge.py --cd "/project" --SESSION_ID "uuid-from-response" --PROMPT "Now write the minimal fix"

Permission overrides are explicit

python scripts/claude_bridge.py --cd "/project" --PROMPT "Run the test suite" --permission-mode plan
python scripts/claude_bridge.py --cd "/project" --PROMPT "Run unattended in sandbox" --dangerously-skip-permissions

Claude management passthrough

python scripts/claude_bridge.py mcp list
python scripts/claude_bridge.py plugin list
python scripts/claude_bridge.py plugin marketplace list

Parameters

Parameter Required Description
--PROMPT Yes* Task instruction for Claude Code
--cd Yes* Workspace root used for both process cwd and --add-dir
--SESSION_ID No Resume an existing Claude conversation
--model No Claude model override. Aliases (e.g. haiku, sonnet) are resolved by Claude Code against the active endpoint, so a custom ANTHROPIC_BASE_URL may map them to a differently-named backend model
--permission-mode No Claude permission mode override
--dangerously-skip-permissions No Opt-in permission bypass
--timeout No Bridge-level timeout in seconds; omit it to wait without a bridge deadline
--stream-file No Raw Claude stream-json JSONL destination; omit it to create a temporary file
--return-all-messages No Include all parsed stream records in the returned envelope

* Not required for mcp / plugin passthrough invocations.

Output Format

Successful task execution:

{
  "success": true,
  "SESSION_ID": "uuid",
  "agent_messages": "Claude response text",
  "stream_file": "/tmp/claude_stream_....jsonl",
  "stderr": "optional diagnostic text"
}

The bridge reads Claude's streaming output incrementally and treats the final result record as the authoritative completion message. Intermediate assistant records remain available in stream_file and, when --return-all-messages is set, in all_messages.

When the bridge deadline fires, the error also reports the last transport-level retry it observed (for example claude timed out after 300.0s (last transport error: HTTP 502 server_error, attempt 1/10)), so an upstream or proxy outage is distinguishable from a genuinely slow task.

Failed task execution:

{
  "success": false,
  "SESSION_ID": "uuid-if-claude-was-launched",
  "error": "Failure reason",
  "stream_file": "/tmp/claude_stream_....jsonl",
  "stderr": "optional diagnostic text"
}

Passthrough output:

{
  "success": true,
  "output": "...",
  "error": "",
  "returncode": 0
}

Source: SKILL.md on GitHub

1 warning18d3 checks · Risk MEDIUM
  • Gen Agent Trust Hub18d

    This skill acts as a bridge to execute the local Claude Code CLI. It includes a specific flag that bypasses all security prompts and permission checks, which could allow an agent to perform unauthorized actions on the local system if misused.

  • Socket18d

    No alerts

  • Snyk18d

    Risk: LOW · No issues

Signed by skilld at b6a6d5f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 weeks ago

README badge

README badge for dianel555/dskills/codex-cc