Codex compat

From redpanda-data/ui-harness · View interactive version

Codex compat is an AI agent skill from the GitHub repository redpanda-data/ui-harness. 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.

How to use this skill

Skill file

Codex Compatibility Layer

Codex now supports Claude-style lifecycle hooks for SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, and Stop. PreToolUse/PostToolUse matchers support Bash, MCP tool names, apply_patch, and Edit|Write aliases. Map Edit|Write hooks direct whenever possible.

What This Creates

Steps

  1. Read .claude/settings.json and classify every hook with the REFERENCE.md compatibility matrix.
  2. Generate .codex/hooks.json:
  1. Copy scripts/codex-batch-check.sh -> .codex/hooks/ only if fallback hooks are needed. chmod +x.
  2. Generate AGENTS.md + CLAUDE.md from REFERENCE.md template.

Verify

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.