Skip to content

Latest commit

 

History

History
124 lines (94 loc) · 10.8 KB

File metadata and controls

124 lines (94 loc) · 10.8 KB

Upstream References

Point-in-time note: 2026-05-12. This file intentionally avoids copying API details that can go stale. Treat these as pointers to upstream sources of truth, not as a versioned API summary.

September 4, 2026 compatibility refresh

Current reviewer SDK versions and migration notes are in adapters.md. Package source/types were inspected for each upgraded SDK. Isolated CLI argument/help probes covered Claude Code 2.1.261, Cursor Agent 2026.09.02-c22c1a3, Pi 0.84.4, Gemini 0.58.0, OpenCode 1.18.29, Grok 1.0.13, and Antigravity 1.1.26. Droid SDK 0.9.1 tool-policy setup was also exercised against isolated Droid CLI 0.212.1 after verifying the official binary checksum. Copilot SDK 1.0.13 started bundled runtime 1.0.83 with protocol 3. These probes did not send model requests or replace installed executables.

Cursor Agent SDK

Use the official docs and cookbook examples for current SDK usage, authentication, local/cloud execution, and streaming behavior.

Claude Agent SDK

  • Claude Agent SDK TypeScript repository: https://github.com/anthropics/claude-agent-sdk-typescript
  • Claude Code / Agent SDK docs index: https://code.claude.com/docs/llms.txt
  • NPM package: https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk
  • Implemented adapter dependency on 2026-05-18: @anthropic-ai/claude-agent-sdk@0.3.143.
  • Local inspection on 2026-05-19: Claude Code 2.1.143 supports claude -p and claude auth status --json; SDK query() can use local Claude Code auth by setting pathToClaudeCodeExecutable: "claude".
  • Claude native structured output implemented on 2026-05-19 through options.outputFormat: { type: "json_schema", schema }; live smoke required maxTurns above 1 for the SDK's schema-validation flow.
  • Local inspection on 2026-07-10: Claude Code 2.1.206 auth status --json emits loggedIn, authMethod, apiProvider, email, orgId, orgName, and subscriptionType; the previously parsed tokenSource field is gone and apiKeySource appears only under api-key auth, which the claude-code status path never exercises. --effort accepts low, medium, high, xhigh, max.
  • Live query.supportedModels() catalog on 2026-07-10 (SDK 0.3.167): haiku reports no effort support, and the supportedEffortLevels composition for sonnet varied between probes on the same day (low, medium, high, max in one, all five levels including xhigh in another). Because the catalog's top-tier composition is not stable, the adapter resolves xhigh/max against the live catalog at preflight and substitutes within the top tier when only one of the two is listed.

Use upstream docs for current query() options, structured output support, tool permissions, authentication behavior, and SDK version notes.

Pi Agent SDK

Use the upstream repository for the current SDK docs, JSON mode docs, extension examples, structured output patterns, and agent harness lifecycle.

Factory Droid SDK

  • Factory CLI reference: https://docs.factory.ai/reference/cli-reference
  • Droid Exec docs: https://docs.factory.ai/cli/droid-exec/overview
  • Factory CLI repository: https://github.com/Factory-AI/factory
  • Droid TypeScript SDK repository: https://github.com/Factory-AI/droid-sdk-typescript
  • NPM package: https://www.npmjs.com/package/@factory/droid-sdk
  • Implemented adapter dependency on 2026-05-21 and updated on 2026-05-22: @factory/droid-sdk@0.3.0.
  • Local CLI inspection on 2026-05-21: Droid CLI 0.131.0 supports droid exec --output-format json, --file, --cwd, --model, and --reasoning-effort; default exec mode is read-only unless --auto is set.
  • Local CLI and SDK inspection on 2026-05-22: Droid persists sessions under ~/.factory/sessions by working directory; droid exec exposes repeatable --tag metadata but no ephemeral/no-history flag, and @factory/droid-sdk@0.3.0 exposes tags and machineId on run() options.
  • Product decision on 2026-05-22: prefer Droid CLI transport for routine reviews because current SDK runs still appear in Factory session history and do not expose a supported no-history option.
  • Local CLI and SDK inspection on 2026-06-19: Droid CLI 0.142.0 advertises stream-json and stream-jsonrpc; installed @factory/droid-sdk@0.3.0 already exposes JSON-RPC-backed streaming for SDK reviews. Diffwarden keeps Droid CLI on single-shot JSON for now.

Use official Factory docs over local source when CLI or SDK behavior differs.

Codex review reference

  • Review-process refresh on 2026-09-04: Codex rust-v0.153.4. Detached reviews use the bundled review-agent skill; Diffwarden adapts its inspection sequence into a schema-constrained turn with developer-level review rules. The rubric's July 21 repository-rule attribution is included. See the integration decision.

  • OpenAI Codex repository: https://github.com/openai/codex

  • Local reference inspected on 2026-05-14: /Users/auro/code/upstream/codex at commit 02a7205250.

  • Local CLI/source refreshed on 2026-05-23: /Users/auro/code/upstream/codex at commit 7d47056ea4; codex exec is the CLI transport path because codex review is a specialized wrapper and does not expose the same JSON-schema contract used by Diffwarden's shared parser.

  • Local CLI/source refreshed on 2026-05-28: /Users/auro/code/upstream/codex at commit 462deb0426bf; Codex review still uses a review-specific child task and prompt, while Diffwarden's Codex CLI transport still uses codex exec --output-schema for shared schema enforcement.

Use Codex as the semantic reference for review behavior, especially its review process, review rubric, and review output model. Diffwarden adapts that contract across SDK and CLI transports. Do not duplicate large Codex prompt or protocol excerpts here; link to the upstream source and copy only what the implementation needs into source-controlled constants with attribution.

CLI transport references

Point-in-time local research on 2026-05-20 inspected installed executables for Codex, Claude, Cursor Agent, Gemini, OpenCode, Pi, Grok, and Antigravity. Grok was refreshed on 2026-06-07 against @xai-official/grok@0.2.32 / grok 0.2.32 help and official xAI Build docs. Antigravity was refreshed on 2026-06-07 against agy 1.0.6 help/changelog and official Antigravity CLI permissions, sandbox, settings, and reference docs. The direct CLI adapter keeps those details near the adapter code; this file remains a route map rather than a copy of volatile CLI help output.

Local upstream clones, if present

These are convenience working copies on Auro's machine, not portable repo dependencies:

/Users/auro/code/upstream/codex
/Users/auro/code/upstream/gemini-cli
/Users/auro/code/upstream/opencode
/Users/auro/code/upstream/cursor-cookbook
/Users/auro/code/upstream/claude-agent-sdk-typescript
/Users/auro/code/upstream/pi-mono

Do not require these paths for normal development. If implementation needs fixtures or copied prompt text, vendor the minimal stable artifact into this repo with clear attribution.

Before implementing SDK adapters, re-check these local upstream clones and refresh them if needed. The spec should describe product behavior; version-sensitive SDK details belong near adapter code, with the upstream commit or package version noted when the implementation depends on a specific shape.

Reference policy

Prefer stable pointers over stale summaries:

  • Link to official docs, repositories, and NPM packages.
  • Avoid embedding detailed API signatures unless the implementation directly depends on them.
  • Put version-sensitive SDK details in code comments near the adapter implementation, not in high-level docs.
  • If a copied upstream artifact is required, include only the minimum needed, preserve attribution, and note the upstream commit or package version used.
  • Keep this file as a route map, not a maintenance burden.