Run Codex CLI from a Kanban board
Kangentic asks Codex which hooks it trusts, reads its rollout file for usage and handoffs, and maps five permission modes onto Codex's sandbox.
Kangentic is our product. Codex CLI is not. Kangentic runs the copy you install, on your own login or API key, and this page says what Kangentic does with it.
Codex CLI is OpenAI’s coding agent for the terminal. Kangentic runs the codex you installed in each task’s worktree, and reads the rollout file Codex writes for every session.
| In Kangentic | Codex CLI |
|---|---|
| Status read from | Hooks |
| Turn-end automations run | Yes |
| Resumes its conversation | Yes |
| Hands its conversation to the next agent | Yes |
| Permission modes | 5 |
| An approved plan moves the card on | No |
| Kangentic approves its plans | No |
| Accounts | No |
| Kangentic's MCP server | Yes |
| Runs from a WSL distro | Yes |
Hooks that Codex has to trust
Codex runs a hook only when its trust record holds the hash Codex computes for that hook, and an untrusted hook stops the session at a “Hooks need review” dialog. So Kangentic never computes the hash itself. It asks the installed Codex, through codex app-server, whether it trusts the exact hooks Kangentic is about to pass, and wires them only when the answer lists every one. The check runs once per Codex binary, and again after an update.
The base set is seven hooks: SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Stop and PreCompact. Since v0.63.0 a Codex that confirms them also gets SubagentStart, SubagentStop and SessionEnd, so a running subagent keeps the card thinking. The hooks reach Codex as -c hooks.* overrides on each launch, so no hook file is written to ~/.codex or to your repository, and hooks you set up yourself still load.
When the check fails, the session runs without hooks, on a 3-second silence timer. Stop is what lets On agent turn end automations run for Codex, so such a session runs none.
The rollout file
Codex writes each session to a rollout file under ~/.codex/sessions/. Kangentic reads it for the live model, effort and token use, for the Transcript tab, and for the context window’s size, so the context bar shows a percentage. An Esc interrupt and a failed model request fire no hook, so Kangentic reads those from the rollout too, and a command still running when Codex yields counts as a background command until a later poll finds it ended.
Codex picks its own session ID. Kangentic captures it, from the SessionStart hook, Codex’s startup banner, or the rollout, and resumes with codex resume <id>, carrying the column’s permission mode, model, effort and MCP wiring. Since v0.63.0, when codex resume exits with “No saved session found”, the card says so, and a conversation that never had a turn starts fresh. A handoff out of Codex points the next agent at the rollout file.
Permission modes
New tasks start in Auto (Preset).
| Mode | Shown as |
|---|---|
plan |
Safe Read-Only Browsing |
dontAsk |
Read-Only Non-Interactive (CI) |
default |
Automatically Edit, Ask When Needed |
acceptEdits |
Auto (Preset) |
bypassPermissions |
Dangerous Full Access |
Codex no longer has --full-auto, so each mode is a pair of Codex’s own --sandbox and --ask-for-approval settings. The two read-only modes run in a read-only sandbox, and Default and Auto (Preset) in a workspace-write one. The first of each pair asks when Codex wants to, and the second never asks. Dangerous Full Access turns off both the sandbox and the approvals.
Despite its label, Auto (Preset) is acceptEdits. It is not the auto mode that Claude Code and others offer, which Codex does not have.
Trust, MCP and launch options
Codex keys folder trust on the repository root and passes none of it down, so a worktree per task would prompt every time. Kangentic writes a trust entry for each worktree into ~/.codex/config.toml and removes it with the worktree.
Kangentic’s MCP server reaches Codex through -c mcp_servers.kangentic.* overrides that apply to that run only, with the token in an environment variable. The model and effort lists in a column’s pickers come from Codex itself, through codex app-server.
Disable ChatGPT Apps, a launch option in Settings > Agent, starts Codex with --disable apps, which skips the optional ChatGPT Apps connector that can hang startup. Since v0.63.0 a pasted or dropped image attaches, and closing a session sends Ctrl+C, waits 400 ms, and sends Ctrl+C again, which lets Codex exit on its own instead of being killed.
Accounts and WSL
Account support for Codex is written and switched off. It was built from Codex’s source and docs and could not be run on a second real account, so it does not ship yet, and a Codex session runs on the login Codex already has (Agent accounts).
A Codex installed in a WSL distro runs there. Its hooks go through a small sh script Kangentic copies into the working folder’s .kangentic/, and its trust entries go into the distro’s own config.toml.
Try Kangentic with the Codex CLI you have
Free and open source, on Windows, macOS and Linux.