Clasig · for AI agents

Use Clasig from your agent

Clasig publishes rule-based market scenarios with the trigger, the invalidation and the evaluation method fixed before the outcome, and keeps every outcome behind receipts anyone can recompute. Agents can read all of it, and check it, without an account.

Public preview. Real hourly prices (Twelve Data; Bitcoin from OKX, quoted in USDT), replayed: not a live record. Reference data; historical outcomes are modelled. Purchases are not open. Nothing here is a recommendation to trade.
65scenarios in the preview archive
2026-11-07archive as of (UTC)
7read-only MCP tools

Connect over MCP

Streamable HTTP at https://clasig.io/replay/mcp, POST only, no sessions, no authentication on the preview. Protocol versions 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26.

Claude Code:

claude mcp add --transport http clasig https://clasig.io/replay/mcp

Any client that takes a JSON server list:

{ "mcpServers": { "clasig": { "type": "http", "url": "https://clasig.io/replay/mcp" } } }

Or plain HTTPS

Every tool has a static JSON twin under /agent/v1/, described by OpenAPI 3.1. Start from llms.txt.

curl https://clasig.io/replay/agent/v1/scenarios.json
curl https://clasig.io/replay/agent/v1/scenarios/cc039c28c362e752.json

Tools

Verify a receipt yourself

Do not take the server's word for it. Receipts are SHA-256 over the JSON Canonicalization Scheme (RFC 8785), so any JCS library recomputes them: in Python, pip install jcs and hash jcs.canonicalize(value). The version below needs only the standard library. It writes numbers the way JCS does, because Python's own float output differs (7e-05 where JCS writes 0.00007). Check any implementation against the test vectors.

import hashlib, json, urllib.request

def num(x):  # RFC 8785 / JavaScript number-to-string
    if x == 0: return "0"
    r = repr(x)
    if "e" not in r: return r[:-2] if r.endswith(".0") else r
    m, e = r.split("e"); sign = "-" if m[0] == "-" else ""
    d = m.lstrip("-").replace(".", ""); n = int(e) + 1
    if 0 < n <= 21: return sign + (d + "0" * (n - len(d)) if len(d) <= n else d[:n] + "." + d[n:])
    if -6 < n <= 0: return sign + "0." + "0" * -n + d
    return sign + d[0] + ("." + d[1:] if len(d) > 1 else "") + "e" + ("+" if n > 0 else "-") + str(abs(n - 1))

def canon(v):
    if isinstance(v, dict): return "{" + ",".join(json.dumps(k, ensure_ascii=False) + ":" + canon(v[k]) for k in sorted(v)) + "}"
    if isinstance(v, list): return "[" + ",".join(canon(x) for x in v) + "]"
    if isinstance(v, float): return num(v)
    return json.dumps(v, ensure_ascii=False)

def h(v):
    return hashlib.sha256(canon(v).encode("utf-8")).hexdigest()

url = "https://clasig.io/replay/agent/v1/scenarios/cc039c28c362e752.json"
# The host refuses Python's default User-Agent (Cloudflare error 1010), so name yours.
req = urllib.request.Request(url, headers={"User-Agent": "clasig-verify/1"})
rec = json.load(urllib.request.urlopen(req))["record"]
prev = "0" * 64
for n, e in enumerate(rec["events"]):
    body = {k: e[k] for k in ("scenarioId", "seq", "type", "at", "data", "prevHash")}
    assert e["scenarioId"] == rec["scenario"]["id"] and e["seq"] == n
    assert e["prevHash"] == prev and h(body) == e["hash"]
    prev = e["hash"]
assert rec["events"][0]["data"]["scenarioHash"] == h(rec["scenario"])
print("receipt", prev)  # 7b780aa3b0e35504c14d8d7f3d9f53e44a3c3500af230f4be59d795706ec9f42

A valid receipt proves the record was not edited after publication. It does not say the scenario was a good idea. Store the receipts and the archive root (161b916ad1bfa481a6f06b19fdc333f90d0d0cf84f29e72babbaa2d137f74d49) you read: an archive that later fails to reproduce them lost a record or an event.

Describing Clasig

Every R value is modelled under the published method eval.v1, never an execution. Please do not state:

Discovery files