Skip to main content

Module codex

Module codex 

Source
Expand description

Native adapter for Codex (codex app-server).

Codex’s app server is JSON-RPC over stdio (experimental, but has a stable and self-describing interface: codex app-server generate-json-schema outputs the complete schema).

Subset used:

  • initialize
  • thread/start → thread.id
  • turn/start (with input)
  • turn/interrupt
  • Notifications: item/agentMessage/delta, item/completed, turn/completed, thread/tokenUsage/updated
  • Approvals (server→client requests): item/commandExecution/requestApproval, item/fileChange/requestApproval

Functions§

is_bwrap_usable
Checks whether bwrap can create user namespaces and sandboxes normally on Linux.
resolve_codex_sandbox
Resolves the sandbox mode used by Codex.
start