autonomous-ai-agents-codex
Skill15 starsChanged 7 days agoMITView on GitHub
Delegate coding to OpenAI Codex CLI (features, PRs).
- Pipes a download into a shell
- Reads credentials
- Installs packages
- Commits and pushes
In this repository86 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apple-apple-notesSkill
- apple-apple-remindersSkill
- apple-findmySkill
- apple-imessageSkill
- autonomous-ai-agents-claude-codeSkill
- autonomous-ai-agents-hermes-agentSkill
- autonomous-ai-agents-opencodeSkill
- cloudflare-computerSkill
- cloudflare-platform-skillsSkill
- computer-use-permissionsSkill
- creative-architecture-diagramSkill
- creative-ascii-artSkill
- creative-ascii-videoSkill
- creative-baoyu-comicSkill
- creative-baoyu-infographicSkill
- creative-claude-designSkill
- creative-comfyuiSkill
- creative-design-mdSkill
- creative-excalidrawSkill
- creative-humanizerSkill
- creative-ideationSkill
- creative-manim-videoSkill
- creative-p5jsSkill
- creative-pixel-artSkill
- creative-popular-web-designsSkill
- creative-pretextSkill
- creative-sketchSkill
- creative-songwriting-and-ai-musicSkill
- creative-touchdesigner-mcpSkill
- data-science-jupyter-live-kernelSkill
- dogfoodSkill
- email-himalayaSkill
- gaming-minecraft-modpack-serverSkill
- gaming-pokemon-playerSkill
- github-codebase-inspectionSkill
- github-github-authSkill
- github-github-code-reviewSkill
- github-github-issuesSkill
- github-github-pr-workflowSkill
- github-github-repo-managementSkill
- mcp-native-mcpSkill
- media-gif-searchSkill
- media-heartmulaSkill
- media-songseeSkill
- media-spotifySkill
- media-youtube-contentSkill
- mlops-evaluation-evaluating-llms-harnessSkill
- mlops-evaluation-weights-and-biasesSkill
- mlops-huggingface-hubSkill
- mlops-inference-llama-cppSkill
- mlops-inference-obliteratusSkill
- mlops-inference-outlinesSkill
- mlops-inference-serving-llms-vllmSkill
- mlops-models-audiocraft-audio-generationSkill
- mlops-models-segment-anything-modelSkill
- mlops-research-dspySkill
- mlops-training-axolotlSkill
- mlops-training-fine-tuning-with-trlSkill
- mlops-training-unslothSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Use pty=true in terminal calls — Codex is an interactive terminal app
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
curl -fsSL https://chatgpt.com/codex/install.sh | sh(installs to~/.local/bin/codex;npm install -g @openai/codexalso works but its platform binary is an optional dependency that npm drops silently on a slow download, leaving a broken install behind an exit code of 0) - 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
terminal(command="codex exec 'Add dark mode toggle to settings'", workdir="~/project", pty=true)For scratch work (Codex needs a git repo):
terminal(command="cd $(mktemp -d) && git init && codex exec 'Build a snake game in Python'", pty=true)Background Mode (Long Tasks)
# Start in background with PTY
terminal(command="codex exec --full-auto 'Refactor the auth module'", workdir="~/project", background=true, pty=true)
# Returns session_id
# Monitor progress
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")
# Send input if Codex asks a question
process(action="submit", session_id="<id>", data="yes")
# Kill if needed
process(action="kill", session_id="<id>")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:
terminal(command="REVIEW=$(mktemp -d) && git clone https://github.com/user/repo.git $REVIEW && cd $REVIEW && gh pr checkout 42 && codex review --base origin/main", pty=true)Parallel Issue Fixing with Worktrees
# Create worktrees
terminal(command="git worktree add -b fix/issue-78 /tmp/issue-78 main", workdir="~/project")
terminal(command="git worktree add -b fix/issue-99 /tmp/issue-99 main", workdir="~/project")
# Launch Codex in each
terminal(command="codex --yolo exec 'Fix issue #78: <description>. Commit when done.'", workdir="/tmp/issue-78", background=true, pty=true)
terminal(command="codex --yolo exec 'Fix issue #99: <description>. Commit when done.'", workdir="/tmp/issue-99", background=true, pty=true)
# Monitor
process(action="list")
# After completion, push and create PRs
terminal(command="cd /tmp/issue-78 && git push -u origin fix/issue-78")
terminal(command="gh pr create --repo user/repo --head fix/issue-78 --title 'fix: ...' --body '...'")
# Cleanup
terminal(command="git worktree remove /tmp/issue-78", workdir="~/project")Batch PR Reviews
# Fetch all PR refs
terminal(command="git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'", workdir="~/project")
# Review multiple PRs in parallel
terminal(command="codex exec 'Review PR #86. git diff origin/main...origin/pr/86'", workdir="~/project", background=true, pty=true)
terminal(command="codex exec 'Review PR #87. git diff origin/main...origin/pr/87'", workdir="~/project", background=true, pty=true)
# Post results
terminal(command="gh pr comment 86 --body '<review>'", workdir="~/project")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
execfor one-shots —codex exec "prompt"runs and exits cleanly --full-autofor 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

