Skip to content

[Epic] Codex as a first-class structured engine (parity with Claude) #733

Description

@serge-ivo

Make Codex (and, later, other CLIs) a first-class coding engine on par with Claude: driven through its own structured event stream instead of scraped raw stdout, with the same clarity Claude already has about how it's invoked and who pays. Today Claude is the only structured engine (mode = clientType === "claude" ? "stream-json" : "raw" in headless.ts); every other engine is spawned raw, so its output is noisy/truncated, its spend is unmetered, and its acts are unattributed.

The work

Dependency chain (runner):

Independent (UX / config clarity):

Downstream — consequences fixed once the chain lands (not to be worked directly):

Cross-cutting obligations (don't let these fall through)

Open strategic question

#730 (engine-side resume) vs #693 ("platform owns the conversation" — seed continuity from coding_timeline, demote the engine's own memory). #730 is a deferred-#693 stopgap; if its spike fails, route Codex continuity through #693 instead. Resolve before scheduling #730's follow-up.

Provenance: decomposition + this framing came out of an adversarial 3-lens review (technical accuracy, scope/duplication, UX) on 2026-08-22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3: laterDesign, strategy, or deferred pending a decision or demandcoderThe Coder wedge agent (#68) — Engine, Pilot, Co-pilot, Loop, OverseercoordinationAgent coordination / delegation primitivesenhancementNew feature or requestrunnerpackages/browser-runner + packages/cli — ships only via an npm publish

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions