
Codex compat
Generates Codex hooks.json and AGENTS.md from an existing Claude Code hook setup
Codex compat is an open-source agent skill for developer tools. It is available on Claude Code and Codex.
- Scripts
- shell
- Platforms
- Claude Code, Codex
- GitHub stars
- 34
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Codex compat
This skill reads a project's Claude Code settings and produces the equivalent Codex configuration. Hooks that Codex supports natively, such as Edit or Write matchers mapped to apply_patch, are translated directly into .codex/hooks.json. Checks that cannot run per tool event fall back to a generated batch checker that runs on Stop.
The workflow classifies every Claude hook as direct, direct with a shim, fallback only, or unsupported, using a compatibility matrix in the reference file. It then writes shared project rules to both AGENTS.md for Codex and CLAUDE.md for Claude Code, from a template. The original .claude/settings.json is left untouched.
The skill expects an existing Claude Code hooks configuration in the repository and runs as bash scripts. It is aimed at teams that want one codebase to work with both Claude Code and Codex.
When your agent uses it
Generate Codex hooks.json and AGENTS.md from Claude Code hooks. Maps supported hooks directly, including Edit|Write apply_patch aliases, and keeps Stop batch checks only as fallback. Use when setting up Codex compatibility or dual-agent support.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 3 files (17 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the frontend-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add redpanda-data/ui-harness
/plugin install frontend-skills@ui-harnessOr copy only this skill to ~/.claude/skills/codex-compat:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redpanda-data/ui-harness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/codex-compat &&
cp -R "$tmp/codex-compat" ~/.claude/skills/codex-compat &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/codex-compat inside it instead.
Copy the skill folder to ~/.agents/skills/codex-compat to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redpanda-data/ui-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/codex-compat &&
cp -R "$tmp/codex-compat" ~/.agents/skills/codex-compat &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/codex-compat inside it instead.
Copy the skill folder to ~/.cursor/skills/codex-compat to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redpanda-data/ui-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/codex-compat &&
cp -R "$tmp/codex-compat" ~/.cursor/skills/codex-compat &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/codex-compat inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/redpanda-data/ui-harness.git --path codex-compatOr copy the folder to ~/.gemini/skills/codex-compat yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/codex-compat:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redpanda-data/ui-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/codex-compat &&
cp -R "$tmp/codex-compat" ~/.copilot/skills/codex-compat &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/codex-compat inside it instead.
Get the folder:
git clone --depth 1 https://github.com/redpanda-data/ui-harness.gitThen copy ui-harness/codex-compat into your agent's skills folder as codex-compat. Agents that support SKILL.md read one folder per skill.
What it does
- Hook translation
- Converts supported Claude Code lifecycle hooks into a Codex hooks.json file.
- Edit and Write aliasing
- Maps Edit and Write matchers onto Codex apply_patch events where possible.
- Compatibility matrix
- Classifies each hook as direct, shimmed, fallback only, or unsupported.
- Batch check fallback
- Adds a Stop-time batch checker only for checks that cannot run per tool call.
- Shared project rules
- Produces AGENTS.md and CLAUDE.md from one template so both agents share rules.
- Verification checklist
- Lists checks to confirm the generated setup matches the source hooks.
Good for
- Set up Codex alongside an existing Claude Code project
- Port Claude Code hooks to Codex hooks.json
- Create AGENTS.md and CLAUDE.md with shared rules for dual-agent work
- Add a fallback batch lint check to run when the agent stops
Codex compat FAQ
What does Codex compat need to run?
It needs an existing Claude Code hook configuration in .claude/settings.json to read, and it uses bash scripts.
Does Codex compat change my Claude Code settings?
No. The skill states that .claude/settings.json stays unchanged.
When is the batch checker created?
Only when a hook that cannot run per tool event needs a fallback. The checker is copied into .codex/hooks/ in that case.
Which files does Codex compat generate?
It generates .codex/hooks.json, optionally .codex/hooks/codex-batch-check.sh, and AGENTS.md plus CLAUDE.md at the repository root.
How do I install Codex compat in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/codex-compat to use it in all your projects, or to .claude/skills/codex-compat in one project. Or install the frontend-skills plugin, which includes it: /plugin marketplace add redpanda-data/ui-harness, then /plugin install frontend-skills@ui-harness.
Does Codex compat run scripts?
Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Codex compat?
Claude Code and Codex. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Codex compat?
The closest alternatives to Codex compat are Migrate to codex, Writing hooks, Conventions codex, Implement and Harness setup.
Where this comes from
- Description: from the skill's own SKILL.md.
More from redpanda-data/ui-harness

Guides an agent through design exploration and stress-testing before any code is written
- Open source
- 34 GitHub stars
- Developer tools

Makes the agent reply in terse, fragment-style text when asked to be brief
- Open source
- 34 GitHub stars
- Developer tools

Groups local changes into conventional commits and pushes the branch to origin
- Open source
- 34 GitHub stars
- Developer tools

Commits changes in categorized conventional commits, pushes, and opens a pull request
- Open source
- 34 GitHub stars
- Developer tools

Generates several radically different interface designs for a module and compares them
- Open source
- 34 GitHub stars
- Developer tools

Reviews code changes for unjustified surface area before commit, push or merge
- Open source
- 34 GitHub stars
- Developer tools




