Skip to main content

AgenticAudit Hook CLI

CLI for auditing Claude Code and Cowork sessions automatically.

Every tool call — file reads, writes, shell commands, web fetches — is logged, classified, and audit-ready with zero token overhead.

Install

pip install agentic-audit-hook

Setup

Add hooks to Claude Code:

// ~/.claude/settings.json
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "",
        "hooks": [
          {"type": "command", "command": "agentaudit-hook pre"}
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "",
        "hooks": [
          {"type": "command", "command": "agentaudit-hook post"}
        ]
      }
    ]
  }
}

Set environment variables:

export AGENTAUDIT_API_KEY="aa_live_xxxxx"
export AGENTAUDIT_BASE_URL="http://localhost:8000"

Commands

Command Hook Description
agentaudit-hook pre PreToolUse Classify risk, optionally block
agentaudit-hook post PostToolUse Log completion
agentaudit-hook session-start SessionStart Log session start
agentaudit-hook session-end SessionEnd Log session end

Links

License

Apache 2.0

Metadata

Release files for agentic-audit-hook 0.3.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 agentic-audit-hook 0.3.0
File Size Uploaded Provenance
agentic_audit_hook-0.3.0.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agentic-audit-hook 0.3.0
File Interpreter ABI Platform
agentic_audit_hook-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / agentic_audit_hook-0.3.0.tar.gz

Download URL agentic_audit_hook-0.3.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c51cbba4037de6aa249cc26151be1b168b9cb0b7e7af2dbc024b715af559684b
BLAKE2b-256 checksum
How to use checksums
c3ce294c0109c5145a2e2dd4b98838649d78bb36bc09b67bd39c94e22ce517bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agentic_audit_hook-0.3.0-py3-none-any.whl

Download URL agentic_audit_hook-0.3.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf10fc7038f43d3ee6af9f13f8e2bdb6ea292365b1db1612efc4281318a18f1f
BLAKE2b-256 checksum
How to use checksums
245041d0ee67a0fcb9344018edf0aab6a49979d2eb0ed017d93ad6afaff49dd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for agentic-audit-hook 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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