Open-source project
fendouai/CodexSaver avatar
fendouai/CodexSaver

CodexSaver: routing Codex work to cheaper workers through MCP

Make Codex cheaper without making it dumber with DeepSeek.

617 stars51 forksPythonLicense varies

At a glance

What is it?
CodexSaver is an MCP tool that keeps Codex for judgment and hands low-risk throughput work to smaller workers. The README claims 45% to 100% estimated savings on five bounded tasks, but the licence is undeclared and the last push was on 2026-05-31.
Who is it for?
Adopt CodexSaver if your Codex sessions are dominated by explanation, documentation, search and bounded test work, and you are willing to keep architecture, security and final review in Codex. Skip it if your work is mostly auth, payments, permissions or destructive migrations, because the README puts those outside the tool's strong lanes.
Can I use it commercially?
The repository metadata does not identify a licence. Check the project’s published terms and any component-specific licences before reuse.
Is it still maintained?
Yes. The repository last received commits 178 days 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 November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • fendouai/CodexSaver617 ★ · -28
Star history
Repository2026-09-212026-11-24
fendouai/CodexSaver645617

-28 Stars in the last 64 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem CodexSaver targets: expensive judgment spent on cheap throughput

Most coding sessions mix two kinds of work that have very different costs. One is judgment: deciding an architecture, weighing an ambiguous requirement, reviewing a security-sensitive change. The other is throughput: explaining a file, scanning a repository, writing a docstring, generating a bounded test. Both run through the same expensive model by default.

CodexSaver's stated product thesis is to split those apart. The README puts it as a rule: use the expensive model for judgment, the cheaper model for volume, and never confuse the two. The project is aimed at engineers already using Codex who want the routine portion of a session handled elsewhere without giving up Codex's role as the final reviewer.

The scope is deliberately narrow. The README says CodexSaver wins first on readonly specialists such as explanation, search and review, and wins second on bounded, verifiable patch work. It is not positioned as a general replacement for Codex, and the README says so directly: CodexSaver is not trying to replace Codex. That narrowness is the most useful thing about the project description, because it tells you where the authors expect it to fail.

How the MCP routing works: work packets, sandbox, verifier, Codex fallback

CodexSaver runs as an MCP tool, so Codex calls it the way it calls any other MCP server. The README describes a global-by-default Codex install, which means one MCP registration serves every workspace rather than one per project.

The routing decision is made before any external model call. The router decides whether a task is safe enough to delegate; if it is not, the task stays with Codex. The README names three interaction states that appear in tool responses: preview, which is routing preview only with no external model call; delegated_execution, which means a delegated run completed; and codex_takeover, which means the task stayed with Codex because risk was too high or the task was ambiguous. Tool responses carry an interaction block with a route_label such as route=pi_agent task_type=write_tests risk=low, so the decision is visible rather than silent.

The v2 lane adds proof to delegation. Instead of a loose instruction, Codex hands the worker a bounded work packet containing the exact goal, allowed files or globs, forbidden paths, acceptance criteria, allowlisted commands, and maximum iterations and diff size. The worker proposes a patch, but CodexSaver applies it only inside a temporary sandbox, and accepts it only when it stays within policy and the allowlisted checks pass. There is also a short-circuit: if the task is already satisfied, v2 returns preflight_satisfied=true without spending a worker model call at all.

The v3 lane extends this from one worker into a small orchestrated set of specialists. Codex still owns judgment and final review. CodexSaver plans a work graph, readonly specialists can run in parallel, and bounded patch specialists reuse the v2 sandbox and verifier path. Patch aggregation is described as conservative and falls back to Codex on overlap. That fallback is the interesting design choice: when two specialists touch the same ground, the tool gives up on automatic merging rather than guessing.

Installing CodexSaver and running a first bounded work packet

The package is published as codexsaver with a console entry point of the same name, and pyproject.toml declares Python 3.10 or newer with no runtime dependencies. The README does not give a full install command line, so the safest reading is to install the package from the repository and then run the CLI. Provider setup is described as one-time and local, stored in ~/.codexsaver/config.json.

After install, the CLI exposes a work-packet subcommand. The README gives this example, which asks a worker to create a single documentation file and verifies it with an allowlisted command:

bash
codexsaver work-packet \
  "Create docs/v2-smoke.md with one sentence." \
  --files README.md \
  --allowed-file docs/v2-smoke.md \
  --acceptance "docs/v2-smoke.md exists in sandbox" \
  --allowed-command "python -c \"from pathlib import Path; assert Path('docs/v2-smoke.md').exists()\"" \
  --workspace .

Note the shape of the flags. --files names what the worker may read, --allowed-file names the single path it may write, --acceptance states the condition, and --allowed-command supplies the check that must pass inside the sandbox. If the check fails, the patch is not applied. The same capability is exposed as an MCP tool under the name codexsaver.delegate_work_packet, which is what Codex calls when it decides a task is delegable.

One practical expectation to set: the README states that the first call may return a preview rather than a delegated run. That is the routing preview state, and it means no external model was called. You are looking at the router's decision, not a result.

Where CodexSaver is the wrong tool

