varmabudharaju/agent-pd
16 stars · Last commit 2026-06-11
A police department for your Claude Code agents — a logging-only hook + CLI that audits the main agent and every subagent and reports rule offenses (permission bypass, out-of-scope & credential access, self-permissioning, disallowed tools, redundant, off-task) with quoted evidence. Catch-and-report, never blocks.
README preview
<div align="center"> # agent-pd ### A police department for your Claude Code agents A logging-only hook records every tool & permission event from the main agent **and** its subagents; the `pd` CLI replays that log through six detectors and reports rule offenses with quoted evidence. **Catch-and-report — it never blocks.** [](https://github.com/varmabudharaju/agent-pd/blob/master/LICENSE) [](https://github.com/varmabudharaju/agent-pd/blob/master/pyproject.toml) [](https://github.com/varmabudharaju/agent-pd/tree/master/docs/manual-tests/) [](https://github.com/varmabudharaju/agent-pd/blob/master/pyproject.toml) [](https://github.com/varmabudharaju/agent-pd/blob/master/pyproject.toml) **[Quickstart](#quickstart)** · **[How it works](#how-it-works-mental-model)** · **[Detectors](#the-detectors)** · **[Architecture](https://github.com/varmabudharaju/agent-pd/blob/master/ARCHITECTURE.md)** · **[Security](https://github.com/varmabudharaju/agent-pd/blob/master/SECURITY.md)** </div>