Tracekit is an open-source tool for recording, controlling, and verifying AI agent behavior, with the core goal of answering three questions: what the agent actually did, whether it was allowed, and whether others can trust that answer. It does not rely on the agent's own logs; instead, like a flight recorder, it sits in the tool-call path, making a decision and signing a record before each call executes.
In terms of use, Tracekit mainly addresses the auditability and verifiability of agent actions on real systems. When an agent executes shell commands, modifies code, queries databases, sends emails, or transfers funds, Tracekit can record every tool call and model call, and use cryptographic signatures to ensure the records cannot be tampered with.
Main capabilities include: First, policy gating. Every tool call passes through the signer before running, and the signer decides based on policy to allow, deny, or suspend pending human approval; high-risk calls are not executed automatically. Second, tamper-evident records. The signer runs in a process the agent cannot reach, and each record contains the hash of the previous record, forming a hash chain, so any byte change breaks the chain at that record. Third, offline verification. A .tkb file is generated, and anyone can check record integrity without installing software via a browser verifier or command-line verifier, with results of VERIFIED, FAILED, or UNVERIFIABLE. Fourth, cross-framework integration. Stable support for Claude Code, OpenAI Agents SDK, LangChain/LangGraph, Claude Agent SDK, and MCP; experimental support for Codex CLI, Cursor, Gemini CLI, OpenCode, Cline, GitHub Copilot CLI, CrewAI, Browser Use, Pydantic AI, Google ADK, Haystack, LlamaIndex, Microsoft Agent Framework, Strands Agents, Vercel AI SDK, NVIDIA OpenShell, E2B, Docker MCP Gateway, and many other frameworks and tools. Fifth, witness co-signing (experimental). An independent replica can co-sign the log head, used to detect truncation or rewriting of the log by whoever holds the key. Sixth, audit and replay. Provides the tracekit audit command for read-only viewing of local agent sessions, tracekit last exports and verifies the most recent run, and tracekit view --dev shows all runs.
For usage, Python users can install via pip install tracekit-ai (note that tracekit on PyPI is an unrelated project), then add import tracekit; tracekit.instrument() to the first line of the agent code to start gating and recording. TypeScript users use npm install @cygnuxlabs/tracekit, which requires Node 18 or later. For coding agents, tracekit init --dev --v2 can be used to configure Claude Code hooks, and other agents can be specified via the --agent parameter. The project also provides a tracekit demo command, which lets you experience the full workflow in seconds without an API key.
Applicable scenarios include: teams that run agents on real systems and need to prove their behavior to customers, auditors, or insurers; organizations that need to establish a chain of compliance evidence for agent operations; high-risk operation scenarios where human approval steps are desired for agents; and development teams that need to verify evidence files across languages.
In terms of limitations, development mode cannot defend against agents running as the same user; verification passing only proves that the record is complete, not the intent, the authenticity of tool results, or that all actions were captured; policy rules are based on text and tool name matching, and agents may rewrite commands to bypass them, with the real protection coming from signer isolation; commitments can hide content, but do not hide timing, size, or quantity. In addition, some integrations are still experimental and may change between versions. The project uses the MIT license, the current version is 1.8.1, and 1.x is the supported line.