Skip to content

Agent Harnesses

Explore this section

  • How the OpenAI Codex CLI creates a session, runs a turn, builds the model context, uses memory and instruction files, and exposes and executes tools. Based on reading the codex-rs source.

  • Where the Codex CLI's system prompt comes from, how a session chooses it, what can change it during a session or through agent roles, and where it sits in the request. Based on the codex-rs source, with an August 2026 experiment on a local …

  • How OpenCode creates a session, runs its steps, builds the model context, uses instruction files and other sources, and exposes and executes tools. Based on reading the OpenCode V2 source.

  • How Roomote turns a message into a session, builds the session agent's context, delegates tasks, prepares a sandbox and an OpenCode server for each task, and controls tools, approvals, credentials and memory. Based on reading the Roomote …

  • Analysis of Roomote, a self-hosted cloud coding agent built on OpenCode. Covers its building blocks, how work enters it and how results return, where each part is deployed, and how it maps to the Agent Development Environment.