I built CodexGo, a small CLI tool for Codex PermissionRequest hooks.
The problem: during normal development, Codex often asks for approval on repeated low-risk shell commands. I wanted a local, inspectable policy layer that can:
allow low-risk commands like git status or test commands
ask for sensitive commands like git push
deny dangerous patterns like rm -rf /
explain why a command was allowed, denied, or left to the normal Codex prompt
Thanks for sharing the CLAI project. I had a look and the traffic light risk system is really interesting.
It feels like our projects are approaching a similar problem from slightly different angles: CLAI focuses on turning natural language into shell commands and surfacing command risk clearly, while my project is more focused on policy-based approval for Codex actions.
The new risk_appetite idea in your PR is especially close to what I’m thinking about: low-risk actions can move faster, while higher-risk ones still need explicit confirmation.
I haven’t thought much about opening a PR to the main repo yet, but after your comment I think it could be worth trying. Also, I built mine with the Codex app on macOS rather than Codex CLI. I actually find the app a bit nicer to work with than the CLI haha.