Skip to content

Add Codex CLI support - #23

Merged
raj-khan merged 1 commit into
mainfrom
support-codex
Oct 24, 2026
Merged

raj-khan merged 1 commit into
mainfrom
support-codex

Conversation

@raj-khan

Copy link
Copy Markdown
Contributor

Adds a Codex CLI adapter. Codex reads the same hooks.json shape and answers as Claude Code, so only the wiring differs: .codex/hooks.json, groups without a matcher, --agent codex commands. An argv-array tool_input.command is inspected as one line. init and status print the trust step (/hooks in Codex), since Codex skips untrusted project hooks. .codex/hooks.json and a hooks = false / codex_hooks = false in .codex/config.toml are covered by the tamper check, which now reads written content as raw text. Backlog task-4.

init wires PreToolUse, PostToolUse and SessionStart in .codex/hooks.json and prints the /hooks trust step Codex needs. Argv-array commands are inspected as one line, and hooks = false in .codex/config.toml trips tamper.
@raj-khan
raj-khan merged commit 786113b into main Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant