hunch.

HUNCH / ONE POLICY. EVERY INTEGRATION.

One policy. Every integration.

Start in the workspace. Add custom controls and signer enforcement only where your runtime needs them.

Start with the workspace

  1. Open Hunch and connect an RH-compatible EVM wallet. Sign the workspace login message.
  2. In Policies, choose Small swaps, Stock tokens or Wider price limits. Adjust input and output assets and the maximum amount per trade.
  3. Save the policy. Check a proposed trade in Overview, or connect an app in Agents.
  4. Read results in Activity. Workspace checks, authenticated agent requests and mined outcomes have distinct labels.

Wallet sign-in grants no spending authority. Policies apply per proposal; they do not impose cumulative or daily spending budgets. Saved policies and activity expire after 14 days. Export a policy to retain your configuration.

Connect an agent app without code

In an app that supports remote MCP over Streamable HTTP with OAuth authorization-code PKCE, add this URL:

https://hunchagents.xyz/mcp

The app opens Hunch for sign-in. Choose a saved policy and approve read-only access. Then ask the app to read your Hunch policy or check a trade. App names and OAuth callbacks identify the connecting client, not an endorsed partnership.

ToolPurpose
hunch_get_policyRead the policy selected by the wallet owner.
hunch_check_tradeCheck inputAsset, outputAsset and amount in human token units. Use ETH or exact RH asset addresses.

Clients must support OAuth discovery, dynamic client registration, S256, exact callbacks and resource binding. Supported MCP versions: 2025-03-26, 2025-06-18 and 2025-11-25. Responses use Streamable HTTP POST; there is no standalone SSE stream.

In Agents, apply a newly saved policy to an existing connector or revoke it. An in-flight check under changed or revoked controls is refused. Sessions last one hour; access tokens last up to 15 minutes; rotating refresh access lasts at most 14 days. Signing out does not revoke an agent app.

Custom controls and execution

Use the same preset compiler in the SDK, or export a saved policy from the workspace. Install the versioned first-party package:

npm install https://hunchagents.xyz/hunchagents-sdk-0.13.0.tgz

Package integrity and release details ↗

import { policyFromPreset, createTradeClient } from '@hunchagents/sdk';

const policy = policyFromPreset('small-swaps', {
  wallet: ownerAddress,
  maximumInput: '10000000000000', // 0.00001 ETH, in wei
  overrides: { maxSlippageBps: 30 }
});
const client = createTradeClient({ operatorPolicy: policy });
const proposal = await client.prepare({
  inputAsset: policy.inputLimits[0].asset,
  outputAsset: policy.allowedOutputs[0],
  amountIn: '10000000000000'
});
if (!proposal.plan) throw new Error('No eligible route');
const evidence = await client.evaluate({ plan: proposal.plan, step: 0 });

Preparation and evaluation do not execute a trade. For signing, the trusted operator must independently approve the entire canonical plan, including recipients, amounts, steps and RWA instrument UID/multipliers. Pin the independently reviewed service public key from the release manifest; do not trust a key supplied by a model or a check response.

import { createTradeSigner } from '@hunchagents/sdk';

const signer = createTradeSigner({
  account: operatorOwnedEoaSigner,
  operatorPolicy: policy,
  operatorPlan: independentlyApprovedPlan,
  publicKey: pinnedHunchPublicKey
});
const signed = await signer.signNext({ step: 0 });
// Your runtime controls submission. Retain signed.settlementProof.

The signer canonicalizes the plan, checks current Hunch evidence and receipt signatures, binds policy and call fields, and rechecks expiry after the wallet prompt. It releases no signed bytes on a refused check. It does not broadcast. Route every applicable signing path through it; a second raw signer path bypasses these controls. The reference signer supports EOAs; delegated and smart accounts are refused.

Agent identities and settlement

Register an SDK runtime under Agents using a saved policy. A separate wallet message authorizes public registration and activity. Install the downloaded credential using createAgentClient; keep it private. Its Ed25519 key authenticates agent requests and cannot spend wallet funds. The certificate binds the policy for 14 days. Register a new identity for a policy change.

Agent requests are signed, replay-protected and grouped into runs. Record enforcement and submission as runtime attestations. createSettlementClient.verify matches a mined transaction to the exact receipt-bound call. Publication needs fresh wallet consent or registered-agent authorization. Approved calls, successful swaps and reverted transactions remain distinct.

Optional local MCP

For a runtime using stdio, export a v2 policy and set HUNCH_EXECUTION_POLICY to its absolute file path, then run hunch-mcp. Optional HUNCH_API_URL selects an HTTPS API or loopback server. Tools are limited to reading policy, preparing, checking, revalidating and verifying settlement. No policy file exposes no tools. Model arguments cannot replace the operator policy.

Exact coverage

SupportedBoundary
RH mainnet, chain ID 4663Canonical exact-input Uniswap V3, V4 and mixed routes; pinned Universal Router 2.1.1.
ETH / ERC20 funding and outputBounded ERC20 and Permit2 approvals; sequential simulation of remaining steps.
Route discoveryUp to 2 hops automatically; up to 3 explicitly supplied through the SDK. Discovery is not exhaustive.
V4 hooksHookless or explicitly allowed address + runtime hash. Empty hookData. Custom hook semantics require operator review.
Stock-token evidenceOfficial identity, units, current reference and corporate-action windows where required; unavailable required evidence prevents clearance.
Price and execution limitsInput, recipient, output, slippage, fees, quote loss and optional time-weighted price evidence.
Signing and historyPer-step short-lived receipts and EOA signer enforcement. Historical receipt verification never renews signing permission.

Arbitrary transfers, bridging, lending, liquidity positions, exact-output swaps, nonempty hookData, Solana transactions, smart-account delegation and cumulative budgets are outside this release. Supporting V3/V4 does not mean every token, pool or hook is eligible. RPC, reference data, simulation, route and funding failures can produce review or block.

API surface

OpenAPI ↗ · Capabilities ↗ · Presets ↗

Endpoint groupUse
/api/workspaceWallet-authenticated policies, connector management and private checks. Cookie-authenticated browser workflow.
/api/rh/executionprepare, evaluate, revalidate (POST); assets, asset, discovery, status and observation evidence (GET). Requires v2 policies.
/api/rh/agentsOwner-consented registration/revocation, signed agent calls and public activity.
/api/rh/ledgerHistorical verification, authorized publication and public mined evidence.

Public execution requests are limited to 40 writes and 120 reads per minute per observed IP; private connector routes share 100 requests per minute. Concurrency and dependency limits may return 429. Retry with backoff; never interpret an unavailable service as approval. Public checks do not create private workspace activity.

Migration to the focused workspace

Version 0.13 retires standalone token research, text scanning, generic simulation and v1 guard/execution endpoints. They return HTTP 410. The SDK removes HunchClient and legacy createExecutionClient/createExecutionSigner exports. Use policyFromPreset, createTradeClient, createTradeSigner and the agent/settlement clients.

Old analytics, ledger, guard and execution page links now open the relevant workspace section. Previous versioned SDK downloads remain archives; they do not restore retired server APIs. RWA and simulation checks remain part of trade evaluation.