Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Records what a custom AI agent does in Python or TypeScript, sends it to Failproof AI, and runs a self-hosted evaluator scoring sessions.
21% 96%+75 ptsof test cases passed
Passed 23 of 24 test cases with the skill, and 5 of 24 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Two packages, one pipe: failproofai-sdk (Python, imported as failproofai_sdk)
and @failproofai/sdk (TypeScript/JavaScript). They write the same 15 events in
the same wire format into the same spool directory. Everything in this file is
language-neutral unless it says otherwise, and code blocks are Python.
For a TypeScript or JavaScript agent, read references/typescript.md alongside
it: it has the camelCase names, the adapters, bundler and Next.js setup, the
no-framework wiring, shutdown and verification. Both packages also ship the
evaluator worker that scores finished sessions on your own infrastructure (§7,
references/evaluator.md).
The SDK records what your agent did, from inside your agent. You call it at points
you choose; it appends structured events to local .jsonl files. A separate
collector ships those files to the platform.
your agent calls failproofai_sdk.event.*
→ SDK queues it in memory
→ flush thread writes <base_dir>/events/event-<timestamp>.jsonl
→ collector picks the file up and ships it
→ visible as sessions / events / errors / evals
The SDK's job ends at the file. That boundary is the most useful thing to know
about it: everything up to the .jsonl is yours to get right and yours to verify,
and it is verifiable on a laptop with no server, no API key, and no network.
The API is small — 15 event methods, all keyword-only. The hard parts are deciding where to call them and knowing which silences are bugs, because this SDK does not raise when you get it wrong. Sections 1-3 are the plan, 4 is the code, 5-6 are the proof, 7 is scoring the runs.
TypeScript/JavaScript: npm install @failproofai/sdk — zero dependencies, Node ≥
20.9, Bun or Deno, ESM and CommonJS. The npm name has no lookalike trap; the rest of
this section is Python. See references/typescript.md.
Next to this one in the catalogue, plus more from the same author.