/claude login
Oh My Diff.Keep Codex. Mod everything.
Add commands, tools and panels to OpenAI’s Codex CLI with TypeScript mods. Keep your codex command, settings and sign-in.
Install
$ curl --proto '=https' --tlsv1.2 -fsSL https://github.com/dzkchen/oh-my-diff/releases/latest/download/install.sh | shTry this demo: turn mods on or off, change settings and install more.
What is Oh My Diff?
Codex is OpenAI’s coding agent for the terminal. Oh My Diff adds a host that runs TypeScript mods inside your session.
- $ curl -fsSL …/install.sh | sh✓ OMD+ installed$ codex
1Install, then run codex.
The installer adds OMD’s codex launcher. It uses your existing settings, sign-in and history.
- api.command('standup', …)api.tool({ name: 'count' }, …)api.state.set(count)
2Choose what to add.
Mods add commands, tools, panels, status lines and other models. Install them from npm, Git or a folder.
- Turn on Counter?storecommandsTurn onNot now
3Review its permissions.
OMD shows a mod’s permissions before you turn it on. Manage mods in /mods, or run omd uninstall to return to plain Codex.
Change how Codex works.
These examples show what each mod does when you type a command or the agent uses a tool. Some mods are experimental; open a card for requirements.
/continue check the build
/statusline
/inspect
cargo test -p parser (and 2 more)
/profile add
codex
/plan
Approve this command? (no answer for 2 min)
/preview --watch report.html
Alt+a
/model
update_plan (3 steps)
/mods
/update
/advisor the migration plan
cat .env
@lex
/lsp
Edit src/api.ts
(away for an hour)
/omd_workflow:progress
omd mini
/cursor setup
cat, rg, sed -n (one response)
{ "limit": "200" }
session reuse
/refine
/btw why this regex?
/undo
Watch PR 412 and keep going
(old tool output)
(turn ends after edits)
Edit config.json
pnpm build (same error, 3×)
(first request)
(30 tool calls in)
/awake
use sonnet 5.5 as subagents to research
/workspace
/git
/files
/lazygit
/yazi
/theme lagoon
Write your own mods in TypeScript.
Use the TypeScript API to add commands, tools and panels, or intercept shell calls and model requests.
A few ideas for your own mods:
A command
“/standup: what did I change since yesterday?”
A guard
“Stop the agent before any git push --force”
A status segment
“Show this branch’s CI result next to the model”
A panel
“Pin the failing tests above the prompt until they pass”
- $ omd-mod-author create ./standup standup✓ index.ts, mod.json, tests
1Scaffold it
omd-mod-author create writes a typed mod and its tests.
- $ pnpm watch practicereloaded standup · 0.2sreloaded standup · 0.2s
2Try it
pnpm watch reloads it in codex on every save.
- $ omd install npm:@you/standup✓ installed · off until you say
3Share it
Publish to npm or Git; anyone can omd install it.
One command · MIT licensed · Apple Silicon
Install Oh My Diff.
Choose OMD+ for the included mods, or OMD Core to pick your own. Both use your existing Codex settings and sessions.
- InstallPick OMD+ or OMD Core.
- Run codexSame command as before.
- Type /modsTurn features on or off, or add new ones.
Core plus OMD’s included mods.
- 14 mods: 6 on, 8 off
- 1 optional Codex plugin
- Manage them in /mods
FAQ
Want help choosing mods? Copy a prompt that asks your agent to read the mod brief.
Is Oh My Diff a fork of Codex?
OMD builds the open-source Codex CLI with a patch that adds a TypeScript mod host. Each release supports one Codex version line. We maintain the patch so mod authors can work in TypeScript.
Is this like Claude Code mods?
Both let you extend a coding agent: OMD mods run in Codex CLI, and Claude Code mods run in Claude Code. Three Claude Code mods have been adapted for OMD.
Does it change my Codex setup?
No. You still run codex, with your settings, sign-in and sessions. omd uninstall restores plain Codex, and omd uninstall --purge also removes OMD’s own mod data.
What happens when Codex updates?
Each OMD release supports one Codex version line, now 0.172.x. Turn off automatic Codex updates and update Codex only after omd update supports the new version.
Can I use Claude or other models?
Yes. Install the experimental Claude or Cursor mod with omd install, then sign in to add its models to /model. The Account profiles mod manages ChatGPT, Claude and Cursor accounts, API keys and other providers. Select an account for new threads with /profile or Alt+s. See all mods →
Does it work with T3 Code?
Point T3 Code’s Codex binary path at OMD’s codex to use mods that change model requests, tools and turns. Status lines, panels and terminal commands don’t appear in T3 Code; manage those mods from a terminal with omd mods. OMD’s tests cover T3 Code requests, not the T3 Code app itself. Read the T3 Code guide →
Can I turn features off?
Use /mods to turn mods on or off. If a mod breaks codex, run omd mods disable ID from any shell, or use /omd inside codex. Core mods stay on in /mods and /omd.
Is it safe?
You approve a mod’s permissions when you turn it on, and OMD keeps credentials and approvals in native code. A mod can use its approved access without asking again on every call. Only turn on mods you trust.
What does it run on?
Apple Silicon Macs, with Codex 0.172.x and Python 3.12 or newer. Mods run on a runner that ships with OMD, so Node is only needed for the account mods (profiles, Claude, Cursor) and to write mods. Linux is planned, with no date yet.
Is it ready to use?
OMD is in beta. The mod API 1.0.0 is stable; entries marked experimental may change. Check each mod’s status and requirements before using it. See what’s shipped →
What support should I expect?
One person maintains OMD for their own workflow and expects to focus mainly on critical fixes. Report problems on GitHub. Open an issue →
Is it affiliated with OpenAI?
No. Oh My Diff is an independent project built on the open-source Codex CLI.
Recently shipped.
Full changelog →- Oh My Diff 1.5.4Codex 0.171.0, app-style tool activity rows, and a fix for the theme and status line flickering.
- Oh My Diff 1.5.3Codex 0.167.2 and per-account provider routes.
- Oh My Diff 1.5.2Codex 0.167.1, shareable theme scenes, and more reliable status, cache and background work.
- Oh My Diff 1.5.1Claude models work with tools again, /update opens with mod updates waiting, and /mods shows one row per mod.