audit

audit is a command for Claude Code from dingdawg/dingdawg-governance. It costs 0 tokens per session (476 once invoked), scanned C, original, MIT.

A command that creates a record of the governed actions taken during an AI-agent session or a selected time period. The report can be returned as text or JSON, or downloaded as a PDF.

In plain words
What is it for?
Use it for compliance reviews, incident checks, and sharing a structured history of agent activity. You can limit the report to a session or date range.
Why use it?
It makes it easier to review what the agent did, which requests were blocked, and whether unusual action patterns or policy changes occurred.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the DingDawg Governance plugin — 1 skill, 3 commands, 1 MCP server shipped together

Good fit Use it for compliance reviews, incident checks, and sharing a structured history of agent activity. You can limit the report to a session or date range.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dingdawg/dingdawg-governance/audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/dingdawg/dingdawg-governance

Made for: Claude Code.

Or install DingDawg Governance, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/dingdawg/dingdawg-governance/audit/github.svg)](https://agentmods.dev/commands/dingdawg/dingdawg-governance/audit)
Your own site
<a href="https://agentmods.dev/commands/dingdawg/dingdawg-governance/audit"><img src="https://agentmods.dev/badge/commands/dingdawg/dingdawg-governance/audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/dingdawg/dingdawg-governance/audit"><img src="https://agentmods.dev/badge/commands/dingdawg/dingdawg-governance/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 476 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00476
Opus 5 $0.00000 $0.00238
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00048

Measured 8d ago against content hash c09a76362469, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

audit scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

13:15:44 Bash "curl | bash" — remote execution blocked

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

12:02:17 Bash "rm -rf /var/data" — dangerous pattern

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

13:15:44 Bash "curl | bash" — remote execution blocked
packages/plugin-claude-code/commands/audit.md · 56 lines

What it actually says

/governance-audit

Generate a structured audit report for the current session or a specified time range. The report summarises every governed action, lists any blocked requests, and provides a compliance-ready summary you can download or share.

Usage

/governance-audit
/governance-audit --session SESSION_ID
/governance-audit --since 2024-01-15 --until 2024-01-16
/governance-audit --format json

Options

Option Description Default
--session ID Audit a specific session by ID current session
--since DATE Start of audit window (ISO 8601 or YYYY-MM-DD) session start
--until DATE End of audit window now
--format text|json|pdf Output format text

What it does

  1. Calls the generate_audit_report tool on the DingDawg Governance MCP server
  2. Aggregates all receipts in the requested window
  3. Flags anomalies: repeated blocks, unusual tool sequences, or policy drift
  4. Returns a structured report with a shareable URL and optional PDF download

Example output

DingDawg Governance — Audit Report
─────────────────────────────────────────────
Session:     ses_01J5KX2ABC
Period:      2024-01-15 09:00 → 14:37 UTC
Total actions:   87
Succeeded:       84
Blocked:          3
Rollbacks used:   1

Blocked actions:
  12:02:17  Bash  "rm -rf /var/data"  — dangerous pattern
  13:15:44  Bash  "curl | bash"       — remote execution blocked
  14:01:09  Edit  "/etc/hosts"        — path outside project root

Report URL: https://app.dingdawg.com/governance/reports/rpt_01J5KX2
─────────────────────────────────────────────

Tool called

dingdawg-governancegenerate_audit_report

Arguments forwarded from the command options above.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 56 lines · 0 tokens per session scan C c09a76362469

Subscribe to this mod's changes

audit is a command published in the GitHub repository dingdawg/dingdawg-governance (1 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 476 tokens. A static security scan graded it C with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.