v1 · design partnersoc · fleet
managed agent + pledge
§ integrations / anthropic

Anthropic Tool Use, with scope and audit attached.

Wrap Claude tool definitions with the live OC Agent delegation. Tool execution is gated by the active scope grammar pre-call; every tool result emits a signed agent-action envelope. Anchored to Bitcoin via the OC Stamp pipeline.

· shipping· published to npm · MIT· package @orangecheck/agent-anthropic@0.2.0

What it does

Claude's tool-use API exposes a list of tools and lets the model produce a sequence of tool_use blocks. The Fleet adapter intercepts those blocks at the boundary between Claude and your real tool implementation:

  1. Validates the tool call against the agent's active OC Agent delegation. The exercised scope must be a sub-scope of a granted scope; if not, the call is refused before your handler runs.
  2. Canonicalizes the (tool_name, input) tuple, BIP-322 signs it via the agent's wallet adapter, and emits an agent-action envelope (kind 30084) sharing OC Stamp's structure.
  3. Returns the tool result to Claude alongside the envelope id, so the assistant's next turn carries provenance metadata if you choose to surface it.

Why this matters for compliance

Without the adapter, “the model called my tool” is the entire audit trail. With it, every tool execution carries: the agent address (BIP-322), the active delegation, the exercised scope, the content hash of the inputs, and the OC Stamp anchor — replayable offline forever.

Status

Adapter package: @orangecheck/agent-anthropic@0.2.0 is on npm. Source lives in oc-packages/agent-anthropic. MIT. Ships stampToolUse, postActionToFleet, and invokeWithStampAndPost — a thin wrapper over @orangecheck/agent-core + @orangecheck/agent-signer with the Claude-tool-use shape.

What Fleet adds on top: the managed signing pipeline, OC Stamp anchoring, Nostr publishing, audit-bundle assembly, and the operator dashboard. The package alone is enough to self-host; pair it with a Fleet project to remove ops.

Already using the package?

Fleet adds the managed pipeline (OC Stamp anchoring, Nostr publishing, audit-bundle assembly, operator dashboard) on top of the open package. Design partners pair with an OrangeCheck engineer for the integration.