Zensu for OpenAI Codex CLI

From a plan to a
reviewed change.

Give your Codex session a complete development workflow: plan, implement, verify and review. Zensu runs as a native Codex plugin, keeping the evidence with the work until the review chain closes.

Public GitHub marketplace · Validated on Codex CLI 0.144.1

codex · example workflow
> $zensu-tdd Build a minimal browser Pong

plan
  scope · acceptance criteria

implement & verify
  code · tests · evidence audits

review & resolve
  five reviewers → fixes → self-review

finish
  closed review chain
OpenAI Codex CLI in under four minutes

From an idea to a reviewed pull request.

Follow one feature through planning, implementation, five parallel reviews and live verification in the OpenAI Codex CLI. See what Codex enforces once you trust the Zensu hooks, and where you stay in control.

3:43 English Captions includedIllustrative workflow with fictional data

Reviewer isolation depends on your Codex version: on Codex 0.144.1 the host keeps reviewers read-only, and on 0.157.1, 0.163.0 and 0.166.0 only the trusted hooks do, with open limits.

A clear starting point

Turn a request into a plan with acceptance criteria you can check.

Evidence along the way

Review the change, fix concrete findings and verify the running feature.

The final decision is yours

Zensu Autopilot prepares a pull request and never merges it. You control review, merge and deployment.

Read the video transcript

A clear path from request to reviewed code

Writing code is only one part of shipping a feature. You also need a clear plan, meaningful checks, and a review you can act on. Zensu brings those steps into the OpenAI Codex CLI, so an idea can move through a consistent delivery workflow.

On screen: A feature moves through planning, building, review, verification and a pull request.

One real-world task

Imagine your team needs a CSV export for filtered orders. You describe the outcome in plain English: export the orders currently shown, include the right columns, and respect access permissions. Zensu helps turn that request into a plan with concrete acceptance criteria.

On screen: A fictional Orders app filters a date range. The plan covers the date filter, expected columns and access permissions.

Agree on the outcome

Before implementation begins, you review the plan. Codex has no plan-approval event, so by convention, Zensu offers its workflow before the first code edit. For an end-to-end run, choose Zensu Autopilot. After that planning gate, it works through building, reviewing, fixing, and verifying the feature, aiming for a pull request that is ready for your review.

On screen: You approve the plan. Zensu Autopilot moves through building, review, fixes and verification toward a pull request. Codex has no plan-approval event, so Zensu offers its workflow before the first code edit.

Build with the right level of guidance

During implementation, Codex works in your repository and follows its existing conventions. Zensu uses a flexible implementation mode by default. If your project calls for strict test-driven development, you can opt into a failing test-first, red-to-green cycle. In strict mode, a Zensu hook denies production edits until a failing test exists. Codex runs these hooks only after you review and trust them.

On screen: Implementation follows the existing repository. Strict test-driven development is an optional failing-test-first, red-to-green cycle. In strict mode, a Zensu hook denies production edits until a failing test exists; Codex runs Zensu hooks only after you review and trust them in /hooks. After an update that changes a hook, trust it again in /hooks.

Bring in fresh perspectives

Five read-only reviewers examine the change in parallel, one for each perspective: conventions, bugs, architecture, tests, and security. Every finding must point to an actual file and line, with code evidence and a concrete fix. One reviewer consolidates the findings. Fix rounds follow, and a final self-review closes the review chain.

On screen: Five read-only reviewers check conventions, bugs, architecture, tests and security in parallel. Each finding names a file, a line, code evidence and a concrete fix. One reviewer consolidates the findings, fix rounds follow and a final self-review closes the chain.

Make feedback actionable

In our example, a reviewer spots that the export ignores the selected date filter. That identifies a specific gap between the requested behavior and the implementation. The workflow applies a fix and reviews the resulting change.

On screen: The export initially ignores the date filter. The fix passes the filter to the order lookup, then the change is reviewed again.

Check the running feature

