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 | sh

Try 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.

  1. $ 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.

  2. 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.

  3. Turn on Counter?
    storecommands
    Turn 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.

YYou

/claude login

Signed in with your Claude plan. Claude models are now in /model.Claude
YYou

/continue check the build

Resumed with how the last turn ended, its unfinished tool calls and changed files.Continue
YYou

/statusline

Detailed preset, plus your own script as a segment.Status line
YYou

/inspect

A panel with the session’s mode, profile and active mods.Inspector
AAgent

cargo test -p parser (and 2 more)

One line: 3 commands · ok · 41.3s. Open it for each command and its output.Tool lines
YYou

/profile add

Signed in to a second ChatGPT account without leaving the session. Alt+s picks it for /new.Account profiles
YYou

codex

The OMD mark, your profile, the Codex version and how many mods are on.Launch banner
CCodex

Approve this command? (no answer for 2 min)

Declined, and told Codex to use its best judgment and say what it assumed.Auto-continue
YYou

/preview --watch report.html

YYou

Alt+a

Context, cache, cost and quota in one dialog, with estimates labeled.Usage
YYou

/model

A compact picker for the model and its reasoning effort.Model picker
AAgent

update_plan (3 steps)

Pinned above the prompt, each step with its status.Plan panel
YYou

/mods

Turned Frecency on. Its commands work now; the rest starts with your next message.Mod manager
YYou

/update

Fixes for two mods are ready. They install on your next codex start.Update controls
YYou

/advisor the migration plan

A second model reviewed the plan before any edit.Advisor
AAgent

cat .env

Redacted the keys in its output before they reached the model.Privacy
YYou

@lex

src/parser/lexer.rs ranked first, since you open it most.File ranking
YYou

/lsp

AAgent

Edit src/api.ts

Told the agent about the two type errors that edit introduced.LSP sync
YYou

(away for an hour)

Compacted the idle conversation near the estimated prompt-cache deadline.Idle compact
YYou

/omd_workflow:progress

The task, what has been checked, and the work left.Workflow
YYou

omd mini

Just the transcript, a bare › prompt and one status line. Easy over SSH.Mini interface
YYou

/cursor setup

Signed in to Cursor in the browser. Your Cursor models are now in /model.Cursor
AAgent

cat, rg, sed -n (one response)

Ran as one merged step, and the repeated read ran once.Tool absorb
AAgent

{ "limit": "200" }

Fixed to the number 200, so the call ran. /toolfix shows the fix.Tool fix
AAgent

session reuse

Facts from files whose hashes still match, and the lessons you approved.Source knowledge
YYou

/refine

YYou

/btw why this regex?

Answered below the conversation; the turn kept running and the agent never saw it.Side questions
YYou

/undo

Put back the 3 files the last turn changed. /redo brings them back.Checkpoints
YYou

Watch PR 412 and keep going

One monitor set; the agent kept working and heard back when CI passed.Monitor
AAgent

(old tool output)

Hidden from later requests as a one-line note; the model recalls it if needed.Observation mask
AAgent

(turn ends after edits)

Asked once to run a check first; the failing test went back to the agent.Verify before stop
AAgent

Edit config.json

Told the agent at once that the edit left a trailing comma.Edit guard
AAgent

pnpm build (same error, 3×)

Told the agent to change approach instead of retrying.Loop guard
AAgent

(first request)

A workspace snapshot: OS, languages, toolchains and test commands, kept in the cached prefix.Environment snapshot
AAgent

(30 tool calls in)

The open plan steps repeated after a tool result, so the plan stays in view.Plan anchor
YYou

/awake

The Mac stays awake while the turn runs, lid closed too, then sleeps.Awake
YYou

use sonnet 5.5 as subagents to research

YYou

/workspace

Chat on the left, a dock of Changes and Shell tabs on the right.Workspace
YYou

/git

Staged two hunks and pushed, without leaving the session.Git panel
YYou

/files

Parent and current-folder columns, a preview, and z to jump to the files you use most.File manager
YYou

/lazygit

lazygit full screen, with your keys, mouse and colors.Lazygit
YYou

/yazi

Picked three files; they’re @path mentions in the prompt now.Yazi
YYou

/theme lagoon

Light shafts and a sea turtle behind the conversation; the prompt stays opaque.Living themes

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?”
StandupReads the git log and writes three lines.commandsexec

A guard

“Stop the agent before any git push --force”
Push guardChecks each shell call and blocks force-pushes.middleware

A status segment

“Show this branch’s CI result next to the model”
CI badgeFetches CI results and updates the status line on push.terminalhttp

A panel

“Pin the failing tests above the prompt until they pass”
Red testsWatches test runs and lists what still fails.terminalevents
  1. $ omd-mod-author create ./standup standup✓ index.ts, mod.json, tests

    1Scaffold it

    omd-mod-author create writes a typed mod and its tests.

  2. $ pnpm watch practicereloaded standup · 0.2sreloaded standup · 0.2s

    2Try it

    pnpm watch reloads it in codex on every save.

  3. $ 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.

  1. InstallPick OMD+ or OMD Core.
  2. Run codexSame command as before.
  3. Type /modsTurn features on or off, or add new ones.
Pick a profileSwitch later by rerunning the installer

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 →
  1. Oh My Diff 1.5.4Codex 0.171.0, app-style tool activity rows, and a fix for the theme and status line flickering.
  2. Oh My Diff 1.5.3Codex 0.167.2 and per-account provider routes.
  3. Oh My Diff 1.5.2Codex 0.167.1, shareable theme scenes, and more reliable status, cache and background work.
  4. Oh My Diff 1.5.1Claude models work with tools again, /update opens with mod updates waiting, and /mods shows one row per mod.