RelAI

RelAI

Never waste a token on a failed agent run again.
$pip install relai
Mid-Run Intervention • Zero Extra Cost

The Scale of the Problem

FIELD REPORT // INTERNAL CLASSIFIED

TIMESTAMP: 2026-07-04STATUS: SEVERE_TOKEN_BLEED

BACKGROUND: Agentic AI is running at massive volume in production (billions of executions/year across frameworks like CrewAI and LangGraph). A meaningful share of runs fail and get restarted from zero — which means paying for the same work twice.

THE GAP: Coding assistants (Cursor, Copilot, Codex) don't solve this — they watch you write code, not a deployed agent running autonomously.

THE INADEQUACY OF OBSERVABILITY: Observability tools (LangSmith, AgentOps) log failures after the fact. They give you a beautiful post-mortem of why you just burned $5.00 on a single failed run.

Live Intervention Protocol

▸ [SYS] RelAI is live, mid-run intervention active.

▸ [AGENT] "Executing action: search_web(query='...')"

▸ [DETECTOR] Drift detected. Agent deviating from goal trajectory.

▸ [RELAI] Injecting replan instruction into agent state...

▸ [AGENT] Course corrected. Resuming execution.

01 /

Watch

RelAI hooks into the agent framework's native callbacks. Zero extra API cost, ~2 lines to add.

02 /

Detect

After every step, three lightweight checks run in parallel to catch loop, drift, or false success.

03 /

Intervene

On a hit, RelAI writes a replan instruction straight into the agent's state before its next step.

Intervention Detectors.

01 // SYS.DETECTOR

Loop Detection.

Catches when the agent repeats a near-identical action worded slightly differently.

02 // SYS.DETECTOR

Drift Detection.

Catches when the agent's steps steadily stop serving the original goal.

03 // SYS.DETECTOR

False Success Detection.

Catches when the agent declares 'done' but the result doesn't actually answer what was asked.