Codex 应该把精力留给规划、判断和验收,而不是吞完整仓库、反复失败日志和巨大 diff。
IDE Super Worker 2.6.2 给 Codex 增加了一条异步证据通道:把搜索、上下文打包、实现循环和检查交给后台 worker;主线程只接收改动文件、检查结果、可选 diff 与可审计的证据。
默认 WORKER_LITE_LLM=0:read_pack、diff_digest 和 get_artifact_slice 返回确定性的证据,worker 不替主线程做分析、判断或代码审阅结论。证据收集与执行交给 worker,分析、判断和审阅保留给 Codex 主模型。显式设置 WORKER_LITE_LLM=1 只启用仍保留的 failure diagnosis、diff red-team 与 draft 能力;历史 quality/fan-out 模块没有公开 MCP 入口。
适合在大型代码库中反复“读代码 → 改代码 → 跑检查”的工作流。它不承诺任何固定节省比例;实际成本和质量应由项目自己的任务与指标验证。
项目地址:https://github.com/luzmatrix002/ide-super-worker
Codex should spend its context on planning, judgment, and acceptance—not on swallowing a whole repository, repeated failure logs, and giant diffs.
IDE Super Worker 2.6.2 adds an asynchronous evidence lane for Codex. Search, context packing, implementation loops, and checks run in a background worker; the main thread receives changed files, checks, optional diffs, and auditable evidence.
The default is WORKER_LITE_LLM=0: read_pack, diff_digest, and get_artifact_slice return deterministic evidence, so the worker does not make analysis, judgment, or code-review conclusions for the main thread. The worker gathers evidence and executes tasks; the Codex main model analyzes, decides, and reviews. Setting WORKER_LITE_LLM=1 only enables the remaining failure-diagnosis, diff red-team, and draft features; historical quality/fan-out modules have no public MCP entry.
It is built for large codebases with repeated read → edit → test loops. It does not promise a fixed savings percentage—measure cost and quality against your own workload.
Project: https://github.com/luzmatrix002/ide-super-worker
我做了一个给 Codex 用的异步 MCP worker:把大文件阅读、代码修复、反复跑测试这些 冗长工作移到低成本 worker,Codex 主线程只接收改动文件、检查结果和必要的摘要。
它不是“再套一层便宜模型”,而是把任务按风险和成本分流:
search在本地检索,不调用模型;read_pack、diff_digest、get_artifact_slice返回确定性证据,分析和审阅由 Codex 主模型完成;start在后台执行读代码、修改和测试循环;- 主线程只审阅压缩证据,而不是吞完整日志和大 diff。
历史 quality/fan-out 模块没有公开 MCP 入口;WORKER_LITE_LLM=1 只启用仍保留的
failure diagnosis、diff red-team 与 draft。默认职责边界是 worker 取证与执行,Codex 主模型分析、判断和审阅。
适合需要在大仓库里反复读、改、测,又不想让主线程被中间过程塞满的场景。项目和完整的 中英文说明:https://github.com/luzmatrix002/ide-super-worker
发布时不要宣称“保证省钱”或“质量不降”。更准确的说法是:它通过返回压缩证据,减少大规模 读/改/测循环中需要进入 Codex 主线程的中间上下文;实际成本和质量需由真实任务评估确认。
IDE Super Worker keeps Codex on the high-value planning, analysis, judgment, and review path, while pushing deterministic search and evidence packing plus repair loops and checks into a lower-cost worker lane.
The current build adds:
- Default compact worker results, with diffs opt-in instead of automatic.
- Deterministic
read_pack,diff_digest, andget_artifact_sliceevidence for Codex to assess, plus zero-LLMsearch. WORKER_LITE_LLM=1only enables remaining failure-diagnosis, diff red-team, anddraftfeatures; historical quality/fan-out has no public MCP entry.- JSONL metrics plus
npm run statsfor real route/model token accounting. - Primary/fallback gateway routing with official Anthropic fallback disabled unless explicitly allowed.
- Bounded check output, failure digests, cache-friendly prompts, and controlled revise escalation.
- Optional worktree isolation for parallel jobs.
Sanitized live acceptance snapshot:
- Build, core tests, smoke tests, and network doctor passed.
- Primary and fallback gateways were reachable.
- Historical pre-removal gateway validation reached the configured primary model.
- The same historical validation used the fallback when the primary key was intentionally invalid.
- Packet capture during that opt-in validation showed primary-gateway packets and zero official Anthropic packet events.
- Metrics landed in the configured JSONL file and
npm run statsaggregated them without extra arguments.
Make Codex stop eating giant diffs: delegate heavy code work to a cheaper async worker and return only compact, verified results.
让 Codex 少吃大文件和大 diff:把重的读代码、修复、测试循环交给低成本异步 worker,主线程只拿压缩后的证据和结果。
Use this GitHub-ready visual when posting or embedding the project:
Codex is excellent at orchestration and review. It is wasteful to make the main thread ingest every file read, every failed repair attempt, and every huge diff.
IDE Super Worker adds a cheaper background lane. Codex sends a small MCP request, Claude Code runs the task locally, the adapter routes model calls to an OpenAI-compatible gateway, and Codex gets back the clean part: changed files, checks, logs, and an optional diff.
It is built for people who want more AI coding throughput without turning every subtask into a premium-context bonfire.
The stronger claim is not only "cheaper model." It is "shorter route."
IDE Super Worker keeps each class of work in its cheapest safe lane:
| Work type | Common competing flow | IDE Super Worker flow |
|---|---|---|
| Find code | Ask an agent to search and summarize. | search does bounded local repo search with 0 LLM calls. |
| Explain files | Start a full edit-capable agent loop. | read_pack returns deterministic read-only evidence for Codex to analyze. |
| Review changes | Send large diffs back to the premium thread. | diff_digest packages evidence and get_artifact_slice fetches details; Codex makes the review judgment. |
| Implement fixes | Keep the main Codex thread inside the repair loop. | start runs async; Codex receives compact evidence. |
| Verify result | Trust a long transcript. | Scoped patch checks, command checks, and routing-contract tests gate the result. |
Use this comparison carefully: frame competitors as workflow categories, not named projects. The point is efficiency architecture, not model-name drama.
Before:
Codex -> reads repo -> edits -> tests -> reads diff -> burns context
After:
Codex -> Worker -> cheap model does heavy loop -> Codex gets summary/checks
small request
Codex --------------------------------> MCP Worker
^ |
| compact result | launches
| changed_files + checks v
+---------------------------------- Claude Code
|
| adapter
v
cheap OpenAI-compatible gateway
flowchart LR
A["Codex / 主线程<br/>plan, decide, review<br/>规划、决策、审查"]
B["MCP Worker<br/>async job lane<br/>异步任务通道"]
C["Claude Code CLI<br/>read, edit, test<br/>读代码、改代码、跑检查"]
D["Local adapter<br/>Anthropic to OpenAI<br/>本地协议转换"]
E["Cheap gateway model<br/>OpenAI-compatible<br/>低成本兼容模型"]
F["Compact proof<br/>changed files + checks<br/>改动文件 + 检查结果"]
A -->|"small request<br/>小请求"| B
B -->|"launch<br/>启动"| C
C -->|"model calls<br/>模型调用"| D
D -->|"chat completions<br/>兼容接口"| E
C -->|"diff + logs<br/>补丁 + 日志"| B
B -->|"verified evidence<br/>验证证据"| F
F -->|"review payload<br/>审查材料"| A
- Lower Codex token intake by returning compact evidence instead of full intermediate context.
- Use deterministic evidence packs for bulk code reading and cheaper gateways for execution and repair loops.
- Use zero-LLM
searchbefore model calls, so discovery costs nothing. - Keep judgment in Codex:
read_pack,diff_digest, andget_artifact_slicecollect deterministic evidence without worker-LLM conclusions. - Keep safety rails: sandbox root, scoped patch checks, secret redaction, and permission controls.
- Keep quality rails: test commands, deterministic result assessment, and bounded auto-revise.
- Use
read_packfor fast deterministic read-only evidence without launching a full agent loop.
我整理了一个 Codex 省上下文的 MCP worker。
问题很简单:Codex 适合做规划、判断和审查,但读一堆文件、反复修测试、吞大 diff 很费主线程上下文。
这个 worker 把中间那段重活拆出去:Codex 发一个小请求,后台用 Claude Code 跑任务,通过本地 adapter 把模型流量转到 OpenAI 兼容网关。最后 Codex 只拿改动文件、检查结果、日志和可选 diff。
适合三类场景:
- 大仓库里先搜索、再读关键文件。
- bug 修复需要多轮跑测试。
- 代码 review 由 Codex 主模型依据结构化证据完成,不必把整段 diff 默认塞回主线程。
当前重点是可运营的证据与执行通道:read_pack、diff_digest、get_artifact_slice、shell digest、stats:gate、工具错误熔断、可靠性档位、技能包校验,以及公开发布前的脱敏清单。
I built IDE Super Worker to keep Codex out of the noisy middle of coding tasks.
Codex is best at planning, deciding, and reviewing. It is expensive to make the main thread read every file, watch every failed fix, ingest every test log, and digest every large patch.
This worker adds a cheaper async lane. Codex sends a small MCP request, Claude Code runs the local loop, the adapter routes model calls to an OpenAI-compatible gateway, and Codex receives compact proof: changed files, checks, logs, and an optional diff.
The current release focuses on operations and trust: read_pack, diff_digest, get_artifact_slice, worker-side shell digests, stats gates, tool error containment, reliability tiers, skill validation, and a release checklist for public sanitization.
| Phase | Message | Proof to show | Channel |
|---|---|---|---|
| Day 1 | "Codex should review proof, not swallow every intermediate step." | README flowchart, include_diff:false result, passing tests. |
GitHub README, pinned X/LinkedIn post. |
| Day 3 | "Search and deterministic evidence collection do not need a full agent loop." | search, read_pack evidence examples. |
Short thread, Discord MCP communities. |
| Day 7 | "Worker output is auditable." | diff_digest, get_artifact_slice, shell digest, stats:gate. |
Demo video or annotated terminal screenshots. |
| Day 14 | "Operational guardrails matter more than model-name hype." | sandbox root, scoped patches, secret redaction, circuit breaker. | Blog post, Hacker News / Reddit where allowed. |
Do not claim guaranteed cost reduction for every task. Safer wording: "reduces premium main-thread context intake on large read/edit/test loops by returning compact evidence instead of full intermediate context."
This is not a chatbot wrapper. It is cost-control infrastructure for AI coding:
- Codex stays as the high-quality planner/reviewer.
- Cheap models do the bulky implementation labor.
- Tests and scoped patch checks decide whether the worker earned trust.
- Large diffs become optional instead of the default payload.
The pitch is simple: keep the expensive brain clean; move repetitive muscle work to a cheaper lane.
Use one of these snippets when you need the efficiency angle to land quickly:
- Most AI coding setups make the best model do everything: search, read, edit, retry, test, and digest the diff. IDE Super Worker splits the route so Codex only handles the decisions.
- A cheaper model wrapper lowers unit price, but it does not fix workflow waste. This worker removes waste first: zero-LLM search, deterministic read-only evidence, async implementation, compact results.
- The main speedup is not magic. It is queue discipline: discovery stays local, evidence stays deterministic and compact, repair loops run in the background, and Codex reviews the proof.
- Instead of asking a premium agent to watch every step, make it inspect the receipt: changed files, checks, logs, optional diff.
Cost-saving async MCP worker for Codex: delegate heavy Claude Code loops to cheap OpenAI-compatible gateways and return compact verified results.
mcp, codex, claude-code, ai-coding, openai-compatible, developer-tools, cost-optimization, typescript
I built an MCP worker for Codex that changes where the expensive tokens go.
The problem: Codex is great at planning and review, but implementation loops are noisy. Reading lots of files, trying fixes, running tests, and ingesting big diffs can burn premium context fast.
The fix: Codex delegates the noisy middle to a background worker.
The worker launches Claude Code, routes model traffic through a local Anthropic-to-OpenAI adapter, and sends the heavy work to cheaper compatible gateways.
Codex gets back the part it actually needs: changed files, checks, logs, and an optional diff.
Useful pieces:
- async
start/get/tail/wait/canceltools read_packfor deterministic read-only evidence packs- zero-LLM
searchfor fast repo discovery diff_digestplusget_artifact_sliceevidence for the Codex main model to assessWORKER_LITE_LLM=1only for remaining failure-diagnosis, diff red-team, anddraftfeatures- 429/5xx retry handling
include_diff:falseto avoid dumping large patches into the main thread- token usage JSONL for real cost tracking
- scoped patch checks and secret redaction
- optional fallback gateway and worktree isolation
If your AI coding workflow is bottlenecked by cost, quota, or long context churn, this is a small piece of plumbing that can buy back a surprising amount of headroom.
Diagram:
Codex planner -> MCP worker -> Claude Code -> cheap gateway
Codex reviewer <- changed files + checks <- worker
Efficiency lane:
search: local, zero LLM
read_pack: deterministic read-only evidence
start: async implementation loop
diff_digest/slice: deterministic diff evidence for Codex
wait: compact proof back to Codex
- Codex Desktop power users.
- Developers using Claude Code plus cheaper gateway models.
- Teams trying to reduce AI coding cost without giving up verification.
- MCP builders looking for a practical async worker pattern.
- GitHub README plus Topics.
- X/Twitter launch thread with before/after workflow diagram.
- Hacker News "Show HN" if the repo includes a reproducible demo.
- Reddit: r/LocalLLaMA, r/ClaudeAI, r/OpenAI, r/programming where rules allow.
- Discord communities around MCP, Codex, Claude Code, and local/cheap model gateways.
- A short demo video: one task with
include_diff:false,tail, and checks passing.
- Show Codex starting a worker job with
include_diff:false. - Show
tailstreaming progress while Codex stays clean. - Show
waitreturning changed files and checks. - Show metrics JSONL with gateway token usage.
- Show a
read_packcall returning deterministic evidence without a worker-LLM judgment call.
- Stop feeding Codex giant diffs.
- Give Codex a cheaper worker lane.
- Keep Codex for decisions. Move bulk code work elsewhere.
- The async worker that keeps Codex context clean.
