codex
Skill2.3k starsChanged 59 days agoMITView on GitHub
Use the local Codex CLI as an independent second agent. Two branches — (1) proactively run `codex review` for a second opinion after completing a substantive change, before presenting it as done or committing; (2) delegate a well-defined implementation task via `codex exec`, ONLY when the user explicitly asks for Codex to do it. Also covers how to prompt Codex.
79 other projects use a version of this, 1 of them edited.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- NousResearch/hermes-agenttheir own version, first seen Nov 13, 2026
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- dzhng/skillsedited, first seen Oct 4, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- dzhng/duet-agentword for word, first seen Oct 2, 2026
Who's talking about dzhng/jevgrep
- A Hacker News story“Jevgrep: A CLI for coding agents that uses Jev to discover relevant files”Hacker News · Sep 28, 2026 · 5 points
- @sarubot.bsky.social“jevgrep — AIのコード探索コストを約30%削減するTypeScript製CLI ・自然言語でコードの役割を質問し、関連ファイルや該当箇所を特定 ・Claude …”Bluesky · Oct 1, 2026 · 2 likes
- Amitro123/knowledgeBase-Agent“Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs)”GitHub · Oct 4, 2026
- 8gi-foundation/8gent-code“Scout pitch: Question-driven code locator (ask a question, get files and source in one answer)”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.dzhng.jevgrep: init at 0.8.0”GitHub · Oct 3, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub, Bluesky and Hacker News (8 times).
On GitHub · 5
- Oct 4, 2026Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs) — Amitro123/knowledgeBase-Agent0 reactions · 3 comments
- Oct 3, 2026Scout pitch: Question-driven code locator (ask a question, get files and source in one answer) — 8gi-foundation/8gent-code0 reactions
- Oct 3, 2026agent-skills.github.dzhng.jevgrep: init at 0.8.0 — sudosubin/agents.nix0 reactions
- Sep 27, 2026jevgrep: init at 0.3.0 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 26, 2026docs: add jevgrep (dzhng) listing — AppitStudio/awesome-jev0 reactions
On Bluesky · 2
- Oct 1, 2026jevgrep — AIのコード探索コストを約30%削減するTypeScript製CLI ・自然言語でコードの役割を質問し、関連ファイルや該当箇所を特定 ・Claude Code等のAIエージェントにスキルとして組み込み可能… — @sarubot.bsky.socialsays it tested it2 likes and reposts
- Sep 26, 2026RT @dzhng: Introducing jevgrep - a research agent CLI powered by jev from @typesafeai that reduces your coding agent cost by 40% (verified… — @theo-mir-rt.selfhosted.socialsays it tested it0 likes and reposts · 1 reply
On Hacker News · 1
- Sep 28, 2026Jevgrep: A CLI for coding agents that uses Jev to discover relevant files5 points
Used with
Projects with it also use minecraft-modpack-server, pokemon-player and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
braxtonROSE4Skillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 5 projects that use this
braxtonROSE4Skillpokemon-player
Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.
Also in 5 projects that use this
kevinnftSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 7 projects that use this
john-data-chenSkillteams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
Also in 8 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 9 projects that use this
bergsideSkillsketch
A friendly, hand-drawn sketch interface inspired by pencil illustrations on warm cream paper. Soft teal brand accents, hand-written display headings, rounded pill controls.
Also in 9 projects that use this
- +6 more from braxtonROSE4
Other versions79 projects use a version of this.
Word for word · 1
- dzhng/duet-agent★ 46100% same
Edited · 1
- dzhng/skills★ 978100% same
Wrote their own version · 77
- NousResearch/hermes-agent★ 267ksame name
- garrytan/gstack★ 143ksame name
- bergside/awesome-design-skills★ 3.1ksame name
- softaworks/agent-toolkit★ 2.5ksame name
- bear2u/my-skills★ 931same name
- taracodlabs/aiden★ 846same name
- notque/vexjoy-agent★ 424same name
- glebis/claude-skills★ 387same name
- aivrar/portable-hermes-agent★ 232same name
- graniet/kheish★ 221same name
67 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-agentsSkill
- audit-choicesSkill
- audit-performanceSkill
- audit-testsSkill
- auto-researchSkill
- claudeSkill
- close-specSkill
- code-reviewSkill
- compare-screenshotsSkill
- design-with-imagesSkill
- eli5Skill
- eval-skillsSkill
- explore-unknownsSkill
- handoff-specSkill
- implement-specSkill
- implement-spec-with-codexSkill
- jevgrepSkill
- launch-videoSkill
- marketing-pagesSkill
- preview-shotsSkill
- refactor-cleanSkill
- reviewSkill
- screenshot-critiqueSkill
- typesafe-aiSkill
- write-docsSkill
- write-skillsSkill
- write-specSkill
- write-testsSkill
- jevgrepSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 65 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
When codex is missing from PATH, offer to install it — ask the user for approval first, never install on your own initiative.
- Distinctive: line 52
Run a Codex review whenever you have a substantive diff you'd want a second set of eyes on — a refactor, a tricky algorithm, renderer work, …
- Distinctive: line 76
Never hand it work on your own initiative, and never re-delegate follow-up work without a fresh ask.
- Distinctive: line 82
Start from a clean tree (or record the baseline commit) so Codex's diff is separable from yours.
- Very specific: line 95
Use -o <file> to capture the final message and background long calls.
- Very specific: line 100
Follow up with codex exec resume <session-id> "<follow-up>", taking the id from the run header.
- Very specific: line 122
Watchdog: put a unique marker in the prompt, then kill the exec if grep -rl "<marker>" ~/.codex/sessions/<Y/M/D>/ finds no session within …
- Distinctive: line 141
Don't touch the working tree while a Codex exec is running on it.
“Common” is measured: kept by at least 6 in 10 of the 65 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex
Codex is an independent agent on PATH (codex — invoke as command codex if
a shell alias shadows it), sharing this working tree and already authenticated. It is a second opinion, not ground truth: verify what it
reports, own what it changes. It reads the same skills your repo carries.
If codex is not installed
When codex is missing from PATH, offer to install it — ask the user for
approval first, never install on your own initiative. On yes, follow the
current instructions at https://developers.openai.com/codex/cli. First-run
authentication is interactive — hand that step to the user. Verify with
codex --version before proceeding.
Prompting Codex
Prompt Codex like an operator, not a collaborator: compact, block-structured
with XML tags. State the task, what "done" looks like, and the few constraints
that matter. A tighter prompt beats a bigger run — improve the contract before
raising --effort.
- One task per run. Split unrelated asks (review, then fix, then docs) into separate runs; a mixed prompt gets a mixed result.
- Name skills instead of restating them. Codex reads the same skills your repo carries — say "follow write-docs for the doc", "obey refactor-clean: no compatibility wrappers." Don't re-explain what a skill already carries.
- Blocks, added only where the task needs them:
<task>— the concrete job, the repo/failure context, the expected end state. Nearly always present.<output_contract>— exact shape, highest-value first, compact.<default_follow_through>— take the low-risk interpretation and keep going; stop only when a missing detail changes correctness, safety, or an irreversible action.<verification_loop>— before finalizing, check the result against the requirements and the changed files; revise rather than ship the first draft. Any risky fix.<grounding>— ground every claim in code or tool output; label inferences as inferences. Review and research.<action_safety>— keep the diff tightly scoped; no drive-by refactors. Write tasks.
- Anti-patterns: vague framing ("take a look"), no output contract ("report back"), "think harder" in place of a contract, mixing jobs in one run, and demanding certainty the evidence can't support.
Review — proactive
Run a Codex review whenever you have a substantive diff you'd want a second set of eyes on — a refactor, a tricky algorithm, renderer work, a security-sensitive change — before declaring it done or committing. Skip it for trivial edits (typos, comments, doc-only).
- Pick the diff scope:
codex review --uncommittedfor working-tree changes,--base <branch>for a branch diff,--commit <sha>for a landed commit. Scope flags and custom instructions are mutually exclusive (despite what--helpimplies):codex review "<instructions>"reviews the default scope with your framing, a scope flag takes no prompt. When you do write instructions, scope the risk area — never state the answer you expect (unprimed, same discipline as screenshot-critique). - Triage every finding: confirm it against the code before acting. Preserve Codex's evidence boundaries — an inference it labelled is not a fact. Overlap with your own doubts is high-priority evidence; a finding you dismiss needs a stated reason, not silence.
- Report the outcome to the user — what Codex flagged, what you fixed, what you dismissed and why. Done when every finding is either fixed or explicitly dismissed.
Implementation — explicit ask only
Delegate implementation to Codex only when the user names Codex for the task. Never hand it work on your own initiative, and never re-delegate follow-up work without a fresh ask.
- Slice the task sharp before delegating — goal, constraints, and how to verify — using the prompt discipline above. An underspecified task stays with you until a fresh agent couldn't misread it.
- Start from a clean tree (or record the baseline commit) so Codex's diff is separable from yours.
- Pick the sandbox by what the task must RUN:
- Pure code + typecheck/unit:
codex exec --sandbox workspace-write "<task>". Network is off; add-c sandbox_workspace_write.network_access=trueonly when the task must fetch (e.g. new deps). - Browser verification, dev servers, or full test runs: use
codex exec --dangerously-bypass-approvals-and-sandbox "<task>". The sandbox blocks localhost binds (listen EPERMon vite/playwright), so a sandboxed codex ships code it never saw run. Bypass trades that blindness for zero OS control: only in a dedicated git worktree, only with a prompt you authored end-to-end (never relaying third-party text), and the diff review you owe afterwards is the control. Use-o <file>to capture the final message and background long calls; suppress codex's stderr thinking-noise with2>/dev/nullso it doesn't bloat your context (drop it only to debug a failing run), and add--skip-git-repo-checkto run outside a git repo. Non-interactive runs never ask for approval either way.
- Pure code + typecheck/unit:
- Follow up with
codex exec resume <session-id> "<follow-up>", taking the id from the run header.resume --lastmeans the most recent session globally — a review or any other codex run in between will hijack it. If two resume rounds don't converge, stop delegating and finish it yourself — iterating a confused agent costs more than taking over. - You own the result: read the full diff, run the tests, and only then report it. "Codex says it's done" is not done.
Exec liveness — a hang looks like work
A backgrounded codex exec can wedge at startup: process alive at ~0% CPU, but
no session file under ~/.codex/sessions/<Y/M/D>/, no network socket, no tree
changes. "Process running" is NOT "working."
- Stdin is always a file or
/dev/null, never an inherited terminal. Left on an interactive/piped stdin with no prompt source, exec printsReading additional input from stdin...and blocks forever — the most common hang. Either pass the prompt as a positional arg with< /dev/null, or feed a prompt file withcodex exec [flags] - < prompt.txt(the-makes codex read the task from stdin, and a missing file fails the redirect loudly — unlike"$(cat prompt.txt)", which silently sends the fallback string as the task). Addnohup/&as needed. - Watchdog: put a unique marker in the prompt, then kill the exec if
grep -rl "<marker>" ~/.codex/sessions/<Y/M/D>/finds no session within ~3 minutes. Relaunching after a kill reliably works. - Trust the worktree. Headless exec in a directory Codex doesn't trust can
block forever on an invisible prompt. Git worktrees are separate paths from
the trusted repo root — add
[projects."<worktree-path>"]\ntrust_level = "trusted"to~/.codex/config.tomlbefore exec'ing in one. This is the safe fix; the bypass flags stay forbidden here. - Don't launch two execs in the same instant, and kill stale hung execs before starting a new one.
- Launch from the repo/worktree ROOT. The writable sandbox root is the
CWD at launch: exec'd from a subdirectory (e.g.
web/), every edit outside it is rejected as "writing outside of the project" and aneverapproval policy can't recover — the run burns with zero files changed. Pass-C <root>to set the working root explicitly instead ofcd-ing into it.
Rules
- Don't touch the working tree while a Codex exec is running on it.
--sandbox read-only(the default) for consultation and questions;workspace-writeonly for delegated implementation.--dangerously-bypass-approvals-and-sandboxis reserved for tasks that must run browsers/servers/full suites (above) — dedicated worktree, self-authored prompt, mandatory diff review after.--full-autohas been removed (it aliased workspace-write) — don't reach for it.- Reasoning effort and model are config/flag overrides —
-c model_reasoning_effort=high,-m <model>(the old--effortflag is gone in current Codex). Leave both at their defaults unless the user asks — tighten the prompt first.
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.

