core-agent-ide/codex-rs/protocol
pakrym-oai 7df9e9c664
Correctly calculate remaining context size (#3190)
We had multiple issues with context size calculation:
1. `initial_prompt_tokens` calculation based on cache size is not
reliable, cache misses might set it to much higher value. For now
hardcoded to a safer constant.
2. Input context size for GPT-5 is 272k (that's where 33% came from).

Fixes.
2025-09-04 23:34:14 +00:00
..
src Correctly calculate remaining context size (#3190) 2025-09-04 23:34:14 +00:00
Cargo.toml fix: fix serde_as annotation and verify with test (#3170) 2025-09-04 10:38:00 -07:00
README.md fix: introduce codex-protocol crate (#2355) 2025-08-15 12:44:40 -07:00

codex-protocol

This crate defines the "types" for the protocol used by Codex CLI, which includes both "internal types" for communication between codex-core and codex-tui, as well as "external types" used with codex mcp.

This crate should have minimal dependencies.

Ideally, we should avoid "material business logic" in this crate, as we can always introduce Ext-style traits to add functionality to types in other crates.