core-agent-ide/codex-rs/core
Michael Bolin b9bba09819
fix: eliminate runtime dependency on patch(1) for apply_patch (#718)
When processing an `apply_patch` tool call, we were already computing
the new file content in order to compute the unified diff. Before this
PR, we were shelling out to `patch(1)` to apply the unified diff once
the user accepted the change, but this updates the code to just retain
the new file content and use it to write the file when the user accepts.
This simplifies deployment because it no longer assumes `patch(1)` is on
the host.

Note this change is internal to the Codex agent and does not affect
`protocol.rs`.
2025-04-28 21:15:41 -07:00
..
src fix: eliminate runtime dependency on patch(1) for apply_patch (#718) 2025-04-28 21:15:41 -07:00
tests feat: load defaults into Config and introduce ConfigOverrides (#677) 2025-04-27 21:47:50 -07:00
Cargo.toml fix: remove dependency on expanduser crate (#667) 2025-04-25 14:20:21 -07:00
prompt.md feat: initial import of Rust implementation of Codex CLI in codex-rs/ (#629) 2025-04-24 13:31:40 -07:00
README.md feat: initial import of Rust implementation of Codex CLI in codex-rs/ (#629) 2025-04-24 13:31:40 -07:00

codex-core

This crate implements the business logic for Codex. It is designed to be used by the various Codex UIs written in Rust.

Though for non-Rust UIs, we are also working to define a protocol for talking to Codex. See:

You can use the proto subcommand using the executable in the cli crate to speak the protocol using newline-delimited-JSON over stdin/stdout.