Who it is forA developer building or running a Python AI agent who needs a verifiable record of what it did.
The problemAn agent's own log can be edited by the agent, so its account of its actions cannot be relied on alone.
The outcomeEach run is saved as a signed record, and `tracekit last` reports whether it verifies and where it is stored.
What you need first
- Python 3.9 to 3.13 (framework integrations need 3.10 or newer), or uv for the one-line demo
- A terminal on your own machine; runs on your own machines per the README
- Dev mode runs as your user, so it protects nothing against an agent running as you
Steps
- Run
pip install tracekit-ai. - Add
import tracekit; tracekit.instrument()as the first line of your agent file. - Run your agent as usual.
- Run
tracekit lastto export, verify, and locate your latest run. - Run
tracekit view --devto browse every run, including blocked and held calls.
Prompt for your agent
In the project at <project-path>, install tracekit-ai with `pip install tracekit-ai`, add `import tracekit; tracekit.instrument()` as the first line of <agent-file>, run the agent, then run `tracekit last`. Expect output containing 'Integrity: VERIFIED.' and an Assurance line. Verify that the Assurance line says dev, since this is a dev signer.
Caveat. Dev mode runs the signer as your user, so an agent running as you could read the key and re-sign the log; this is labeled isolation: same-user.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Cygnux-Labs/Tracekit and "Record every tool call of a Python agent run"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer