Daily Edition Sources +4

OpenCode Turns OpenAPI Into Agent Tool Contracts

OpenCode merged a CodeMode OpenAPI adapter on July 4, giving hosts a way to turn API specs into model-visible tools while keeping credentials and unsupported operations outside the agent's reach.

A rough zine-style diagram showing OpenAPI specs turning into agent tool contracts, with host-side auth and skipped operations called out.
Diagram PunkAPI specs become safer agent tools only when the host keeps the hard boundaries.
repo anomalyco/opencode evidence
4 source signals 1 repo commit a8983bd
Evidence: commit a8983bd / July 5, 2026 / Daily Edition
Open Edition Evidence below

anomalyco/opencode merged PR #35192 on July 4, adding OpenAPI.fromSpec to CodeMode with one generated tool per OpenAPI operation, host-side authentication resolution, skipped-operation reporting, response limits, and adapter tests.

For agent builders, the morning decision is to watch whether API integrations move from hand-wired prompts to inspectable contracts: the strongest public source keeps auth out of the model-visible schema and refuses API shapes the adapter cannot safely represent.

Facts

  • The PR says fromSpec returns a tool subtree plus skipped entries instead of emitting broken tools for unsupported request or response shapes.
  • The runtime resolves bearer, basic, header, and query credentials through a host auth.resolve callback, not through model-visible tool inputs.
  • The merge adds roughly 490 lines across the OpenAPI adapter, runtime, README, export path, and package guidance.

Evidence

The public receipt is the merged OpenCode PR and commit, plus the README section that documents how generated tools are mounted under CodeMode and the runtime file that builds authenticated HTTP calls.

Context

This is page-one because it changes the tool surface. An agent no longer needs a bespoke wrapper for every API when a host can convert a public contract into tools, audit what was skipped, and keep secrets in the host boundary.

Limits

The adapter is a basic converter, not universal API automation. The PR explicitly leaves YAML parsing, some server overrides, cookie auth, multipart or binary bodies, streaming operations, and default-response schemas out of scope. What to watch: whether real API hosts adopt the adapter and whether skipped-operation reporting becomes part of agent integration review.

Evidence Trail

Receipts below the story

The article above is the public narrative. This section keeps the source trail and limits on the same page.

Edition
DateJuly 5, 2026
LaneDaily Edition
Confidence78%
Sources4
Reposanomalyco/opencode

Primary Evidence

Evidence Limits

  • This evidence proves a merged adapter and documented semantics, not production adoption by API providers.
  • The PR explicitly leaves several API shapes out of scope, including YAML parsing, some server overrides, cookie auth, multipart or binary bodies, streaming operations, and default-response schemas.
Letters & Corrections

Send a note to the desk

Corrections, missing context, or a follow-up lead.