Open source reliability for AI agents

Know when your agent is wrong. Before your users do.

TrajectoryCal reads the whole run, from plans and tools to retrieval and retries. It catches confident answers built on missing evidence, then pauses them for verification.

Open sourceWorks with any agent stackActs before failure
01 / AGENT“Ready to use.”
02 / EVIDENCE CHECKTwo sources never responded.
03 / SAFE ACTIONPause and verify.
WATCH EVERY STEPSPOT WARNING SIGNSESTIMATE SUCCESSCHOOSE A SAFE ACTION

A convincing answer can still come from a broken run.

AI agents often keep sounding certain while their tools fail, their plan changes, or the evidence stops matching the answer. Looking only at the final response misses all of those warning signs.

01

Follow every step

See the agent's plans, searches, tool calls, retries, and results as one complete run.

02

Catch hidden warning signs

Spot failed tools, repeated changes of mind, conflicting evidence, and confidence that drifts away from reality.

03

Choose a safer next step

Continue a healthy run, ask for more information, verify the answer, involve a person, or stop.

The agent says the fix works. The evidence says otherwise.

Watch TrajectoryCal follow the run, catch the contradiction, and request verification before a bad result reaches a user.

From agent activity
to a safer next step.

01

Watch

Record every plan, search, tool call, result, retry, and change of direction.

02

Understand

Turn the run into clear warning signs such as failures, contradictions, and repeated changes.

03

Compare

Put signals from different agents and task types onto the same reliable scale.

04

Estimate

Calculate an honest likelihood that the run will succeed.

05

Act

Continue, ask for more information, verify, involve a person, or stop.

A success score you can actually trust.

We compared TrajectoryCal with two simple alternatives: trusting the agent's final confidence and guessing from the length of the run. TrajectoryCal's score stayed much closer to what actually happened.

CONFIDENCE ERROR REDUCTION79%

Agent's final score 0.42 TrajectoryCal 0.09

ECE
Does confidence match reality?

If runs scored at 80% succeed about 80% of the time, the score is trustworthy. Lower is better.

BRIER
How accurate are the probabilities?

Penalizes probabilities that are far from the real outcome, especially confident mistakes. Lower is better.

AUROC
Can it separate success from failure?

Measures whether successful runs rank above failed runs across thresholds. Higher is better.

RESULTS ON UNSEEN RUNSABOUT 80 RUNS
ApproachECE ↓Brier ↓AUROC ↑
Agent's final confidence0.420.300.69
Run-length guess0.360.240.51
CONFIDENCE ERROR (ECE), LOWER IS BETTER
TrajectoryCal0.09
Agent's final confidence0.42
Run-length guess0.36
NEW TASK TYPESNO RETRAINING

It still works on tasks it has never seen.

We trained it on two groups of tasks, then tested it on a third group without retraining. The score remained reliable.

Familiar task typesECE0.09Brier0.14AUROC0.87
New task type, no retrainingECE0.13Brier0.17AUROC0.81

Add reliability without rebuilding your agent.

Works with different agents

Connect LangGraph today or adapt another agent framework to the same open run format.

Simple defaults, easy to swap

Start with FastAPI and SQLite, then replace either one as your product grows.

Bring your own scoring model

Use the included model or replace it while keeping the rest of the reliability layer unchanged.

See every decision

Connect the monitoring tools your team already uses and understand why a run was allowed or stopped.

Run it on your infrastructure

Use it locally, with Docker, or in your own cloud. No managed service is required.

Open source and inspectable

Review every decision, extend each component, and keep control of your agent data.

Stop bad agent runs
before users see them.

Follow every step, understand the risk, and choose a safer next action.