Demo Docs Pricing Compare Integrity Sign in Try it free
1
Agent decides
2
DarkMatter seals
3
Record verified
4
Share proof
Refund approval agent
Step 1 — Agent processes request
The agent receives a refund request and decides whether to approve, escalate, or deny.
Step 1 of 4
A customer requests a refund for order #84721 — $284.00, purchased 18 days ago. The agent runs its policy logic and calls Claude to make a decision.
refund_agent.py
# One import change — everything else stays the same
from darkmatter.integrations.anthropic import Anthropic

client = Anthropic(dm_api_key="dm_sk_...")

# Agent calls Claude with policy context
response = client.messages.create(
  model="claude-sonnet-4-6",
  messages=[{"role":"user",
    "content":"Approve refund #84721? $284.00, 18 days old"}]
)
← The wrapper intercepts this call. Before any response is processed, DarkMatter begins constructing a commit record.
Click Next to begin the walkthrough
DarkMatter
Waiting for agent output…
DarkMatter will capture the full interaction, input and output, the moment Claude responds, before any downstream action is taken.
Commit record ■ Pending
ID
waiting…
Input
capturing…
Output
capturing…
Hash
computing…
Timestamp
waiting…
Status
pending
← Advance to see DarkMatter seal the record