CLI tool
viettran-edgeAI/codex_workflow avatar
viettran-edgeAI/codex_workflow

codex_workflow trades main agent rollout for a swarm of Codex workers

A swarm orchestration system in Codex - use less quota, get more done.

484 stars34 forksPythonLicense varies

At a glance

What is it?
codex_workflow installs routes, worker agents and a project memory directory into a Codex project, aiming at token cost rather than feature breadth. The routing design is thought through, and the repository ships without a license.
Who is it for?
codex_workflow fits a developer committed to Codex who runs large tasks, watches token spend, and is willing to pick a route per task and check the per agent token report to see whether it paid. Keep it out of company work while the repository has no LICENSE file, and avoid the documented install path if your policy forbids granting an agent elevated permissions to fetch and verify its own payload.
Can I use it commercially?
Not without permission. GitHub finds no licence file in the repository, and without a licence all rights are reserved by default: you may read the code but not reuse it. Check the README, or ask the authors, before using it.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 18, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

The problem codex_workflow attacks is main agent rollout

codex_workflow installs an orchestration layer into a project so that Codex distributes work across specialised agents instead of doing everything in one expanding conversation. The pitch on the repository is unusually direct about the metric it cares about: use less quota, get more done.

That framing identifies the audience. This is for someone running Codex on large tasks often enough that token spend is a line item they notice, and who is willing to install project scaffolding to change how the agent behaves. For quick questions it is not meant to engage at all, and the default route does nothing.

The mechanism it targets is worth naming because it is specific. A main agent that repeatedly wakes workers and reprocesses its own growing context pays for that context on every turn. The project's stated approach since version 1.1.3 is batching guidance that reduces how often the main agent rolls out, which in turn reduces the cached input tokens the README identifies as a major component of running cost.

Three routes, and the counterintuitive one in the middle

The system offers three modes and expects you to choose per task. The light route is the default and involves no subagents, no workflow and minimal context. The heavy route deploys the full set of workers: a companion, an investigator, a default executor, a senior executor, a tester and an archivist, with the main agent orchestrating. The medium route deploys only the companion, investigator and archivist to assist while the main agent does the production work itself.

The ordering surprise is stated by the README rather than inferred: the medium route burns tokens faster than the heavy route. The reasoning follows from the design. Medium keeps the production work inside the main agent, so the expensive context stays with the expensive participant, while heavy pushes that work out to workers and keeps the orchestrator's own rollout small. Medium is recommended for front end design, visualisation or 3D work, where delegating production is undesirable.

Routes are selected in plain language at the start of a task and persist until changed. The senior executor exists as a fallback for problems that need stronger reasoning than the default executor provides, which is a sensible escape hatch and also an admission that tiering by difficulty does not always guess right.

Project memory lives in a documents directory holding goals, architecture, decisions, progress and the latest session handoff. Version 1.1.17 adjusted which of those the main agent owns, placing a progress file and a latest session file with the main agent while the archivist treats them as closure inputs without editing them during a deployment.

Installation hands the agent a download and asks for elevated permissions

The installation route is unusual and deserves reading before you follow it. You open Codex in your project directory, raise its permission setting, then send the agent a message instructing it to download and extract the latest release archive, verify it against the published checksums file, read the bundled bootstrap document and carry out the installation. After that you restart Codex.

Be clear about what that sequence involves. You are granting elevated permissions and delegating both the download and its verification to the agent. The project does publish a checksums file, which is the right thing to publish, but the check is performed by the same process doing the fetching rather than by you beforehand. Anyone with a policy about where executable content comes from should handle this step by hand instead.

Once bootstrapped, further projects are set up with a single command sent to Codex from the project directory.

bash
codex_workflow --install

That creates the documentation framework through the archivist agent, and the project is ready. A small set of commands covers the rest of the lifecycle: adding project specific preferences, checking for a newer release without installing it, updating, disabling and re-enabling the workflow for the current project, and removing it after a dry run and confirmation.

One upgrade path is broken on purpose and the README says so. Installations still on 1.1.3 cannot move directly to a newer version, because a configure feature was removed, so the old copy has to come out first.

bash
codex_workflow --remove

Python 3.11 or newer is required for the lifecycle operations.

What the benchmark does and does not establish

The repository includes benchmark material, a token report image and a light benchmark directory, and the README claims batching guidance measurably reduces main agent rollout.

It also says, in its own words, that the current benchmark is an initial case study, and links a coverage proposal with ideas for testing more tasks and more providers. That is the correct label for a single case, and it should govern how much weight the charts carry. A token reduction demonstrated on one task shape is a promising signal rather than a general result, and nothing in the repository establishes how the routes compare on work unlike the case measured.

