Skip to content

Smithbox-ai/ControlFlowCodex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ControlFlow for Codex

A slim planning-quality plugin for native Codex: durable plans, adversarial verification, and plan-aware review — without duplicating what Codex already does.

3 skills, 0 subagents. The plugin keeps the ControlFlow plan format, tier-gated semantic-risk review, and evidence discipline, then hands execution back to native Codex. It installs no router, runtime policy, approval engine, retry scheduler, or custom subagents.

This repository is the standalone home of the ControlFlow-for-Codex plugin.

How it fits with native Codex

flowchart TD
    A["Clarify the task<br/>native <code>/plan</code>"] --> B["$controlflow-plan<br/>save a durable, risk-reviewed plan"]
    B --> C["$controlflow-verify<br/>inline adversarial check"]
    C --> D{"Verdict?"}
    D -->|"NEEDS_REVISION / REJECTED"| B
    D -->|"APPROVED"| E["Native Codex executes<br/>tools · sandbox · approvals · subagents"]
    E --> F["native <code>/review</code><br/>general code review"]
    F --> G["$controlflow-review<br/>plan conformance + evidence"]
    G --> H["Done"]
Loading

What the plugin owns vs. what Codex owns

flowchart LR
    subgraph Plugin["ControlFlow plugin adds"]
        P1["Plan-format contract<br/>+ semantic-risk review"]
        P2["Inline adversarial verify<br/>structure · mirages · cold-start"]
        P3["Plan-conformance review<br/>scope drift · evidence"]
    end
    subgraph Codex["Native Codex keeps"]
        C1["Plan mode · clarification"]
        C2["Execution · sandbox · approvals"]
        C3["Subagents · lifecycle"]
        C4["Generic <code>/review</code> · memories"]
    end
    Plugin -. "layers over" .-> Codex
Loading

Skills

Skill Purpose
$controlflow-plan Save a durable, tiered, semantic-risk-reviewed plan under plans/
$controlflow-verify Verify the saved plan inline: structure, mirages, and cold-start executability
$controlflow-review Compare implementation and test evidence with the approved plan

Each skill is a single self-contained SKILL.md (references inlined), plus an optional agents/openai.yaml for host UI metadata. There are no reference files and no subagents.

When the active repository contains schemas/planner.plan.schema.json and plans/templates/plan-document-template.md, those files override the bundled plan-format fallback.

Installation

powershell -ExecutionPolicy Bypass -File scripts/install.ps1

Use -Force to replace an existing installation. To remove:

powershell -ExecutionPolicy Bypass -File scripts/install.ps1 -Uninstall -Force

This copies the plugin into $HOME/plugins/controlflow-codex and registers a local marketplace entry at $HOME/.agents/plugins/marketplace.json.

Deterministic validator

scripts/validate-plan.ps1 is the only executable logic in the plugin. It checks the plan header, required sections, lifecycle heading order, the seven semantic-risk rows (each exactly once), and (with -RequireVerifyVerdict) the verify-verdict.md shape.

powershell -ExecutionPolicy Bypass -File scripts/validate-plan.ps1 `
  -RepoRoot . `
  -PlanPath plans/my-task-plan.md `
  -RequireVerifyVerdict

When you don't need it

For an obvious one- or two-file change, use native Codex directly — no plan artifact, no verify, no review. The TRIVIAL tier exists exactly for this.

Repository layout

.codex-plugin/plugin.json        plugin manifest
assets/controlflow-codex-logo.svg logo
skills/controlflow-plan/          $controlflow-plan  (SKILL.md + agents/openai.yaml)
skills/controlflow-verify/        $controlflow-verify
skills/controlflow-review/        $controlflow-review
scripts/install.ps1               install / -Uninstall
scripts/validate-plan.ps1         plan-format + verify-verdict validator
README.md · CHANGELOG.md · LICENSE

License

MIT — see LICENSE.

About

Codex plugin for structured task planning, adversarial plan verification, and evidence-based review. 3 skills, 0 subagents — adds durable planning discipline without replacing native Codex execution.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors