# Codex compat

> Codex compat is an open-source agent skill for developer tools. Generates Codex hooks.json and AGENTS.md from an existing Claude Code hook setup. It is available on Claude Code and Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex
- **Website:** https://github.com/redpanda-data/ui-harness/tree/main/codex-compat
- **Repository:** https://github.com/redpanda-data/ui-harness
- **GitHub stars:** 34
- **License:** MIT
- **Skill name:** codex-compat
- **Collection:** https://github.com/redpanda-data/ui-harness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/redpanda-data/ui-harness/tree/HEAD/codex-compat)
- [No network calls found in its scripts](https://github.com/redpanda-data/ui-harness/tree/HEAD/codex-compat)
- [License: MIT](https://github.com/redpanda-data/ui-harness/tree/HEAD/codex-compat)

## Features

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

## Install

### Claude Code

This skill ships in the `frontend-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add redpanda-data/ui-harness
/plugin install frontend-skills@ui-harness
```

Or copy only this skill to `~/.claude/skills/codex-compat`:

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

### Codex

Copy the skill folder to `~/.agents/skills/codex-compat` to use it in every repository:

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

### Cursor

Copy the skill folder to `~/.cursor/skills/codex-compat` to use it in every project:

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

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/redpanda-data/ui-harness.git --path codex-compat
```

Or copy the folder to `~/.gemini/skills/codex-compat` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/codex-compat`:

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/redpanda-data/ui-harness.git
```

Then copy `ui-harness/codex-compat` into your agent's skills folder as `codex-compat`. Agents that support SKILL.md read one folder per skill.

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

## Alternatives

- [Migrate to codex](https://ai-powered.com/skills/migrate-to-codex): Migrate to codex is a free agent skill for developer tools.
- [Writing hooks](https://ai-powered.com/skills/writing-hooks-xiaolai): Writing hooks is an open-source agent skill for developer tools.
- [Conventions codex](https://ai-powered.com/skills/conventions-codex-xiaolai): Conventions codex is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-jeffh): Implement is an open-source agent skill for developer tools.
- [Harness setup](https://ai-powered.com/skills/harness-setup-maxwell2732): Harness setup is an open-source agent skill for developer tools.
- [Codex review](https://ai-powered.com/skills/codex-review): Codex review is an open-source agent skill for developer tools.
- [Conventions claude](https://ai-powered.com/skills/conventions-claude-xiaolai): Conventions claude is an open-source agent skill for ai models and llm tooling.
- [Harness setup](https://ai-powered.com/skills/harness-setup-chachamaru127): Harness setup is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/codex-compat
