kcode-codex-runtime-v2 0.1.0

Native dynamic-tool turns through the Codex app-server protocol
Documentation
  • Coverage
  • 100%
    61 out of 61 items documented0 out of 0 items with examples
  • Size
  • Source code size: 45.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.43 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DavidVorick

kcode-codex-runtime-v2

kcode-codex-runtime-v2 runs standard multi-step Codex turns through the app-server JSON-RPC protocol. A caller supplies dynamic function schemas, receives function calls as events, returns their results, and receives the terminal assistant message without inventing a text tool protocol.

The runtime uses ChatGPT login from the configured Codex executable. It removes API-key environment variables, accepts an optional sanitized model catalog, requests read-only/never-approve operation, disables automatic compaction, and disables Codex web search, MCP servers, and optional built-in agent features. Application tools remain owned and executed by the caller.

Every JSONL record written by the runtime is emitted verbatim as AgentEvent::ProviderInput. Consumers can therefore persist the exact client-to-Codex transport input they control. Codex or the upstream model may add instructions or metadata internally; this crate cannot expose bytes it never receives.

See Documentation.md for the API and Specification.md for normative behavior.