Skip to content

Parity with first-party SDKs: Claude Agent SDK 0.3.296 comparison (tracking) #342

Open

Description

@xxchan

xxchan (2026-10-11): OAR keeps calling each runtime's CLI directly and does not depend on its SDK, but in common host scenarios it must be no worse than the runtime's first-party SDK. Lookout compared the Claude Agent SDK 0.3.296 (TypeScript) with OAR 0.54.3, both on the SDK's own claude 2.1.296 binary and the same mock provider, no account. The codex SDK comparison (@openai/codex-sdk 0.162.1) follows.

Where OAR is already better: it refuses an effort the model does not take (the SDK silently sends a thinking budget); "prompt is too long" is input_too_large (SDK: invalid_request); auth status, login and quota windows work without a running query; install and upgrade; every native frame recorded, and turns attributed to their input (#313, #334).

Even: single prompt, multi-turn, steer, queue, interrupt, resume, model and effort at open, cwd, env (OAR also drops parent-session markers), disallowedTools, MCP stdio and http, custom and appended system prompt, token usage, auth and billing errors, an explicit binary path.

Work items:

codex (@openai/codex-sdk 0.162.1, Lookout's codex-sdk-0.162.1-vs-oar.md in #inspection:98240081): OAR covers most of what the SDK exposes and is no worse in common scenarios. Better: steer or queue during a turn (the SDK's second run fails with "already has an active writer"), keep using a session after an interrupt, about 100 to 170 ms per turn against 270 to 410 ms (the SDK starts a process per turn), classified failures, no skipGitRepoCheck needed, env merged instead of replaced. Through launchArgs -c only: sandbox mode, network access, web search, base URL, config.

Deferred (xxchan, 2026-10-11: wait for now): host approvals. The SDK's canUseTool, permission modes and hook callbacks let a host approve, block or rewrite a tool call before it runs (IDE prompts, path policies, sandbox rewrites, audit). OAR runs every session with all tools allowed by design; PR #26 ("let a person answer the runtime's approvals and questions") is the related open direction.

Not planned unless a host asks: allowedTools (meaningless while all tools are allowed), priority: "now" (abort then prompt does the same), skills filtering, preset variants with cache boundaries, finding the SDK's bundled binary automatically (OAR_CLAUDE_BIN works).

Report: Lookout's claude-agent-sdk-0.3.296-vs-oar.md in #inspection:98240081.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions