Agentmetry
A local-first flight recorder for AI coding agents.
Agentmetry hooks the tool lifecycle of Claude Code, Cursor, Codex and Antigravity, writes every tool call, approval and denial to a hash-chained JSONL trail on your machine, and runs sequence detection over the session. A credential read followed by network egress becomes one finding rather than two unremarkable log lines.
Everything runs locally. There are no cloud calls and no telemetry. Forwarding to Elastic ECS, Splunk HEC or a webhook exists and is off unless you configure it.
pip install agentmetry
agentmetry doctor
Check the detection claims yourself
The corpus ships inside the package, so this works from a clean install:
agentmetry benchmark
It replays recorded sessions through the real rule engine and exits non-zero on any missed rule or any false positive. The benign half is the number that matters: any tool can fire on an attack, and a feed that cries wolf gets muted.
What it does not do
- It is not a CASB. It records the agents you wire in. An unmanaged browser assistant is invisible to it.
- It is a recorder, not a sandbox. The only enforcement path is pre-execution DLP blocking in the hook.
- The DLP is regex, not ML. A starting pack you extend in YAML.
- It is a public alpha. Integration surfaces may still change.
Full documentation, the event schema, and the SIEM integration guides are in the repository.
- Source and issues: https://github.com/blitzcrieg1/agentmetry
- Website: https://agentmetry.ai
Apache-2.0.
Release files for agentmetry 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentmetry-0.7.0.tar.gz | 413.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentmetry-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 751.8 kB
Release files / agentmetry-0.7.0.tar.gz
| Download URL | agentmetry-0.7.0.tar.gz |
|---|---|
| Size | 413.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b0e74a231e5aeb5889abc765ece3a27b3dd6ba9185bd718f5a935eb31e26735
|
|
BLAKE2b-256 checksum How to use checksums |
9c81fd08b5be8dd675e170739d3cf39428dd2dc920787e164b148f708de00e0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency logRelease files / agentmetry-0.7.0-py3-none-any.whl
| Download URL | agentmetry-0.7.0-py3-none-any.whl |
|---|---|
| Size | 338.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d640c7043bc37189a7f9f84bad13bdbf882a5b182aa9e7c7e3f4782c92fb46ba
|
|
BLAKE2b-256 checksum How to use checksums |
47258049d7e6453e4ff1c1716ceb510ef8036280c9110decfb1183db87eef995
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency log