DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to record every tool call of a Python agent run with Tracekit

Add two lines to a Python agent so each tool and model call is gated, signed, and checked after the run.

Short answer: Run pip install tracekit-ai; then add import tracekit; tracekit.instrument() as the first line of your agent file; run your agent as usual. All steps.

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

  1. Run pip install tracekit-ai.
  2. Add import tracekit; tracekit.instrument() as the first line of your agent file.
  3. Run your agent as usual.
  4. Run tracekit last to export, verify, and locate your latest run.
  5. Run tracekit view --dev to 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer