Tracekit
Tracekit is an open-source flight recorder for AI agents: it checks each tool call before it runs, holds risky calls for human approval, and signs every action into a tamper-evident record that anyone can verify offline.
Visit Cygnux-Labs/TracekitOverview
Tracekit is an open-source tool that sits in an AI agent's tool-call path and acts like a flight recorder. It checks each tool call before it runs, returning allow, deny, or hold for human approval, then signs every call, decision, and result into a hash chain held by a signer the agent cannot reach. Each run can be exported as a .tkb file for offline verification, including in a browser.
Key Features
- Pre-execution checks return allow, deny, or hold for a person, with an approval covering exactly the approved arguments once.
- Every call, decision, and result is signed into a hash chain by a signer the agent cannot reach; a missing event becomes a signed gap.
- Each run exports as one .tkb file that anyone can verify offline, including in a browser, returning VERIFIED or TAMPERED at event N.
- The evidence format is open and built on Ed25519 over RFC 8785 canonical JSON, RFC 6962 Merkle trees, and C2SP signed notes, with verifiers in Python, TypeScript, and Go.
- The README says it works with 42 agents and frameworks and reads and writes OpenTelemetry spans.
Use Cases
- Coding agent users can run a read-only audit of sessions from Claude Code, Codex, Cursor, or Gemini CLI and see calls Tracekit would have blocked or held.
- Teams shipping support, ops, data, or finance agents can apply policy packs for shell, files, SQL, HTTP, cloud CLIs, email, payments, and MCP, with human approval bound to exact arguments.
- Startups selling agents to enterprises can hand customers a verifiable file per run that they check themselves without trusting the vendor.
- Auditors and governance teams can verify records offline in a browser and use mappings to the EU AI Act, ISO/IEC 42001, NIST AI RMF, and OWASP.
Getting Started
- Install the Python package with: pip install tracekit-ai.
- Add import tracekit; tracekit.instrument() as the first line of the agent, then run it as usual; tracekit last exports, verifies, and reports the latest run.
- Try the demo with: uvx --from tracekit-ai tracekit demo --server. It needs no API key.
- Audit coding agent sessions read-only with: uvx --from tracekit-ai tracekit audit --since 7d.
Deployment & Requirements
- Python 3.9 to 3.13 is supported; framework integrations require Python 3.10 or newer.
- The TypeScript SDK requires Node 18 or newer.
- The signer can run on a laptop as the same user, as a separate OS user on Linux (macOS experimental), in a container or Kubernetes sidecar, in a Docker Compose stack, or as a central signer over HTTPS.
- TRACEKIT_SIGNER points the agent at the signer.
Before You Adopt
- License: MIT. Review its terms before using, modifying, or distributing the project.
- The README marks many listed integrations, including Codex CLI, Cursor, Gemini CLI, and several frameworks, as experimental.
- The demo output warns that in its setup the agent can reach the signing key, so it could rewrite the record.