status

status is a command for coding agents from davidmoneil/aifred-document-guard. It costs 14 tokens per session (581 once invoked), scanned A, original, MIT.

A command that reports the current Document Guard configuration, rules, enabled checks, and recent audit information.

In plain words
What is it for?
Use it to inspect the active configuration, security scanning, structural and semantic checks, failure behavior, override time limits, and audit log.
Why use it?
It shows which protections are active and how the project is configured, instead of leaving that state unclear.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the document-guard plugin — 1 command, 1 hook shipped together

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.

agentmods
npx agentmods add commands/davidmoneil/aifred-document-guard/status
Clone the repo
git clone --depth 1 https://github.com/davidmoneil/aifred-document-guard

Or install document-guard, the plugin that ships this one along with the rest of its 1 command, 1 hook.

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 status

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidmoneil/aifred-document-guard/status.svg)](https://agentmods.dev/commands/davidmoneil/aifred-document-guard/status)
Your own site
<a href="https://agentmods.dev/commands/davidmoneil/aifred-document-guard/status"><img src="https://agentmods.dev/badge/commands/davidmoneil/aifred-document-guard/status.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 581 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00014 $0.00581
Opus 5 $0.00007 $0.00291
Sonnet 5 $0.00003 $0.00116
Haiku 4.5 $0.00001 $0.00058

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

Security

Grade A, and why

status scanned grade A with 1 finding 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 3d 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

tail -5 .claude/logs/document-guard.jsonl 2>/dev/null || echo "No audit log found"

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

commands/status.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/document-guard:status

Show the current state of Document Guard.

Instructions

Run the following diagnostic steps and present results:

1. Config Source

Check which config is active:

node -e "
const fs = require('fs');
const path = require('path');
const projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
const projectConfig = path.join(projectDir, '.claude', 'hooks', 'document-guard.config.js');
const pluginRoot = '${CLAUDE_PLUGIN_ROOT}' !== '' ? '${CLAUDE_PLUGIN_ROOT}' : path.resolve(__dirname, '..');
const pluginConfig = path.join(pluginRoot, 'config', 'document-guard.config.js');

let source = 'none';
if (fs.existsSync(projectConfig)) source = 'project: ' + projectConfig;
else if (fs.existsSync(pluginConfig)) source = 'plugin-default: ' + pluginConfig;
console.log('Config source: ' + source);
"

2. Current Settings

Read the active config file identified above. Report:

  • V1 enabled: yes/no
  • Credential scan: yes/no
  • Structural checks: yes/no
  • V2 (semantic): yes/no
  • Fail mode: open/closed
  • Override TTL: N seconds

3. Active Rules Table

List all rules from the config in a table:

Tier Rule Name Pattern Checks
critical ... ... ...

4. Recent Audit Log

Read the last 5 entries from .claude/logs/document-guard.jsonl (if it exists):

tail -5 .claude/logs/document-guard.jsonl 2>/dev/null || echo "No audit log found"

Format each entry showing: timestamp, action (blocked/warned/override_used), file, violations.

5. Active Overrides

Check .claude/logs/.document-guard-overrides.json for any active overrides:

cat .claude/logs/.document-guard-overrides.json 2>/dev/null || echo "No active overrides"

6. Creating a Project Override

If the user wants to customize rules, explain:

To create a project-specific config, copy the plugin default and modify it:

mkdir -p .claude/hooks
cp <plugin-config-path> .claude/hooks/document-guard.config.js

The project config takes full precedence over the plugin default.

Read the full file on GitHub · 83 lines

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. 3d ago First seen · 83 lines · 14 tokens per session scan A f9e929ce24d5

Subscribe to this mod's changes

status is a command published in the GitHub repository davidmoneil/aifred-document-guard (2 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 581 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.