Agent skill
subcodex
Collaborate with Codex (GPT-5.2) via named sessions. Trigger: user asks to work with Codex, use Codex, ask Codex, involve Codex, etc. CRITICAL: Use subcodex CLI via Bash, NOT the Task subagent tool.
Install this agent skill to your Project
npx add-skill https://github.com/zippoxer/claude-skills/tree/main/skills/subcodex
SKILL.md
subcodex
Named Codex sessions that persist across conversation compacts.
Quick Reference
# New session
./skills/subcodex/subcodex new <name> "prompt"
# Resume session
./skills/subcodex/subcodex resume <session-name> "prompt"
# List sessions (shows last 25, use --all for all)
./skills/subcodex/subcodex list
# Code review
./skills/subcodex/subcodex review --uncommitted <name>
./skills/subcodex/subcodex review --base main <name> "focus on security..."
Critical: Background Execution
ALWAYS use run_in_background: true — Codex takes 1-30+ minutes.
After starting a background command:
- Tell the user you're waiting for Codex
- Stop immediately — don't poll or check
- You'll be notified via
<task-notification>when Codex is done
Codex Capabilities
Codex can read, write, and execute — just like you. Tell it to make changes directly, not to provide diffs or suggestions.
Options:
--reasoning low|medium|high|xhigh(default: high)--read-only— read-only sandbox--dangerous— full system access
Sessions
Session names get a random suffix: my-task becomes my-task-x7k2.
Use the full name (with suffix) when resuming:
./skills/subcodex/subcodex resume my-task-x7k2 "continue with..."
subcodex list shows: status (running/stopped), tool_calls, cwd, duration.
Code Reviews
# Review uncommitted changes
./skills/subcodex/subcodex review --uncommitted my-review
# Review against branch
./skills/subcodex/subcodex review --base main my-review
# Review specific commit
./skills/subcodex/subcodex review --commit HEAD my-review
# Add instructions
./skills/subcodex/subcodex review --uncommitted my-review "read these relevant docs first, focus on security, suggest simplifications, .."
Reviews use --reasoning xhigh and read-only mode by default.
Collaboration
Claude leads, Codex executes. Use Codex to review designs and implement complex tasks. Push back on over-engineering.
Typical flow:
- Claude proposes approach
- Codex reviews/critiques
- Claude decides
- Codex implements
- Claude reviews result
Push for simple code: less abstraction, fail-fast, no "just in case" code.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
stealth-browser
Stealth browser automation with anti-bot bypass and persistent page state. Use when users need to navigate Cloudflare-protected sites, fill forms, take screenshots, extract web data, or automate browser workflows on sites that block regular automation. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "bypass cloudflare", or any browser interaction request on protected sites.
subtask
Parallel task orchestration CLI that dispatches work to AI workers (via Claude Code) in isolated git workspaces. Use when the user wants to draft, create, run, or manage tasks, delegate tasks to workers/subagents, or mentions subtask or Subtask.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?