vibeguard: Command for Claude Code

.claude/commands/vibeguard/stats.md

VibeGuard: Stats is a command for Claude Code from majiayu000/vibeguard. It costs 20 tokens per session (372 once invoked), scanned A, original, MIT.

A command that summarizes VibeGuard hook logs, which record checks that intercept or warn about actions. It reports timing, reasons, affected hooks, and recent risk activity.

In plain words
What is it for?
Use it to review the last few days or all history, inspect daily activity, or get a health snapshot for a chosen number of hours.
Why use it?
It helps you see whether VibeGuard is running and what it has blocked, instead of inspecting event logs by hand.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is majiayu000/vibeguard's own configuration. It tells Claude Code how to work on vibeguard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vibeguard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to majiayu000/vibeguard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/majiayu000/vibeguard/main/.claude/commands/vibeguard/stats.md
Clone the repo
git clone --depth 1 https://github.com/majiayu000/vibeguard

Made for: Claude Code.

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 VibeGuard: Stats

README.md
[![agentmods](https://agentmods.dev/badge/commands/majiayu000/vibeguard/stats.svg)](https://agentmods.dev/commands/majiayu000/vibeguard/stats)
Your own site
<a href="https://agentmods.dev/commands/majiayu000/vibeguard/stats"><img src="https://agentmods.dev/badge/commands/majiayu000/vibeguard/stats.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00020 $0.00372
Opus 5 $0.00010 $0.00186
Sonnet 5 $0.00004 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 6d ago against content hash 9c026752b80a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

VibeGuard: Stats scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/vibeguard/stats.md · 35 lines

What it actually says

Core Features

  • Analyze hook trigger logs in ~/.vibeguard/events.jsonl
  • Output interception/warning/release statistics, distribution by hook, top 5 reasons, and daily trigger volume
  • Supports health snapshot mode: risk rate, Top risk hook, Top 10 recent risk events
  • Help users understand whether VibeGuard is working and what is blocked

Steps

  1. Run the corresponding script according to the parameters:

    if [[ "${ARGUMENTS:-}" == health* ]]; then
      health_arg="${ARGUMENTS#health}"
      health_arg="${health_arg#"${health_arg%%[![:space:]]*}"}"
      bash ~/Desktop/code/AI/tools/vibeguard/scripts/hook-health.sh "${health_arg:-24}"
    else
      bash ~/Desktop/code/AI/tools/vibeguard/scripts/stats.sh $ARGUMENTS
    fi
    

    Parameter description:

    • No parameters: Last 7 days
    • Number (e.g. 30): Last N days
    • all: all history
    • health: health snapshot of the last 24 hours
    • health 72: Health snapshot of the last 72 hours
  2. Display the statistical results to the user. If there is an exception (such as interception is 0 but has been used for a period of time), you will be reminded to check whether the hooks configuration is correct.

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. 6d ago First seen · 35 lines · 20 tokens per session scan A 9c026752b80a

Subscribe to this mod's changes

VibeGuard: Stats is a command published in the GitHub repository majiayu000/vibeguard (41 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 372 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.