The project does ship something better than a benchmark for day to day purposes: an end of session token report broken down per agent. A user can therefore measure the claim on their own work, which is more useful than any figure published by the author. That is the number to trust, and it is the one to check before deciding heavy routing is paying for itself on your tasks.

Version 1.1.17, published on 2026-09-08, is a useful example of the project's reporting style. It corrects documentation ownership and worker descriptions, and states explicitly that it changes no models, reasoning effort, execution topology, context limits or expected performance. Releases that say when they do not matter are easier to trust when they say something does.

The missing license, and the other reasons to hesitate

The repository has no license. For a tool whose entire purpose is being installed into other people's projects, that is the most consequential fact on the page, and it outweighs the routing design for any company evaluation. Without a license, default copyright applies and no permission to use, modify or redistribute has been granted. This is not legal advice, and the fix is one file, but until it appears the safe reading is that the work is published for inspection rather than cleared for use.

Beyond licensing, the guidance carries assumptions that cost money if they are wrong. The README recommends high reasoning effort for the heavy route and warns that much lower efforts will not save tokens while badly reducing coordination. That is plausible and it is also unfalsifiable from the repository, and it means the cheapest looking configuration is the one the author says will fail.

There is a documentation gap to match. The architecture, lifecycle, ownership and safety analysis lives in a separate breakdown document rather than the README, so an evaluator who reads only the front page will not see how the pieces fit.

Finally, the prerequisites are real: this targets Codex specifically, needs Python 3.11 or newer, and expects you to manage routes yourself. It is not a tool that improves an agent quietly in the background.

The alternative is a harness that already has subagents

The comparison worth making is against an agent harness where orchestration is a first party feature rather than an installed layer, as Claude Code provides with its own subagents and project memory file.

The difference in approach is where the behaviour lives. A built in system is maintained with the harness, updates with it, and cannot drift out of step with the agent it steers. You accept the orchestration model the vendor chose and configure within it. codex_workflow instead installs documents, agents and lifecycle commands into your project, which means the model is inspectable and adjustable, tuned by someone whose stated goal is token cost rather than feature breadth, and pinned to whatever release you installed. It also means you carry the upgrade, as the broken path out of 1.1.3 shows.

Choose the built in route if you want orchestration you never think about. Choose this if your reason for orchestrating at all is spend, you are committed to Codex, and you want the per agent token report to prove the arrangement is working.

What upkeep looks like from outside

The last push was on 2026-09-16, and the project ships a releasing document alongside the release workflow, so the process is written down rather than improvised.

Upgrade handling is built into the tool rather than left to the user, with separate commands for checking whether a newer release exists and for downloading, verifying and installing it. That verification step during update is the same trust arrangement as the initial install, carried out by the tooling instead of by you.

The absence of a license remains the item to watch, because it is the only one a reader cannot work around themselves. Everything else here, the route choice, the reasoning effort recommendation, the single case benchmark, is a decision you can evaluate against your own token report after a week of use.

Editorial conclusion

codex_workflow fits a developer committed to Codex who runs large tasks, watches token spend, and is willing to pick a route per task and check the per agent token report to see whether it paid. Keep it out of company work while the repository has no LICENSE file, and avoid the documented install path if your policy forbids granting an agent elevated permissions to fetch and verify its own payload. Before installing, confirm Python 3.11 or newer is present, and if you are still on 1.1.3, run the removal command first, because the configure feature was dropped and direct upgrades from that version are not supported.

Frequently asked questions

What are the three routes in codex_workflow?

The light route is the default and uses no subagents, no workflow and minimal context. The heavy route deploys companion, investigator, default executor, senior executor, tester and archivist agents under the main agent. The medium route deploys only companion, investigator and archivist while the main agent does the production work.

Why does the medium route in codex_workflow cost more than the heavy route?

The README states medium burns tokens faster than heavy. Medium keeps production work inside the main agent, so its context grows and is reprocessed, while heavy pushes that work out to workers and keeps the orchestrator's own rollout smaller.

Can I upgrade codex_workflow from version 1.1.3 directly?

No. The README states that a configure feature was removed, so installations on 1.1.3 must be uninstalled with the removal command before a newer version is installed.

Can I use codex_workflow at work?

The repository has no license file, so no permission to use, modify or redistribute has been granted and default copyright applies. This is not legal advice, but a company review will likely stop there until the author adds one.

Official sources

  1. Issues
  2. README
  3. Releases
  4. viettran-edgeAI/codex_workflow on GitHub
Community notes

Community notes