2026-11-27 16:21 UTC

Botiverse releases OAR, a shared API for coding-agent runtimes

state: expiredheat: mediumuncertainty: mediumrelevance: mediumagent-interoperability agent-harnesses developer-infrastructurebotiverse

What is this?

OAR (Open Agent Runtime) is an Apache-2.0 TypeScript project from Botiverse that provides a shared programming interface for coding-agent runtimes. Its GitHub documentation lists support for multiple harnesses, including Claude Code, Codex, Cursor, Grok Build, OpenCode, Pi and Qwen Code, with sessions, event streams, control operations, subagents and runtime utilities. The project presents itself as available now; search results also show an npm package, but no independent evidence here establishes adoption, reliability or real-world usage.

Why it matters

If it works as documented, OAR could let developers build agent workspaces and other applications once, then connect them to different coding-agent harnesses rather than reimplementing each integration. That could lower integration costs and make it easier to switch or combine agents. Its impact depends on how faithfully the shared API handles differences between runtimes and whether developers adopt it; the supplied evidence is primarily the project's own documentation.

Current assessment

New: Botiverse's OAR repository describes a provider-independent interface for coding-agent runtimes, and search results show a published @botiverse/oar npm package (version 0.16.0 in the result). The project documents a common Session API, attributed events and raw records, typed control responses, resumable sessions, MCP tool connections, subagents, browser-oriented UI projections, and utilities for querying runtime installation, models, account usage and tools. It lists numerous supported runtimes, while also documenting exceptions, runtime-specific requirements and options that must be refused rather than silently ignored. The package is ESM-only; its Node entry requires Node.js 24+, and it is Apache-2.0 licensed. These are project claims and documentation, not independently verified capability or adoption evidence. Potential significance: a common integration layer could reduce the cost of building agent products across providers and give developers more flexibility to switch or orchestrate harnesses. Uncertainty: implementation quality, completeness of runtime parity, maintenance, provider compatibility changes and uptake are not established by the supplied sources. Search results include an unrelated project also named OAR; the relevant entity here is github.com/botiverse/oar.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

09-29 14:00⭐ origin echo-reconstructedThe original artifact is the OAR GitHub repository. Its README describes OAR as “a provider-independent programming interface for coding-age
Botiverse (repository; original author not individually identified on the page) on github (echo) · attributed from hn.story.50288008
—
10-29 12:41first on hacker news · published · +718.7hProgramming interface for all agent harnesses
xxchan22
—
10-29 12:41amplified on hacker news 👑hn.story.50288008
xxchan22
peak 1 · 0 comments · 104% of case engagement
10-29 13:28our radar first saw it · +719.5hdiscovery anchor: hn.story.50288008—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnProgramming interface for all agent harnesses
Retrieved article excerpt

Open article · Retrieved 2026-10-29T13:30:05.075173+00:00

# OAR - *programming interface for all agent harnesses*

