Peira watches your AI agent’s production runs and finds what keeps failing. Then it opens a pull request that fixes it. Each fix becomes a permanent check, so your agent improves every week.
Every fix is proven in simulation first. Nothing ships until a person approves it.
30-minute walkthrough. No preparation or production data required.
An illustration of one round of Peira's loop, in four steps: find a failure in live traces, prove a fix in re-runs, approve the pull request, and watch the agent improve.
support-agent/FindIllustration
Live tracesfrom Langfuse
lookup_orderok
get_accountok
answer_questionok
issue_refund × 2defect
Defect
Refund issued twice for one duplicate chargeFound on step 4 of 14 runs this week
Proving fix B286 re-runs · world from 1,284 runs
The failing case
20 of 20
Order number missing
20 of 20
Refund tool times out
19 of 20
Protected runs
0 worse
Goal ✓Correct ✓Safe ✓Cost −8%Time −3%
Refund only the duplicate charge#128
Refund the amount the customer asks for.
Refund only a charge that appears twice. Confirm the amount first.
Proved in 286 re-runs
No protected run got worse
Waiting for your reviewApproved by youApproveApproved
Four weeks of fixesFailed runs per week
3824159
Duplicate refunds per week
14 → 0
Protected set
12 → 31
Each round starts from everything the last one learned.
Peira picks the issue that costs the most, or you pick one. A coding agent works on your repository, Peira proves the change in simulation, and you get one pull request.
Changes to prompts, tool descriptions or code.
Before and after, for every run it touched.
Once approved, the failure becomes a permanent check.
Refund only the duplicate charge#128
Proof in the simulated world, before and after the fix
Run
Tool errors
Refunds
Stop
run_8f2a
2 → 0
2 → 1
answer
run_91c4
1 → 0
2 → 1
answer
run_a07d
0 → 0
1 → 1
answer
Sample data
Start from what your agent actually did.
Long, branching runs stop reading like a chat log. Peira draws the agent itself: what it is told, the model, every tool it can call, and the side calls.
Sub-agents, the files they pass on, and every pause for approval.
Every step opens to what the model saw or the tool returned.
Understand one run in minutes.
Know your agentProduct
Proven in its own world.
Each fix is tested in a world rebuilt from your agent’s runs: its tools, records and rules, drawn as a map you can check. Peira also shows how far to trust it.
No mocks to write and nothing to change in your code.
Each tool shows how often it matches the real answer.
Where the world does not know, it says so.
Environment · MapProduct
Before an outage, ask what if.
Make step 3 fail on purpose and watch what your agent does next. Each weak spot it finds becomes the next thing to fix.
A tool that answers differently, slowly, or not at all.
A record that is missing or never existed.
The human step too: pause, approve or reject, without a human.
Toolissue_refundtimes out
Recordorder 4417missing
Approvalsupervisorrejects
RecoveredThe agent apologizes, keeps the refund on hold and asks a person.
Illustration
Before a switch, ask again.
Re-run the same moment with another model or prompt, in the same world, and read both runs side by side.
Every changed tool call and argument is marked.
Switch models on evidence.
Every result scored the same way, every time.
Recorded
request_approvalamount: $120
Re-run · new model
issue_refundamount: $120
ChangedThe new model refunds where the recording asked for approval.
Illustration
Why you can trust an automatic fix.
One good re-run proves nothing. Agents answer differently each time. So every change is re-run many times, across the case that failed, the variations it never saw, and every run that must not get worse.
Many re-runs, not one
A fix counts only if it holds, run after run.
Variations you did not write
Odd requests, missing details, slow and broken tools, generated from your own traffic.
A protected set that grows
Every past problem stays as a check. One gets worse, the change is out.
Scored the way you decide
Goal reached, correct, safe, cost and time, weighted per agent.
How a fix is judgedIllustration
Proposed fixA change to a prompt, a tool or the code
Re-run engineMany re-runs of each case, in the rebuilt world
The failed caseIt must now pass
VariationsFrom your own traffic
Protected setNo run may get worse
Holds on all threeA pull request for your review. Anything worse, and the change is out.
Self-improving, with a person in control.
A person approves every change
Peira proposes, people decide. It opens pull requests and never merges, publishes or releases on its own.
Refund only the duplicate charge#128
Waiting for your reviewApprove
admin approved fix #128
Peira opened fix #128
Peira ran 286 re-runs
Illustration
Nothing real is touched
Every tool call is answered by the simulated world, never by your live systems.
Secrets and personal data stay out
Keys and tokens are removed at the source, and personal data is removed on the way in.
Budgets you set
Daily and per-problem limits keep the cost of every re-run predictable.
Single sign-on and roles
Sign in with Google, admins and members, and a token per agent for its traces.
An audit log of every change
Who did what, on which agent, and how it ended. Retention follows your policy.
The re-run engine, on real traffic.
Every fix is proven by re-running recorded work. Here is that engine on two of our own agents, replayed on a new model before a switch. Support triage: no confirmed change in 19 runs. Cluster troubleshooting: changed actions in 9 of 14 runs, found before any customer saw them.
Claude Opus 5 → GPT-6 Luna · LangSmith
Support ticket triage agent
Runs with a confirmed change
0 of 19 (33 steps compared)
List price per 1,000 steps
$105.73 → $1.07
Same action as recorded
100% original · 77.8% new
Replay spend
$34.02 of a $50 cap
About 1% of the price, no confirmed change. Most differences were an extra folder listing before the same reads. None involved a tool that writes.
A small sample: 19 runs are too few for a statistical call.
Claude Haiku 4.5 → GPT-5.4 · Langfuse
Cluster troubleshooting agent
Runs with a confirmed change
9 of 14 (41 steps compared)
List price per 1,000 steps
$74.47 → $131.70
Same action as recorded
79.7% original · 37.4% new
Replay spend
$27.42 of a $140 cap
Changed actions in 9 of 14 runs, at a higher price. Part of the gap is how the new model splits and groups its tool calls. Each run needs a review before a switch.
A small sample, from one week of traffic.
Real replaysRun 17-20 October 2026 from recorded traffic, each against a preset spending cap. No live tools ran. Prices are list prices.
The traces your agent already produces. Connect Langfuse, LangSmith or OpenTelemetry, or add the SDK for your framework. No agent code changes and no mocks.
How is this different from observability or evals?
Observability shows you the failure. Evals score the runs you choose to test. Peira does the next steps: it finds what keeps failing in production, writes the fix, proves it, and keeps it fixed.
How does my agent improve over time?
Peira keeps watching every new run. Each approved fix becomes a permanent check, and each round starts from the last one: what was fixed, what was rejected, and why. Problems that repeat get fixed. Problems that are fixed stay fixed.
Does Peira ever call our real tools?
No. Every tool call in a re-run is answered by the world rebuilt from your traces. Where the world does not know an answer, it says so instead of inventing one.
How does Peira decide a fix works?
Each change is re-run many times against the case that failed, its variations and a protected set of past problems. It is scored on goal reached, correctness, safety, cost and time. If any protected run gets worse, the change is rejected.
What stops a fix from breaking something later?
Every fixed problem joins the protected set. Every later change Peira proposes is re-run against it. A change that makes a protected run worse is rejected before you see it.
Does Peira change our code by itself?
It opens a pull request, with the proof attached. Your team reviews and merges it. Nothing ships without a person.
Which agents and frameworks work?
Any agent that leaves traces in Langfuse, LangSmith or OpenTelemetry. The SDK covers LangGraph, the OpenAI Agents SDK, the Claude Agent SDK, Google ADK, CrewAI, AutoGen, LlamaIndex, Pydantic AI, smolagents, Strands and Deep Agents, and tools served over MCP.