aivrar/portable-hermes-agent/codex
Claude Code and agent skill by aivrar/portable-hermes-agent
- 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 aivrar/portable-hermes-agent/codexSKILL.md
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: either
OPENAI_API_KEYor Codex OAuth credentials
from the Codex CLI login flow
- Must run inside a git repository — Codex refuses to run outside one
- Use
pty=truein terminal calls — Codex is an interactive terminal app
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 | |
--sandbox workspace-write (-s) | Sandboxed but auto-approves file changes in the workspace (the recommended auto-build mode) | |
--dangerously-bypass-approvals-and-sandbox | No sandbox, no approvals (fastest, most dangerous; --yolo still works as a hidden alias) | |
--sandbox danger-full-access | No Codex sandbox; useful when the host service context breaks bubblewrap |
Deprecated:--full-autostill works but the live CLI warns to use--sandbox workspace-writeinstead.
Hermes Gateway Caveat
When invoking the Codex CLI from a Hermes gateway/service context (for example, Telegram-driven agent sessions), Codex workspace-write sandboxing may fail even when the same command works in the user's interactive shell. A typical symptom is bubblewrap/user-namespace errors such as setting up uid map: Permission denied or loopback: Failed RTM_NEWADDR: Operation not permitted.
In that context, prefer:
Use process boundaries as the safety layer instead: explicit workdir, clean git status before launch, narrow task prompts, git diff review, targeted tests, and human/agent confirmation before committing broad changes.
PR Reviews
Clone to a temp directory for safe review:
Parallel Issue Fixing with Worktrees
Batch PR Reviews
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 - `--sandbox workspace-write` for building — auto-approves changes within the sandbox (
--full-autois deprecated for this) - 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, 94 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/autonomous-ai-agents/codex/SKILL.md
Popularity
- Repository stars
- 210
- Repository forks
- 45
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 May 2026, 5 months ago.
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/aivrar/portable-hermes-agent/codex)