Live verification exercises the running feature against the acceptance criteria. Select a date range, export the orders, and inspect the downloaded file. Do the rows match the filter? Are the columns correct? Are access permissions enforced? The report records what actually happened, including anything that remains unresolved.

On screen: The downloaded CSV contains the expected rows and columns. An unauthorized request receives 403. An acceptance report records the outcomes.

Keep the final decision

When the checks pass, the result is a pull request with implementation and verification evidence. Autopilot stops there. You retain control over the final review, merge, and deployment.

On screen: The pull request carries implementation, review and verification evidence. Final review, merge and deployment remain your decisions.

Connect work to product progress

Zensu also supports the bigger picture. Starting fresh? Bootstrap turns a vision document into tracked features. Working with an existing product? Ghost Scan discovers what is already built. With the optional Zensu tracking layer, features connect to source files, tests, documentation, journeys, security profiles, and a dashboard your team can follow.

On screen: Bootstrap starts from a vision; Ghost Scan discovers existing features. Optional tracking connects features to their evidence.

Start with one change

You do not need a Zensu account for the core implementation workflow and review chain. Install Zensu from the public GitHub marketplace and start with one change, or connect product tracking when you need it. Less manual coordination. Clearer evidence. A more understandable path from request to reviewed code.

On screen: The core workflow needs no Zensu account. Install from the public GitHub marketplace with codex plugin marketplace add MKITConsulting/zensu-codex, start with $zensu-tdd and visit zensu.dev/codex.

From idea to reviewed change

A workflow that stays with the feature.

Start with a local project. Connect your product record when you need shared feature tracking. Implementation, review and progress logging work without a Zensu account.

A plan you can build against

Turn an idea into a plan with acceptance criteria. Work locally, or connect the Zensu CLI to load a tracked feature's context into the session.

Review before you call it done

Five reviewers check the change in parallel. One reviewer consolidates their findings, fix rounds follow, and a final self-review closes the chain.

Evidence that stays with the work

The evidence audits stay on in every mode, and with trusted hooks a witness log records each shell command the session runs.

Your first session

Plan first. Then choose the workflow.

Codex has no plan-approval event, so Zensu asks by convention: its instructions tell Codex to offer the Zensu workflow before the first code edit.

  1. Plan with Codex

    Work out the scope and acceptance criteria in your session. For a tracked feature, $zensu-implement loads its context from Zensu first.

  2. Choose the Zensu workflow

    When Codex asks whether to run $zensu-tdd, answer yes. You can also start it yourself: type $zensu-tdd followed by your request.

  3. Let the review chain close

    Five reviewers run in parallel and zensu-code-reviewer consolidates their findings. Fix rounds follow, up to five by default, and $zensu-self-review closes the chain.

What Codex enforces, and what Zensu asks for

  • Enforced: in strict mode, the TDD gate denies production edits until a failing test exists, as long as the hooks are trusted.
  • Advisory: the Stop review backstop, because a Codex Stop hook cannot hard-block, and the plan-approval question, because Codex has no plan-approval event.
  • Driven by the skill: the fix loop and the five parallel reviewers, which run only when the skill asks for them.
  • Not gated: changes made through the Zensu CLI outside the $zensu-* skills.
  • Reviewer read-only boundary: enforced by the host on Codex 0.144.1, and by the trusted hooks on 0.157.1, 0.163.0 and 0.166.0, with open limits.

The README keeps the full capability map for each Codex version.

Built for Codex CLI

Native skills, subagents and hooks.

Skills invoked as $zensu-… and three subagents cover planning, implementation, security, review and pull requests. The plugin drives the typed Zensu CLI; no MCP server is wired in.

Vanilla by default. Test-first by choice.

The default workflow implements directly, keeps the evidence audits and completes the review chain. Set hooks.tddImplementation to true in ~/.zensu/config.json for strict RED → GREEN.

From product setup to pull request

$zensu-bootstrap and $zensu-ghost-scan bring a product into Zensu. $zensu-security-review covers a feature's risks, $zensu-pr-team-review reviews a pull request, and $zensu-autopilot takes an idea to a validated pull request without merging it.

