jesse0830/jiayang/codex
Claude Code and agent skill by jesse0830/jiayang
- community
Checking that the SKILL.md file is still in the repository.
Delegate coding to OpenAI Codex CLI (features, PRs).
Install
npx vskill@latest install jesse0830/jiayang/codexSKILL.md
The same SKILL.md was published earlier as jesse0830/jiayang/codex.
Codex CLI
Delegate coding tasks to Codex via the Hermes terminal. Codex is OpenAI's autonomous coding agent CLI.
When to use
- Building features
- Refactoring
- PR reviews
- Batch issue fixing
Requires the codex CLI and a git repository.
Prerequisites
- Codex installed:
npm install -g @openai/codex - OpenAI auth configured — choose one method:
- API key (most reliable):
printenv OPENAI_API_KEY | codex login --with-api-key - Browser OAuth:
codex login(opens localhost:1455, auto-opens browser) - Device auth (headless/remote):
codex login --device-auth - ⚠️ Known auth pitfalls:
- In China/restricted regions,
--device-authreturns 403 Forbidden - Browser OAuth requires access to
auth.openai.com— also blocked in China - `--with-api-key` is the only reliable method in restricted regions
- Must run inside a git repository — Codex refuses to run outside one
- Use
pty=truein terminal calls — Codex is an interactive terminal app
API key persistence: After logging in with --with-api-key, the session is stored in ~/.codex/auth.json. To make the key available across Hermes sessions, add OPENAI_API_KEY=<your_key> to ~/.hermes/.env.
For Hermes itself, model.provider: openai-codex uses Hermes-managed Codex OAuth from ~/.hermes/auth.json after hermes auth add openai-codex. For the standalone Codex CLI, a valid CLI OAuth session may live under ~/.codex/auth.json; do not treat a missing OPENAI_API_KEY alone as proof that Codex auth is missing.
One-Shot Tasks
For scratch work (Codex needs a git repo):
Background Mode (Long Tasks)
Key Flags
| Flag | Effect | |
|---|---|---|
exec "prompt" | One-shot execution, exits when done | |
--full-auto | Sandboxed but auto-approves file changes in workspace | |
--yolo | No sandbox, no approvals (fastest, most dangerous) |
PR Reviews
Clone to a temp directory for safe review:
Parallel Issue Fixing with Worktrees
Batch PR Reviews
Desktop App
Codex has a native macOS Desktop GUI app. Launch with:
If not installed, it auto-downloads the installer (≈566MB) and opens it. The app provides a TUI-like interface in a native window with better scrollback, multi-tab support, and clickable file links.
Non-OpenAI backends (China / DeepSeek)
When OpenAI is unreachable, keep Codex and swap the provider — see references/deepseek-provider.md for the exact config.toml (Codex ≥ 0.145 requires wire_api = "responses"; DeepSeek serves /v1/responses) and the env-var persistence that GUI launches need. Verify with a real file-editing run, not --version.
Rules
- Always use `pty=true` — Codex is an interactive terminal app and hangs without a PTY
- Git repo required — Codex won't run outside a git directory. Use
mktemp -d && git initfor scratch - Use `exec` for one-shots —
codex exec "prompt"runs and exits cleanly - `--full-auto` for building — auto-approves changes within the sandbox
- Background for long tasks — use
background=trueand monitor withprocesstool - Don't interfere — monitor with
poll/log, be patient with long-running tasks - Parallel is fine — run multiple Codex processes at once for batch work
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghermes-skills/autonomous-ai-agents/codex/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jesse0830/jiayang/codex)