{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "cygnux-labs-tracekit--record-python-agent-run",
 "repo": "Cygnux-Labs/Tracekit",
 "repo_url": "https://github.com/Cygnux-Labs/Tracekit",
 "repo_slug": "cygnux-labs-tracekit",
 "title": "Record every tool call of a Python agent run",
 "page_title": "How to record every tool call of a Python agent run with Tracekit",
 "summary": "Add two lines to a Python agent so each tool and model call is gated, signed, and checked after the run.",
 "who": "A developer building or running a Python AI agent who needs a verifiable record of what it did.",
 "problem": "An agent's own log can be edited by the agent, so its account of its actions cannot be relied on alone.",
 "outcome": "Each run is saved as a signed record, and `tracekit last` reports whether it verifies and where it is stored.",
 "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 last` to export, verify, and locate your latest run.",
  "Run `tracekit view --dev` to browse every run, including blocked and held calls."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "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.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/cygnux-labs-tracekit/record-python-agent-run/",
 "md": "https://dedupedai.com/use-cases/cygnux-labs-tracekit/record-python-agent-run/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/cygnux-labs-tracekit--record-python-agent-run.json",
 "api_version": "v1"
}