Trust on your terms

Zensu hooks run only after you review and trust them in /hooks. Skills, subagents and the Zensu CLI work without that trust. Your session hands each reviewer a review packet with the diff, the guidance and the evidence; on Codex 0.144.1 the host keeps reviewers read-only, and on 0.157.1, 0.163.0 and 0.166.0 only the trusted hooks do, with open limits.

Install

Install from the public marketplace.

The plugin and its marketplace are public on GitHub at MKITConsulting/zensu-codex. The marketplace is pinned to the immutable release tag, so ordinary merges cannot silently replace the plugin you installed.

1. Prepare your tools

Use the OpenAI Codex CLI 0.144.1, the validated and eval-pinned version, with Node.js 20 or newer, Bash and Git, on macOS or Linux, or on Windows through WSL or Git Bash. The plugin drives Zensu through the Zensu CLI 0.2.0 or newer:

curl -fsSL https://zensu.dev/install.sh | sh
zensu auth login

The TDD engine, code review and progress logging work without a Zensu account. Signing in adds tracking: linked tests, status updates, revisions and release gating.

2. Add the marketplace

Register the marketplace, then open the plugin picker:

codex plugin marketplace add MKITConsulting/zensu-codex
codex /plugins

Select “Zensu”, then Install.

3. Enable and trust the hooks

On the eval-pinned Codex 0.144.1, enable plugin hooks first:

codex --enable plugin_hooks

On Codex 0.157.1, 0.163.0 and 0.166.0, plugin hooks ran without this flag and with no [features] table in config.toml at all, measured in one codex exec run per version with the hook trust bypassed. Untrusted hooks did not run, so the trust step below stays required on these versions too.

Then review the Zensu hooks and trust them:

codex /hooks

Hooks run only after this trust. After an update that changes a hook, trust the Zensu hooks again. On Codex 0.166.0 every plugin update marks every Zensu hook as modified, so trust them all again in /hooks after each update; until then, an open chat runs no Zensu hook at all. On Codex 0.157.1, 0.163.0 and 0.166.0, codex exec and the app server skip untrusted hooks without any notice, so an unattended run on an untrusted install has every Zensu hook off.

4. Codex 0.157.1, 0.163.0 and 0.166.0 only: copy the subagents

These versions do not load a plugin's subagents, so copy the three roles to where Codex finds them:

mkdir -p "${CODEX_HOME:-$HOME/.codex}/agents"
cp "${CODEX_HOME:-$HOME/.codex}"/plugins/cache/zensu/zensu/<version>/agents/*.toml "${CODEX_HOME:-$HOME/.codex}/agents/"

Replace <version> with the installed plugin version; ls "${CODEX_HOME:-$HOME/.codex}/plugins/cache/zensu/zensu/" lists it. The copies do not follow plugin updates, so repeat this step after every update.

A role of the same name in a project's .codex/agents/ wins over your copy, even in an untrusted project. So $zensu-tdd does not spawn a reviewer under a role that the project replaced: it runs that reviewer as a default subagent with the Zensu instructions in its message, and its final report says so.

Then restart Codex or open a new session. $zensu-help answers questions about the skills and the workflow.

Uninstall Zensu from Codex

Remove the marketplace, or uninstall the plugin through /plugins:

codex plugin marketplace remove zensu

Optionally untrust the Zensu hooks in /hooks. The Zensu CLI, ~/.zensu/config.json and the .zensu/ folders in your projects stay in place; uninstall the CLI separately if you no longer need it. If you copied the subagent roles for Codex 0.157.1, 0.163.0 or 0.166.0, delete zensu-plm.toml, zensu-code-reviewer.toml and zensu-review-aspect.toml from ${CODEX_HOME:-$HOME/.codex}/agents/. If you appended AGENTS.zensu.md to ~/.codex/AGENTS.md, remove that block too. Then restart Codex.

Integration support

Bring Zensu into your next Codex session.

For help with setup, contact . To connect your workflow to the Zensu product platform, request an account below.

Request Zensu access