clodex-ide
Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.
它通过将补丁重构移出模型输出实现可复现的 token 节省,使用约束语法消除无效工具调用,并与 Codex CLI 及其沙箱无缝集成。
A Codex Responses router that lets agents edit with compact selectors and replacement text instead of emitting full patches.
hpatch-router sits between Codex and the Responses API. It replaces the Code Mode apply_patch surface with constrained functions.hpatch, resolves successful scripts against the declared workspace, and hands Codex a real apply_patch carrier so sandbox checks and the normal diff UI remain intact. The repository also includes the standalone hpatch CLI and reusable Go engine used by the router.
TL;DR:
| Goal | Start here |
|---|---|
| Route Codex edits through hpatch | Install and configure the Codex router |
| Make Codex prefer hpatch | Override the base instructions |
| Inspect measured token savings | Metrics, then run hpatch gain |
| Use the engine without Codex | Standalone CLI |
| Read the full editing contract | hpatch --help, hpatch --tool-help, doc/spec/interface.md |
A direct Code Mode edit makes the model repeat patch framing, old context, replacement text, and the JavaScript carrier. The router moves patch reconstruction out of model output:
flowchart LR
subgraph output["Alternative model-output payloads"]
H["hpatch pathfunctions.hpatch + selectors + replacement"]
A["apply_patch baselinefunctions.exec + JavaScript carrier+ old context + replacement + patch framing"]
end
subgraph router["Router and Codex after model output"]
B["Router reads the immutableworkspace baseline"]
C["Router generates theapply_patch envelope"]
D["Codex applies the patchsandbox checks + normal diff"]
end
H --> B --> C --> D
A --> D
The patch is not eliminated: the router generates it after inference. Savings are the difference between the two model-output payload estimates shown above. State reports, rejection diagnostics, and the net cost of installing the hpatch tool definition while removing the Code Mode apply_patch section are tracked separately as input overhead. These are reproducible GPT-5 token estimates, not provider billing totals.
For an 11-line function replacement, hpatch asks the model for this:
functions.hpatch
in parser.go
rsel 50:60
type
Compact, editor-like file edits for agents: select text, type the change, skip rewriting full patches.
根据分类、Topic 和编程语言匹配的相似项目。
Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.
Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.
Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.