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.
npx agentmods add agents/iroha924/mumei/bash-script-reviewergit clone --depth 1 https://github.com/iroha924/mumeiWrote 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/agents/iroha924/mumei/bash-script-reviewer)<a href="https://agentmods.dev/agents/iroha924/mumei/bash-script-reviewer"><img src="https://agentmods.dev/badge/agents/iroha924/mumei/bash-script-reviewer.svg" alt="Measured on agentmods" 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 | $0.00119 | $0.01256 |
| Opus 5 | $0.00060 | $0.00628 |
| Sonnet 5 | $0.00024 | $0.00251 |
| Haiku 4.5 | $0.00012 | $0.00126 |
Grade A, and why
bash-script-reviewer 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 4d 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 — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
bash-script-reviewer
Reviews the quality of mumei's bash scripts (hooks/*.sh, hooks/_lib/*.sh). Output in English.
Input
From the user:
- A single file: a relative path such as
hooks/pre-edit-guard.sh - Multiple: space-separated, or "all hooks" / "all bash"
- Nothing specified: review all of
hooks/_lib/*.sh+hooks/*.sh
Review criteria
CRITICAL (must fix, before merge)
- Shebang is not
#!/usr/bin/env bash(hardcoded/bin/bashis less portable) - Missing
set -u(undefined-variable detection disabled) set -eenabled (mumei intentionally does not use it)- Escape hatch (
MUMEI_BYPASS=1) check missing at the top ${CLAUDE_PLUGIN_ROOT}referenced without the:-fallback- Public function missing the
mumei_prefix - gawk-only syntax used (3-argument
match($0, /.../, arr),gensub(), etc.) → does not run on BSD awk sed -iused without a fallback (BSD requires-i '')- stdin JSON string-processed with
grep/awkinstead of being parsed withjq(fragile) - Non-JSON written to stdout (breaks the hook output parser)
IMPORTANT (recommended improvements)
- Logging via raw
echoto stderr instead of themumei_log_*functions jq -r '.x'without the// emptyfallback (null/missing handling)- Temp files at fixed paths instead of
mktemp(race condition risk) - Rewriting files directly instead of using an atomic write (
tmp + mv) - Running git commands without a guard like
git rev-parse --git-dir >/dev/null 2>&1(errors in git-less environments) - Variables without a
localdeclaration (leaking scope outside the function) - Confusing a function's
returnwith the script'sexit - Discarding stderr as in
if ! command 2>&1; then(hard to debug)
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.
- 4d ago First seen · 129 lines · 119 tokens per session scan A 2a59d1558fcd
bash-script-reviewer is an agent published in the GitHub repository iroha924/mumei (2 stars, last pushed 4d ago), licensed MIT. It adds 119 tokens to every session and 1,256 once invoked, about $0.0006 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-31.
Other agents, from other repositories
qa-report-reviewer-agent
Auto-Harness reviewer subagent for sprint QA report compliance. Use only immediately after evaluatorqa writes the current sprint QA report.
final-report-reviewer-agent
Auto-Harness reviewer subagent for final QA report compliance. Use only immediately after evaluatorfinal writes the final QA report.
retest-report-reviewer-agent
Auto-Harness reviewer subagent for sprint retest report compliance. Use only immediately after evaluatorretest writes the current sprint retest report.
generator-build-integrator-agent
Action-specific Auto-Harness Generator integrator for parallel sprint implementation. Use only when the current legal action is generatorbuildparallel.
generator-build-worker-agent
Worktree-bound Auto-Harness Generator worker for one dependency graph node during generatorbuildparallel.
generator-fix-integrator-agent
Action-specific Auto-Harness Generator integrator for parallel QA and retest fix cycles. Use only when the current legal action is generatorfixparallel.