Host parity across OpenCode 1, OpenCode 2 and Pi

Draft
AN
1h ago
+7235-4083

Host parity across OpenCode 1, OpenCode 2 and Pi (Ufuk's rule: every host behaves the same unless a host truly cannot). Collected from a static parity audit; each fix follows the leading host's existing code and comes with a test that failed on main first.

Included so far:

  • Per-message effort on Haiku 5.5, Mythos 5.2, Opus 5 and Mythos 5.1 (the last two by Ufuk's decision, following Anthropic's page rather than Claude Code).
  • OpenCode 2: custom proxy headers only on API-key routes; cache diagnostics as on OpenCode 1 (shared code moved to Core); subscription price zeroing; Prime starts at plugin start (OpenCode 1 Prime now follows live setting changes too).
  • Pi: turn billing lineage; hybrid 20-block bridge marker; header quota merged into local quota; paid-route model aliases through the shared resolver; cache diagnostics; /claude quota refresh, limit editors and lane start.
  • OpenCode 1: keep-warm and thread cache boundary survive restarts; warms gzipped (OpenCode 1 and Pi); warms leave cache diagnostics as on OpenCode 2; under Thalamus, shared routing in every mode, wait-start reports and per-send billing reports.

Still to come on this branch: API-key requests unshaped and ANTHROPIC_INSECURE removed; 5-minute default cache on every host and the OpenCode 1 quota feed removed; Pi state move. Draft until those land and an Athena audit passes.


Summary by cubic

Host parity across OpenCode 1, OpenCode 2, and Pi so each host behaves the same unless it truly cannot, collected from a static parity audit. Each fix follows the leading host's existing code and ships with a test that failed on main first; the architecture and structure docs now match.

Per-message effort

  • Haiku 5.5, Mythos 5.2, Opus 5, and Mythos 5.1 now support per-message effort; Opus 5 and Mythos 5.1 follow Anthropic's page rather than Claude Code by user decision.
  • Changing effort mid-conversation preserves the prompt cache on all three hosts, and forks carry one effort marker at the question.

Parity fixes

  • Paid API-key requests are now unshaped on every host, ANTHROPIC_INSECURE is removed, all three hosts use the five-minute default cache, and the OpenCode 1 quota feed is gone.
  • CacheKeep prewarms no longer send the conversation's previous-message ID on OpenCode 1 and Pi; restore never delays OpenCode 1 or 2 startup, restart scans keep live temp files, and Pi shares the same per-session keep-warm claim.
  • Per-session keep-warm claims survive a wall-clock step during setup and older claims are never retaken on boot-time evidence alone.
  • Cache diagnostics never delay OpenCode 2 or Pi replies; Pi prewarms stay out of the diagnostics chain.
  • OpenCode 2: custom proxy headers apply only to API-key routes; cache diagnostics shared via core; OAuth model prices zeroed; Prime starts at plugin start.
  • OpenCode 1: Prime follows live setting changes; keep-warm and the thread cache boundary survive restarts; keep-warm requests use gzip on OpenCode 1 and Pi; under Thalamus, shared routing in every mode matches OpenCode 2, including provider waits, credential failures, paid fallback, revisits, refusal returns, wait-start and per-send billing reports; a routing ask after a failed attempt no longer waits for capacity inside the request.
  • Pi: turn billing lineage, hybrid 20-block cache bridge marker, header quota merged into the local quota without blocking the stream, paid-route model aliases through the shared resolver (applied only to the paid wire body), paid requests keep Pi's own cache markers, first-prompt and fork lookback, conversation cache diagnostics chained per primary turn (paid, forks, Prime and CacheKeep stay out), /claude quota refresh, limit editors, lane start, and killswitch edits that never alter the switch itself.

Still in draft: the Pi state move.