[OAR logo](https://github.com/botiverse/oar/blob/main/assets/logo.png)

OAR (**O**pen **A**gent **R**untime) is a provider-independent programming interface for coding-agent runtimes: a solid foundation for building agent workspaces and other applications.

**Delete harness logic and focus on outcomes and UX.**

## Supported runtimes

|  |  |  |  |  |  |  |  |  |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [Antigravity](https://github.com/botiverse/oar/blob/main/docs/runtimes/antigravity.md) | [Claude Code](https://github.com/botiverse/oar/blob/main/docs/runtimes/claude.md) | [Codex](https://github.com/botiverse/oar/blob/main/docs/runtimes/codex.md) | [Cursor](https://github.com/botiverse/oar/blob/main/docs/runtimes/cursor.md) | [Grok Build](https://github.com/botiverse/oar/blob/main/docs/runtimes/grok.md) | [Kimi Code](https://github.com/botiverse/oar/blob/main/docs/runtimes/kimi.md) | [OpenCode](https://github.com/botiverse/oar/blob/main/docs/runtimes/opencode.md) | [Pi](https://github.com/botiverse/oar/blob/main/docs/runtimes/pi.md) | [Qwen Code](https://github.com/botiverse/oar/blob/main/docs/runtimes/qwen.md) | [Qoder](https://github.com/botiverse/oar/blob/main/docs/runtimes/qoder.md) |

[Pi Durable](https://github.com/botiverse/oar/blob/main/docs/runtimes/pi-durable.md) also runs through a host-owned Harness,
including in a browser via `@botiverse/oar/pi-durable` and the portable
core in `@botiverse/oar/browser`. The host installs its optional native peers.
Try the [browser demo](https://github.com/botiverse/oar/blob/main/apps/pi-durable/README.md) with `pnpm durable-demo`.

## Library

One API drives every runtime: swap `"claude"` for `"codex"`, `"grok"` or
`"pi"` (with a model it has) and the code stays the same. An option a
runtime cannot honor is refused before anything opens, never silently
dropped.

```
import { defaultRuntimes, promptAndWait } from "@botiverse/oar";

const claude = defaultRuntimes.require("claude");
const installation = await claude.installation?.();
if (installation?.kind !== "available") throw new Error("claude is not installed");

const session = await claude.session(installation, {
  cwd: process.cwd(),
  model: "sonnet",
  effort: "high",
  appendSystemPrompt: "Run the tests before you say you are done.",
  mcpServers: [{ name: "fs", command: "npx", args: ["-y", "@modelcontextprotocol/server-filesystem", "."] }],
});

session.events((event) => {
  // Every event says which agent it came from: [] is the root, a subagent has its own path.
  const who = event.agentPath.length === 0 ? "" : `[${event.agentPath.join(" > ")}] `;
  switch (event.kind) {
    case "text_delta": if (who === "") process.stdout.write(event.text); break;
    case "tool_call_started": console.log(`${who}${event.tool}`); break;
    case "turn_ended": console.log(`${who}${event.outcome.kind}`); break;
  }
});

const run = promptAndWait(session, "Find and fix the flaky test", { timeoutMs: 600_000 });
// Meanwhile, from your UI: steers the running turn, or queues it where the runtime cannot steer.
await session.deliver("Leave the snapshots alone.");
console.log(await run);
console.log(session.status().value, session.usage().value.total, session.contextUsage().value);
await session.dispose();

// Later, even from another process: the same conversation, picked up where it stopped.
const resumed = await claude.session(installation, { cwd: process.cwd(), resume: session.id });
```

Hand work to other runtimes as subagents; each report wakes the session
that is waiting for it:

```
import { createSubagents, formatReport, reportOrigin } from "@botiverse/oar/agents";

const crew = createSubagents({ maxRunning: 4 });
crew.onReport((report) => {
  void resumed.deliver(formatReport(report), { origin: reportOrigin(report) });
});
await crew.spawn({ runtime: "codex", task: "Review the diff on this branch for race conditions" });
await crew.spawn({ runtime: "pi", task: "Write the changelog entry for this branch" });
```

What else a session gives you:

- **Every fact, attributed.** `events()` is one `Event` per fact (native user
  message echoes, text, reasoning, tool calls with their later input,
  progress, end and any exit code the runtime reports, background tasks,
  turns, usage, model, effort,
  compaction, retries, app requests, control rejections, the process exit),
  each with `seq` and `agentPath`. `{ coalesceText: true }` gives text in
  blocks. `rawEvents()` and `records()` keep every native payload verbatim.
- **Control with honest answers.** `prompt`, `steer`, `queue`, `withdraw`
  and `abort` each answer accepted or rejected with a typed code (`busy`,
  `no_active_turn`, `runtime_exited`, …); where input landed is read from
  the events, never guessed.
- **Your own tools on any runtime.** `serveMcpTools` serves tools your host
  implements as an MCP server a session attaches like any other; replace
  the list mid-session where `Runtime.mcpToolsListChanged` says the running
  session sees it ([reference](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#host-served-tools)).
- **Native goals where supported.** Opt in with `goals: true`, check
  `Session.goal`, and observe native goal snapshots without a host continuation
  loop ([contract](https://github.com/botiverse/oar/blob/main/docs/spec/goals.md)).
- **Projections for UIs.** `@botiverse/oar/observe` folds records into a
  conversation (`reduceConversation`, `viewOf`), status, tasks and stalls,
  with no Node imports, so it runs in a browser.
- **Recording and tests.** `openVoyage` writes a session's records to a
  JSONL log as they happen, so the same folds can read it back later, and
  `@botiverse/oar/testing` gives a scripted runtime with real `Session`
  semantics and no binary or login.

The [package README](https://github.com/botiverse/oar/blob/main/packages/oar/README.md) lists the public entry points.
`defaultRuntimes` holds the built-in Node runtimes; `@botiverse/oar/runtimes/<id>`
loads one of them without the others. Cursor needs the SDK you install and hand
over: `createRuntimeRegistry([...defaultRuntimes.list(), createCursorRuntime({ sdk: () => import("@cursor/sdk") })])`
([why](https://github.com/botiverse/oar/blob/main/docs/runtimes/cursor.md#installation-and-account-usage)). Pi Durable needs
`createPiDurableRuntime({ harness, models })` with the host's already-open Harness
and its Models.

## Handy utilities, no session needed

OAR also offers a set of handy utilities you can use without running an
agent at all: is it installed, is it signed in (and sign it in or out),
which account and how much quota is left, which models it can run, is
there an update (and install it), what skills and tools it has. One API
covers every supported runtime, so a dashboard, a setup wizard or a quota
monitor needs no per-runtime code.

```
import { defaultRuntimes } from "@botiverse/oar";

for (const runtime of defaultRuntimes.list()) {
  const installation = await runtime.installation?.();
  if (installation?.kind === "available") {
    const [usage, models, update] = await Promise.all([
      runtime.accountUsage?.(installation),
      runtime.listModels?.(installation),
      runtime.checkUpdate?.(installation),
    ]);
    console.log(runtime.id, usage?.kind, models?.kind, update?.kind);
  }
}
```

- **Orientation:** `orient(defaultRuntimes)` combines installation and evidenced
  local account metadata. Choose `depth: "account"` for native credential/usage
  I/O, or `"models"` for catalogs; `usability(snapshot)` projects readiness.
  Partial failures retain their own status and time
  ([reference](https://github.com/botiverse/oar/blob/main/docs/spec/orientation.md)).
- **Installation:** `installation()` finds the runtime on this machine and
  reports its version, with no account or network calls. When PATH found
  it, `shadowed` lists the other copies on PATH after it, which never run.
- **Install:** `installPlan()` says what installing a runtime would run (the
  vendor's documented installer, with its source page) or why nothing would
  run, and `install()` runs it for a runtime not found, judged by
  `installation()` afterwards (claude, codex, grok, kimi, and opencode's
  `v1` or `v2` line as the host chooses; [reference](https://github.com/botiverse/oar/blob/main/docs/spec/install.md)).
- **Login:** `login()` signs a runtime in through its own login without a
  terminal: it relays the sign-in URL or device code, and a code the person
  pastes back goes to the runtime only. `authStatus()` says whether it is
  signed in, and `logout()` signs it out through its own logout (claude,
  codex, cursor; [reference](https://github.com/botiverse/oar/blob/main/docs/spec/login.md)). oar never handles the
  tokens.
- **Account usage:** `accountUsage()` reads the plan and quota windows with
  their reset times (claude, codex, grok, kimi;
  [reference](https://github.com/botiverse/oar/blob/main/docs/spec/account-usage.md)).
- **Models:** `listModels()` lists the models the installation can run now
  (in a given workspace, with `cwd`), with their effort levels and service
  tiers; not being logged in is its own answer, not an empty list.
- **Setup forms:** `@botiverse/oar/forms` describes a runtime's settings as
  data a setup UI renders and may only narrow, with validation and the
  mapping to session options; it loads no runtime SDK (Grok so far;
  [reference](https://github.com/botiverse/oar/blob/main/docs/spec/config-form.md)).
- **Updates:** `checkUpdate()` reports the version the runtime's own updater
  would install, and `upgrade()` runs that updater and judges it by the
  version afterwards ([reference](https://github.com/botiverse/oar/blob/main/docs/spec/update.md)).
- **Inventories:** `skills()`, `commands()`, `mcpServers()` and `tools()` read what the
  runtime has configured natively ([reference](https://github.com/botiverse/oar/blob/main/docs/spec/inventory.md)).
- **Session options:** `refusedSessionOptions` says which session options a
  runtime refuses, before anything opens; `session()` rejects them with an
  `UnsupportedOptionError` rather than drop them
  ([reference](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#refused-session-options)).
  `mcpServers` attaches MCP servers to one session (except Cursor and
  Pi Durable). `name` titles a session in the runtime's own list where it
  has one. A resume the runtime declines for now (the conversation is
  archived or open elsewhere) rejects with `SessionUnavailableError`.

The CLI exposes the same queries: `oar installation`, `oar login`
(`--status` only reports), `oar logout`, `oar usage`, `oar models`,
`oar upgrade --check`, and `oar skills`, `oar commands`, `oar mcps` and `oar tools`.

## CLI

```
npx @botiverse/oar-cli list
oar run claude "What does this repo do?" --record run.jsonl
```

Every command: [packages/cli](https://github.com/botiverse/oar/blob/main/packages/cli/README.md) (published as `@botiverse/oar-cli`).

## Docs

- [Design](https://github.com/botiverse/oar/blob/main/docs/design/README.md): why oar exists, its decisions and what comes next.
- [Spec](https://github.com/botiverse/oar/blob/main/docs/spec/README.md): the record stream and every contract built on it.
- [Runtimes](https://github.com/botiverse/oar/blob/main/docs/runtimes/README.md): what each runtime says natively and how oar maps it.
- [Prior art](https://github.com/botiverse/oar/blob/main/docs/prior-arts/README.md): related projects compared feature by feature.
- [Development](https://github.com/botiverse/oar/blob/main/docs/development.md): working in this repo.

ESM-only, Node entry requires Node.js 24+; the browser entry needs a modern browser
with Web Crypto. Apache-2.0.
xxchan2210
🟧 echo.github ⭐The original artifact is the OAR GitHub repository. Its README describes OAR as “a provider-independent programming interface for coding-ageBotiverse (repository; original author not individually identified on the page)——

Interpretation history

Decision trace