opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

A flight recorder for AI agents that even auditors can verify offline
GitHub RepoViews12

Project Description

View on GitHub

Your Agent Can Act. Can You Prove What It Did?

You've given an AI agent access to a shell, a database, or a payment API. It works. Then one day it does something nobody expected, and you're left trying to reconstruct what happened from logs that the agent itself could have written—or rewritten. Tracekit is an open-source project that tries to fix that trust problem by treating your agent like an airplane: it installs a flight recorder in the tool-call path, so the record of what happened is something you can show to someone else.

What It Does

Tracekit sits between your agent and the tools it calls. Before any tool call runs, Tracekit checks it and returns one of three outcomes: allow, deny, or hold for a person to approve. An approval covers exactly the arguments that were approved, once—so a human signing off on a lookup doesn't accidentally greenlight a delete with different parameters.

Every call, decision, and result gets signed into a hash chain held by a signer the agent can't reach. If an event goes missing, that shows up as a signed gap rather than silence. Each run can then be exported as a single .tkb file, an open format that anyone can verify offline—including in a browser—and get back either VERIFIED or FAILED, along with the specific record that was changed. The project ships verifiers in Python, TypeScript, and Go, is MIT licensed, and runs on your own machines. The README says it works with 42 agents and frameworks.

Why It's Cool

  • It answers the third question. Your agent's own logs can roughly tell you what it did and whether it was allowed to. They can't tell you whether anyone should trust the answer, because anyone with write access can edit them and nothing would show it. Tracekit's whole design is aimed at that gap.

  • The architecture borrows from Certificate Transparency. Signed records go into an append-only log that independent witnesses cosign. That's a well-understood model for making tampering detectable, and applying it to agent tool calls is a sensible fit.

  • The approval model is precise. "An approval covers exactly the arguments that were approved, once" is the kind of detail that matters in practice. It closes the obvious hole where a human approves a benign call and the agent swaps in a harmful one.

  • Verification doesn't require trusting you. Because the file format is open and verifiers exist in three languages, the people who need assurance—customers, auditors—can check the record themselves, offline, without installing your stack or taking your word for it.

  • The numbers are specific. The README claims 8 of 8 tamper attacks caught across 480 trials with a witness, 1077 of 1077 harmful calls stopped across 11 classes with 1 false alarm in 1019, under 1 ms added per tool call (0.91 ms at p99 for the signer round trip), and 8 of 8 insider attacks caught via a merge gate on every PR. You can argue with the methodology, but at least there's a methodology to argue with.

How to Try It

The README points to a five-second trial, and the package is on PyPI as tracekit-ai. The general shape of getting started:

  1. Install the package:
    pip install tracekit-ai
    
  2. Add it to your agent's tool-call path so calls are checked before they run—the README has an "Add it to your agent" section covering the supported agents and frameworks.
  3. Run something, then export the run as a .tkb file and verify it with one of the provided verifiers (Python, TypeScript, or Go) to see the VERIFIED result for yourself.

The README also includes a worked example: a support ticket hides an instruction, the agent deletes 43 orders, then rewrites its own log and Tracekit's record so the delete reads as a lookup—and the tampering is caught. That's worth reading before you decide whether the threat model matches yours.

Final Thoughts

Tracekit is aimed at teams putting agents on real systems—the ones where "the agent did something and we're not entirely sure what" is a conversation with a customer or an auditor, not just a debugging session. If your agents only touch sandboxed toys, this is probably more machinery than you need. If they touch money, production data, or other people's systems, the combination of pre-execution checks and an independently verifiable record is a genuinely useful thing to have. The project is also explicitly looking for pilots, so if the threat model fits, that's a reasonable way to find out whether it holds up under your workloads.


Follow @githubprojects for more developer tools and open source projects.

Back to Projects
Project ID: tracekitLast updated: November 26, 2026 at 02:49 AM