Refund Agent Demo

An LLM agent that can look up payments and propose refunds, but can't move money. Every proposal passes fixed checks, a person approves it, and only then does the refund land in a hash-chained ledger.

Kaihuan HuangBuilds on the booking agent and ledger demosAll data is synthetic

1. Conversations

Recorded from qwen2.5:7b on Ollama (temperature 0). Only the model's messages are replayed; the tools, checks and approvals below run live in your browser. Each conversation starts from the same synthetic ledger.

2. Approval queue

Hard checks decide whether a proposal can be approved at all. Review flags only point the approver at something odd.

No proposals yet.

Run it live with your own model

With Ollama running on your machine, the agent talks to your local model instead of the recording. Your messages never leave your computer.

ollama pull qwen2.5:7b
OLLAMA_ORIGINS="https://kaihuan-huang.github.io" ollama serve

Works in desktop Chrome or Edge. Allow local network access if Chrome asks.

3. Be the model

Send your own propose_refund call, as a model might, and see what the checks do with it.

4. The ledger

An approved refund is written by the agent's proposal id and the approver's name, as one more link in the hash chain.

#EventByDetailsHash

What the recordings show

Design

Tests

The deterministic parts, plus a replay of every recording, run in your browser.