verify

verify is a command for Claude Code from JeongJaeSoon/agent-guard. It costs 99 tokens per session (748 once invoked), scanned A, original, MIT.

A command that scans the current project for exposed secrets, including staged, unstaged, and untracked files. It uses Gitleaks, a tool that detects passwords, tokens, and other secret-looking text.

In plain words
What is it for?
Use it before committing changes to find leaked credentials and identify the affected file paths and detection rules.
Why use it?
It checks whether the current files are safe to commit without relying on Git hooks, which are automatic checks that run during certain Git actions.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agent-guard plugin — 2 skills, 2 commands, 6 hooks shipped together

Good fit Use it before committing changes to find leaked credentials and identify the affected file paths and detection rules.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add JeongJaeSoon/agent-guard
Claude Code
/plugin install agent-guard

Made for: Claude Code.

Or install agent-guard, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 6 hooks.

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 verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/jeongjaesoon/agent-guard/verify/github.svg)](https://agentmods.dev/commands/jeongjaesoon/agent-guard/verify)
Your own site
<a href="https://agentmods.dev/commands/jeongjaesoon/agent-guard/verify"><img src="https://agentmods.dev/badge/commands/jeongjaesoon/agent-guard/verify/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 verify

Your own site · 80×15
<a href="https://agentmods.dev/commands/jeongjaesoon/agent-guard/verify"><img src="https://agentmods.dev/badge/commands/jeongjaesoon/agent-guard/verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00099 $0.00748
Opus 5.5 $0.00040 $0.00299
Sonnet 5.5 $0.00020 $0.00150
Haiku 4.5 $0.00010 $0.00075

Measured 2mo ago against content hash 7892e2b49444, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

verify 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 2mo 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.

plugins/agent-guard/commands/verify.md · 30 lines

How it starts

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

/agent-guard:verify

One-shot secret scan over everything the repository has pending: the worktree (git diff HEAD) and the index (git diff --cached), both compared against HEAD, plus untracked files. Backed by the bundled gitleaks rule set the agent-guard hooks already use.

The index is covered. Stage a secret and then restore the file on disk to its HEAD contents and the staged copy is still flagged, so the tracked input is a superset of what agent-guard scan-staged sees. Keeping HEAD as the base for both diffs is what makes that safe in the other direction too: stage the removal of a committed secret and then undo it on disk and nothing is reported, because relative to HEAD nothing was added. It remains a snapshot of the moment it ran, not a gate: the pre-commit hook runs scan-staged at commit time and is what actually blocks a commit.

What it does not cover:

  • gitignored paths — deliberately. Untracked input comes from git ls-files --others --exclude-standard, and flagging a local .env every run would bury the findings that do matter. "Is there a secret anywhere in this directory?" is a different question: answer it with agent-guard scan-path <dir>, which reads the filesystem directly and does cover gitignored paths and trees outside the repository.
  • history — only content that differs from HEAD is diffed. A secret already committed in HEAD or an earlier commit is not re-reported here.

Run

!"${CLAUDE_PLUGIN_ROOT}/bin/agent-guard" scan-working-tree

Interpretation

  • Exit 0, no output → no secrets detected in what was scanned. Say that, not "the directory is clean" or "safe to commit" — gitignored paths and committed history were not covered, and the result goes stale with the next edit. Then stop.
  • Exit 1 → a secret-like value was detected. The output names only the input that matched (working tree added lines or untracked files), not a file path or rule, because findings are redacted. Report that line verbatim; to locate the value, suggest agent-guard scan-path <path> or a gitleaks run the user controls. Do not propose fixes unless the user asks.
  • Exit 3 → the scan could not run. This is neither clean nor a detection; report the agent-guard: message verbatim. Two common causes:
    • required command not found: gitleaks → suggest agent-guard setup --install --gitleaks-checksum <SHA> and stop.
    • gitleaks config not found → the plugin install is incomplete; suggest reinstalling or updating Agent Guard through the owning host plugin manager, then reload the host and stop. A standalone bootstrap install does not repair a plugin cache.

Read the full file on GitHub · 30 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. 2mo ago Changed · +1 lines 7892e2b49444
  2. 2mo ago Changed scan C → A 6a0b50ae9e37
  3. 2mo ago Changed · +7 lines · +59 tokens per session 4259d3a973be
  4. 3mo ago First seen · 22 lines · 40 tokens per session scan C e8fc8187d928

Subscribe to this mod's changes

verify is a command published in the GitHub repository JeongJaeSoon/agent-guard (47 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 748 once invoked, about $0.0004 per session on Opus 5.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.

Related

verify compared with commands from other repositories

verify next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
verifyJeongJaeSoon/agent-guardCommand47todayMITA99Claude Code
feedbackch015/code-pentesterCommand41mo agoMITA21Claude Code
compliancech015/code-pentesterCommand41mo agoMITA32Claude Code
vach015/code-pentesterCommand41mo agoMITA21Claude Code
pentestch015/code-pentesterCommand41mo agoMITA27Claude Code
redteamch015/code-pentesterCommand41mo agoMITA20Claude Code
runch015/code-pentesterCommand41mo agoMITA33Claude Code