Repository navigation
Description
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:
- claude: refuse launchArgs that collide with flags OAR manages (--continue exits, --fork-session misreports the id) #336 claude: refuse
launchArgsthat collide with flags OAR manages (--continueexits,--fork-sessionmisreports the id) (bug) (fix(claude): refuse launchArgs that collide with OAR's flags; classify host-set limits and schema failures #356, 0.57.0) - Structured output: return a turn's JSON-schema result (claude --json-schema, codex outputSchema) #337 structured output returned with the turn (feat: expose native structured output controls #349, 0.55.0) (claude
--json-schema, codexoutputSchema) - SessionOptions.additionalDirectories, refused where a runtime has none #338
SessionOptions.additionalDirectories - claude: classify host-set limits (max turns, budget) and pass through the runtime's reported cost #339 claude: classify host-set limits (max turns, budget) (fix(claude): refuse launchArgs that collide with OAR's flags; classify host-set limits and schema failures #356, 0.57.0:
limit_reached,output_schema); cost not passed through, because claude's figure is a list-price estimate - List and read native sessions (past conversations), refused where a runtime keeps none #340 list and read native sessions
- Host-implemented tools in the session (claude SDK MCP, codex dynamic tools, pi custom tools) #341 host-implemented tools (claude SDK MCP, codex dynamic tools, pi custom tools)
- change model and effort mid-session: researched in
docs/runtimes/live-configure.md, design with Needs investigation + design: resume with changed configuration (resumeWithConfig?) #22 - fork a session as a first-class option (claude
--fork-session, codex thread fork, pi fork): evidence per runtime - docs: a "from the Agent SDK" table in
docs/runtimes/claude.mdmapping each SDK option to OAR, including thelaunchArgsrecipes that already work (--tools,--agents,--setting-sources,--plugin-dir,--max-turns,--max-budget-usd)
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.
- Structured output: return a turn's JSON-schema result (claude --json-schema, codex outputSchema) #337 also covers codex
outputSchema(feat: expose native structured output controls #349, 0.55.0) - codex: opening a session in a git repo permanently marks it trusted in $CODEX_HOME/config.toml #343 codex: opening a session in a git repo permanently marks it trusted in
$CODEX_HOME/config.toml - codex: a session-scoped API key (app-server ignores CODEX_API_KEY) #344 codex: a session-scoped API key (app-server ignores
CODEX_API_KEY) - Usage: report the runtime's reasoning output tokens (codex reasoning_output_tokens) #345 usage: the runtime's reasoning output tokens (feat: expose native reasoning token totals #362, 0.57.0)
- docs: a "from the codex SDK" table in
docs/runtimes/codex.md, including the-crecipes
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.
Activity
chore: release v0.55.0 (#350)
fix(claude): refuse launchArgs that collide with OAR's flags; classif…
docs: map the Claude Agent SDK and codex SDK options to OAR (#358)
chore: release v0.57.0 (#363)