The README is unusually explicit about the lanes it does not serve, and those exclusions are worth taking at face value. Auth, security, payment and permissions work is listed as a weak lane. So are destructive migrations, ambiguous architecture decisions, multi-file behavioral changes with weak verification, and anything that still needs Codex-level judgment at every step.

The reason follows from the mechanism. The value of a bounded work packet comes from the verifier being able to check the result: changed files, diff size, allowlisted commands, failures. When the correctness of a change cannot be expressed as an allowlisted command, the verifier has nothing to stand on, and the sandbox apply step becomes a formality rather than a gate. A multi-file behavioral change with weak verification is exactly that case.

There is a second limitation that comes from the repository rather than the README. The README's v3 status section is truncated mid-sentence in the published file, so the current state of the orchestration lane is not fully documented. Anyone planning to rely on parallel readonly specialists should read the rest of that section in the repository before committing to it. The v2 single-task lane is the mature one by the README's own account.

Finally, the licence is undeclared. The repository layout lists no LICENSE file, and pyproject.toml carries no license field. That is a real constraint for any organisation with licence review, and it cannot be resolved from the documentation.

CodexSaver against plain Codex and against a single cheap provider

The obvious alternative is not using CodexSaver at all: keep every task in Codex. That is simpler and has no config file, no MCP registration and no worker provider to maintain. The difference is cost and latency on throughput work. The README's own framing is that Codex is used for judgment, not repetitive throughput, and that keeping the expensive model away from routine work is where the savings come from. If your sessions are mostly judgment, plain Codex is the better tool and CodexSaver adds a layer you will not use.

The closer alternative is direct delegation to a single cheap provider, such as calling DeepSeek yourself for explanation or test generation. CodexSaver keeps DeepSeek and other LLM providers available for what it calls legacy v1/v2 provider-backed delegation, so that path still exists inside the tool. The difference in approach is the safety envelope. A direct provider call returns text you then apply by hand. CodexSaver wraps the same kind of call in a work packet with allowed files, forbidden paths, an allowlisted command and a sandbox apply step, and it returns an interaction block naming the route and risk level. Whether that envelope is worth the extra configuration depends on whether you were applying provider output unverified.

On the worker side, Pi Agent is the default v3 worker, with automatic discovery for other local Agent Card workers according to the README. That discovery mechanism is the part to check if you already run a local agent you would rather use.

Maintenance, releases and what the licence silence costs you

The repository is not archived, and the last push was on 2026-05-31. The most recent release is v0.3.6, tagged on 2026-05-20, and pyproject.toml declares version 0.3.6, so the release and the manifest agree. The gap between the last push and the latest release is short, but there has been no push in the months since, so treat this as a project to evaluate at a point in time rather than one with a visible ongoing cadence.

Upgrade cost looks low on the surface. The package declares no runtime dependencies, and the Python floor is 3.10. The moving parts you would actually maintain are the MCP registration in Codex, the one-time provider config at ~/.codexsaver/config.json, and whichever worker you point it at. Since the README describes the Codex install as global by default, an upgrade touches every workspace at once, which cuts both ways: one change to make, and one change that can break every workspace.

On licensing, the honest statement is that there is nothing to read. No licence identifier appears in pyproject.toml and no licence file appears in the top-level repository listing. I am not giving legal advice here, only the factual position: without a declared licence, the terms under which you may use, modify or redistribute the code are not stated in the repository. That is a question for whoever handles licensing in your organisation, and it is the first thing to resolve before internal adoption.

Editorial conclusion

Adopt CodexSaver if your Codex sessions are dominated by explanation, documentation, search and bounded test work, and you are willing to keep architecture, security and final review in Codex. Skip it if your work is mostly auth, payments, permissions or destructive migrations, because the README puts those outside the tool's strong lanes. Before installing, verify two things in the repository: whether a licence file exists, since none is declared, and what the v3 orchestration lane currently supports, since the README truncates that status section.

Frequently asked questions

How can I save tokens in Codex with CodexSaver?

CodexSaver routes low-risk throughput work to a cheaper worker instead of Codex, and the README says v2 reached 45% to 100% estimated savings on five bounded tasks. It also short-circuits when a task is already satisfied, returning preflight_satisfied=true without spending a worker model call.

Is CodexSaver free to use?

The repository does not declare a licence: pyproject.toml has no license field and no licence file appears in the top-level listing. The code is publicly readable, but the terms of use are not stated, so treat that as unresolved rather than assume it is free.

What does CodexSaver need to run?

It requires Python 3.10 or newer and declares no runtime dependencies. The README describes a one-time local provider setup in ~/.codexsaver/config.json and a global-by-default Codex MCP install.

Which tasks should I not delegate with CodexSaver?

The README lists auth, security, payment and permissions, destructive migrations, ambiguous architecture decisions, and multi-file behavioral changes with weak verification as weak lanes. Those stay with Codex, and the router can also return codex_takeover when risk is too high or the task is ambiguous.

Official sources

  1. fendouai/CodexSaver on GitHub
  2. Issues
  3. README
  4. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/fendouai-codexsaver.svg)](https://hysenlabs.com/projects/fendouai-codexsaver)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/fendouai-codexsaver.svg)](https://hysenlabs.com/projects/fendouai-codexsaver)

Was this useful?