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.
/plugin marketplace add JeongJaeSoon/agent-guard/plugin install agent-guardWrote 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.
[](https://agentmods.dev/commands/jeongjaesoon/agent-guard/verify)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.envevery run would bury the findings that do matter. "Is there a secret anywhere in this directory?" is a different question: answer it withagent-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
HEADis diffed. A secret already committed inHEADor 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 linesoruntracked files), not a file path or rule, because findings are redacted. Report that line verbatim; to locate the value, suggestagent-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→ suggestagent-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.
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.
- 2mo ago Changed · +1 lines 7892e2b49444
- 2mo ago Changed scan C → A 6a0b50ae9e37
- 2mo ago Changed · +7 lines · +59 tokens per session 4259d3a973be
- 3mo ago First seen · 22 lines · 40 tokens per session scan C e8fc8187d928
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.
verify compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| verifyJeongJaeSoon/agent-guard | Command | 47 | today | MIT | A | 99 | Claude Code |
| feedbackch015/code-pentester | Command | 4 | 1mo ago | MIT | A | 21 | Claude Code |
| compliancech015/code-pentester | Command | 4 | 1mo ago | MIT | A | 32 | Claude Code |
| vach015/code-pentester | Command | 4 | 1mo ago | MIT | A | 21 | Claude Code |
| pentestch015/code-pentester | Command | 4 | 1mo ago | MIT | A | 27 | Claude Code |
| redteamch015/code-pentester | Command | 4 | 1mo ago | MIT | A | 20 | Claude Code |
| runch015/code-pentester | Command | 4 | 1mo ago | MIT | A | 33 | Claude Code |