claude-codex
Bash wrapper around the local Codex CLI for non-interactive runs from inside Sutando (bridges, cron, scripts).
Skill by sonichi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sonichi-claude-codex
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/claude-codex
What's inside
- Skill name
claude-codex- Description
- Bash wrapper around the local Codex CLI for non-interactive runs from inside Sutando (bridges, cron, scripts). For interactive code review or task hand-off from this Claude Code session, prefer the official `/codex:*` plugin commands; this skill is the file-bridge-compatible path that `discord-bridge.py` invokes for team-tier sandboxed delegation.
- License
- MIT
- Instructions
- 140 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- manifest.json
- codex-bounded.sh · scripts/
- codex-run.sh · scripts/
- review-pr.sh · scripts/
SKILL.md (first lines)
# Claude Codex Delegate work from Claude Code to the local `codex` CLI. This skill assumes Codex is already authenticated on this machine. It does not mint, extract, or transfer credentials. **Usage**: `/claude-codex [prompt]` ARGUMENTS: $ARGUMENTS ## When to Use - "Ask Codex to review this change" - "Use my Codex subscription from Claude Code" - Need a second model to inspect a bug, review a diff, or propose an implementation - Need a Codex result saved or streamed from the current repo - Spec-driven one-shot build of a self-contained artifact (HTML/CSS/JS prototype, single-file demo) — use `--goal` to invoke Codex's `/goal` mode ## When NOT to Use - **Interactive review from this Claude Code session** → use `/codex:review`, `/codex:adversarial-review`, or `/codex:rescue` from the openai/codex-plugin-cc plugin. They're the discoverable, versioned path. - **Anything that needs a Codex session ID / job tracking / status polling** → plugin's `/codex:status` is the right surface. If you don't see `/codex:*` slash-commands available, install the plugin in this Claude Code session: ``` /plugin marketplace add openai/codex-plugin-cc /plugin install codex@openai-codex /reload-plugins /codex:setup ``` This skill stays as the **non-interactive bash-wrapper** path — invoked by `discord-bridge.py`'s team-tier `===SUTANDO SYSTEM INSTRUCTIONS===` block (codex exec --sandbox read-only on Discord tasks from non-owner senders), cron-fired jobs that need a one-shot codex call, and similar file-bridge workflows where a plugin slash-command can't reach. ## Guardrails - Prefer `codex review --uncommitted` for code review. - Prefer `codex exec` for analysis, planning, or implementation prompts. - Keep Codex pointed at the same repo with `-C "$PWD"` unless the user asked for another directory. - Default to `workspace-write` sandbox or stricter. Do not use bypass flags unless the user explicitly asks. ## Quick Checks ```bash codex login status bash "$SKILL_DIR/scripts/codex-run.sh" --check ``` ## Common Commands ```bash # General delegation bash "$SKILL_DIR/scripts/codex-run.sh" -- "Inspect src/task-bridge.ts for race conditions" # Safer review of current uncommitted changes bash "$SKILL_DIR/scripts/codex-run.sh" --review --uncommitted -- "Prioritize bugs and missing tests" # Review against a base branch bash "$SKILL_DIR/scripts/codex-run.sh" --review --base main -- "Focus on regressions and security" # Save the last Codex message to a file bash "$SKILL_DIR/scripts/codex-run.sh" --output-last-message results/codex-review.txt -- "Review the current workspace" # Spec-driven one-shot build (Codex /goal mode) bash "$SKILL_DIR/scripts/codex-run.sh" --goal -- "$(cat path/to/spec.md)" ``` ## PR review — `scripts/review-pr.sh <N>` (read-only, bounded) The safe, read-only way to get a Codex review of a GitHub PR. Fetches the diff with `gh pr diff <N>` (READ-ONLY — no checkout, never mutates git state or fails on a dirty tree), inlines it into `codex exec --sandbox read-only`, and wraps the whole thing in `codex-bounded.sh` so a slow/wedged review can't grind unbounded. ```bash bash "$SKILL_DIR/scripts/review-pr.sh" 1754 # default --max 240 --stall 60 bash "$SKILL_DIR/scripts/review-pr.sh" 1754 --max 300 # longer cap for a big diff ``` Prints `VERDICT-MARKER: <token>` as stdout line 1, then Codex's verdict preceded by that token. The token is a per-RUN nonce, never shown to Codex, so a diff or verdict quoting a marker literal cannot pose as it. **The verdict is only the text after the LAST such line**, which holds the mechanical checks as well as Codex's verdict — so a consumer taking the tail truncates the checks. The rest of the stream is Codex's exec trace, left unredirected on purpose so `codex-bounded.sh --stall` can watch it — it contains repository source the agent inlined while working, so a consumer that takes the whole stream (or its tail) quotes that source as the PR's own content. Extract after the last marker. Exit `0` = verdict produced; `124` = hit the `--max` cap; `125` = stalled (no output for `--stall` s); other non-zero = gh/codex error. **Timing:** `codex exec` is agentic — even with the diff inlined it may explore related code, so a real review often takes 100s+ (147s observed on #1754). Keep `--max` ≥180; do NOT drop it near 120 or you'll kill legitimate reviews. This is the path the team-tier `===SUTANDO SYSTEM INSTRUCTIONS===` block runs to auto-review a non-owner PR-review request (owner-ping only on failure). ## Bounded runner — `scripts/codex-bounded.sh` Generic stall-watchdog + wall-clock cap for any (sandboxed) delegation. `--stall N` kills the process tree after N seconds of total output SILENCE (the "never going to finish" signal — a healthy codex streams as it works); `--max M` is the absolute backstop (`--max 0` disables it, stall-only). Exit `125` = stalled, `124` = max cap. Used by `review-pr.sh` and by the discord-bridge team/other-tier `codex exec` delegation so a sandboxed run can't grind forever. ```bash bash "$SKILL_DIR/scripts/codex-bounded.sh" --stall 90 --max 240 -- <command...> < /dev/null ``` ## `/goal` mode (`--goal`) Wraps Codex's interactive `/goal` slash-command for non-interactive use. The flag prepends `/goal ` to the prompt and forces `--full-auto` so Codex can write files unattended. Reach for it when: - The task is a self-contained artifact (single HTML file, one-off demo, isolated script). - You have a tight written spec and want a one-shot build with a known cost ceiling. - A second-model take on a prototype is useful (run `--goal` in parallel with Claude's own build for cross-check). Skip it when:
From sonichi/sutando, MIT.
More from sonichi/sutando
- 0.757score
owner-agent-consult
sonichi
Before answering your OWNER, when the answer genuinely depends on something another agent of the same owner holds and you do not, ask that one agent once…
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
marketplace
sonichi
Install marketplace skills, activate cloud tools, check whether installed skills are up to date, or remove them — without the owner opening the Marketplace.
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
tutorial
sonichi
Show a new owner what to try first.
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
macos-tools
sonichi
macOS native integrations: screen capture, calendar, reminders, contacts, email (Mail.app), Spotlight search.
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
import-claude-context
sonichi
Bring the owner's Claude Code history into Sutando: index, extract and haiku-summarise the stock ~/.claude/projects transcripts, stage the result, show the…
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
image-generation
sonichi
Generate an image from a prompt or edit an existing one (Gemini image model, standard library only, any Gemini key the resolver finds) and attach the file to…
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
connect-apps
sonichi
Use when the owner asks about their calendar, email, meetings, Linear, Notion, Slack, Google Drive, GitHub or any other third-party app or the data in it…
SkillAFreshness: A★ 400Claude Code +9 - 0.754score
deal-finder
sonichi
Scan configured sources (Craigslist now; eBay + Facebook Marketplace planned) for used-item listings matching the owner's criteria.
SkillAFreshness: A★ 400Claude Code +9 - 0.754score
quota-tracker
sonichi
Track Claude Code quota usage via Anthropic API rate limit headers.
SkillAFreshness: A★ 400Claude Code +9 - 0.754score
model-switch
sonichi
Change the core's model without the CLI: send /model to the live core's pane through the shared sender, wait for the CLI to accept it (answering its confirm…
SkillAFreshness: A★ 400Claude Code +9 - 0.754score
claude-gemini
sonichi
Use the local Antigravity CLI (agy, Gemini-backed) from Claude Code with the user's existing Gemini authentication or API configuration.
SkillAFreshness: A★ 400Claude Code +9 - 0.754score
phone-conversation
sonichi
Make conversational phone calls and join Zoom meetings via Twilio + Gemini.
SkillAFreshness: A★ 400Claude Code +9
Signals
- Stars
- 400
- Forks
- 98
- Open issues
- 1,202
- Last commit (this folder)
- Sep 4, 2026 (1 month ago)
- Last release
- Aug 20, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/sonichi/sutando
- Website
- sutando.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from sonichi
- 0.757score
import-claude-context
sonichi
Bring the owner's Claude Code history into Sutando: index, extract and haiku-summarise the stock ~/.claude/projects transcripts, stage the result, show the…
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
marketplace
sonichi
Install marketplace skills, activate cloud tools, check whether installed skills are up to date, or remove them — without the owner opening the Marketplace.
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
connect-apps
sonichi
Use when the owner asks about their calendar, email, meetings, Linear, Notion, Slack, Google Drive, GitHub or any other third-party app or the data in it…
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
image-generation
sonichi
Generate an image from a prompt or edit an existing one (Gemini image model, standard library only, any Gemini key the resolver finds) and attach the file to…
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
macos-tools
sonichi
macOS native integrations: screen capture, calendar, reminders, contacts, email (Mail.app), Spotlight search.
SkillAFreshness: A★ 400Claude Code +9 - 0.757score
owner-agent-consult
sonichi
Before answering your OWNER, when the answer genuinely depends on something another agent of the same owner holds and you do not, ask that one agent once…
SkillAFreshness: A★ 400Claude Code +9
Cite this page
claude-codex skill. Agent Mart. https://agentmart.dev/skills/sonichi-claude-codex (last updated 2026-10-24)