Understand the Remodex Multi-Provider Architecture
mainRemodex is designed as a local-first mobile client that can support multiple AI agent providers (e.g., Codex, OpenCode, Claude, Gemini) via a local bridge.
While the transport layer (Relay and Secure Transport) is already provider-agnostic, the runtime protocol layer currently expects a 'Codex-shaped' application protocol. To support other providers, a RuntimeAdapter layer must be implemented within the phodex-bridge to normalize provider-specific events into the Remodex canonical format (threads, turns, items, approvals, and model events).