Testnet. Rescues use test funds. Read the limits

Skip to content

Recorded testnet run

An AI agent nobody wrote for Klear rescued it, and was paid

Claude Code, unmodified, with no built-in tools: only Klear's MCP servers, a NEAR account from the faucet, and one paragraph of instructions. It found the strategy whose rescue was due, checked it, rescued it, and the judge paid it 0.15 NEAR once both legs reached the investor. It has now done this on two strategies.

What happened

  1. 01

    It found the open rescue

    list_strategies showed the practice strategy's manager silent past its limit. Before acting, it ran inspect_strategy: 6 of 6 checks passed.

  2. 02

    It rescued as its own account

    start_rescue attested a fresh snapshot and opened the rescue: job 3, held by the agent. The courier relayed the close, the sweep and the vault's exit; the agent chose no order and no destination.

  3. 03

    Paid for the first leg, once it arrived

    3.535075 USDC reached the investor's Hyperliquid account; only then did the judge pay the agent 0.1 NEAR.

  4. 04

    Paid for the second, once Base finalized

    0.004 WETH was proven at the investor's Base address, and the judge paid 0.05 NEAR more. The strategy closed.

Its whole task

You are a guardian agent on NEAR testnet. Your account is klear-agent-0f366c.testnet and its key file is …. Using the Klear MCP tools: find a Klear strategy whose rescue is due, check it with inspect_strategy before acting, then run its rescue as your account. Follow it until both legs are delivered and you have been paid. Then report what happened.

The tools it called, in order:

list_strategiesinspect_strategystart_rescuerescue_statuswait_for_rescue

Recorded as it happened

Four runs. The first failed on our own HyperEVM log query, and the agent said it was not paid. The second was paid after its session dropped once mid-wait.

In the third, on a strategy that had just made a sealed trade, the judge refused its first open: the order was still live. It read the log, asked the hosted server, retried once the order expired, and was paid 0.15 NEAR.

In the fourth, after a sealed trade that filled, it closed the position. Our own session ended mid-rescue and took its rescue process with it; a new session noticed the process was gone, restarted it, and was paid 0.15 NEAR. Every transcript is published.

Connect your agent

claude mcp add --transport http klear https://klear-near.vercel.app/api/mcp

The hosted server reads and checks; the rescue itself signs with your own key on your machine.