Skip to main content

agentsnitch

What did your AI coding agents actually do? agentsnitch reads the session logs that Claude Code, Codex and Gemini CLI keep on your machine and shows every command they ran and every file they touched. The ones worth a second look are flagged: force-pushes, curl | sh, reads of your SSH keys and .env files, and writes outside the project.

uvx agentsnitch

agentsnitch demo

Demo on a month of made-up agent logs generated by docs/demo.py. Run it to see what your own agents did.

You approve commands one at a time, or you turned on auto-approve weeks ago. Either way, nobody reads the transcript afterwards. agentsnitch does.

What it flags

Examples
Remote code curl … | sh, wget … | bash, iwr … | iex, eval $(curl …)
Destruction rm -rf ~/, git push --force, git reset --hard, DROP TABLE, terraform destroy, kubectl delete, aws s3 rm
Secrets private SSH keys, ~/.aws/credentials and other cloud credentials, .env files, the macOS keychain / pass / 1Password CLI, gh auth token, dumping the whole environment
Data leaving curl -X POST -d @file, scp/rsync to other machines, nc
Shipping npm publish, twine upload, docker push, gh release create, gh pr merge, deploys
Your system sudo, edits to .zshrc/.bashrc, cron jobs and launch agents, files written outside the project folder

Text that's only inside a script (a heredoc, python -c "…") isn't counted as run. bash -c "…" is, because that is shell.

Where it reads

Agent Logs
Claude Code ~/.claude/projects/*/*.jsonl (or $CLAUDE_CONFIG_DIR)
Codex CLI ~/.codex/sessions/**/rollout-*.jsonl (or $CODEX_HOME)
Gemini CLI ~/.gemini/tmp/*/chats/session-*

Cursor keeps its history in a SQLite database, which isn't supported yet.

Options

agentsnitch                     # last 30 days
agentsnitch --since 7d          # or 12h, 2026-10-01, all
agentsnitch --project storefront
agentsnitch --agent codex
agentsnitch --low               # also show low-severity things (git push, rm -rf in the project, installs)
agentsnitch --log               # every command and file action, oldest first
agentsnitch --json              # for scripts

Privacy

agentsnitch only reads files on your machine and sends nothing anywhere.

Install

uvx agentsnitch           # run without installing
pipx install agentsnitch  # or install it

Requires Python 3.9+. The only dependency is rich.

License

MIT

Metadata

Release files for agentsnitch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentsnitch 0.1.0
File Size Uploaded Provenance Actions
agentsnitch-0.1.0.tar.gz 17.4 kB With provenance Details for agentsnitch-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentsnitch 0.1.0
File Interpreter ABI Platform Actions
agentsnitch-0.1.0-py3-none-any.whl Python 3 none any Details for agentsnitch-0.1.0-py3-none-any.whl

Total release size: 35.5 kB

Release files / agentsnitch-0.1.0.tar.gz

Download URL agentsnitch-0.1.0.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
22c054110651690a3e032b80862b2027fb169f4251c0070b7cf3604960f32f2e
BLAKE2b-256 checksum
How to use checksums
e987836b0be8fdd64ebd55e8662ab5bdda92ae433c98b1d31413a409224a90e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / agentsnitch-0.1.0-py3-none-any.whl

Download URL agentsnitch-0.1.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e4227ad2d3c5df91ec7a55e92dbf713824934c9cdb287fe122c2141020f026b
BLAKE2b-256 checksum
How to use checksums
d217c4d08430c0b396547a8325d996c03cde9f92f81a80cfedf50238e7a399fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for agentsnitch 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentsnitch-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page