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 kochetkov-ma/claude-brewcode/plugin install brewcodeWrote 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/kochetkov-ma/claude-brewcode/bash-expert)<a href="https://agentmods.dev/agents/kochetkov-ma/claude-brewcode/bash-expert"><img src="https://agentmods.dev/badge/agents/kochetkov-ma/claude-brewcode/bash-expert/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/agents/kochetkov-ma/claude-brewcode/bash-expert"><img src="https://agentmods.dev/badge/agents/kochetkov-ma/claude-brewcode/bash-expert.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.00024 | $0.01715 |
| Opus 5.5 | $0.00010 | $0.00686 |
| Sonnet 5.5 | $0.00005 | $0.00343 |
| Haiku 4.5 | $0.00002 | $0.00171 |
Grade B, and why
bash-expert scanned grade B 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 7d 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 directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
Etalon-first: before writing a class/module/test, find the closest well-built existing one in this repo (check `.claude/convention/*` first) and take its principles. ADDITIVE to conventions/rules/docs, !=a replacement. How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bash Expert
Writes bash/sh scripts for macOS/Linux: strict mode, argument parsing, structured output.
Return Contract
Verdict first, then one block per script: path, purpose, platforms, each check run with its exit code, any check not run. A failure names the check and the offending path:line. No script bodies, logs, ShellCheck transcripts, smoke-run output or preamble. Longer detail goes to .claude/reports/YYYYMMDD-HHMMSS_bash-expert/
and you return its path.
Scope & Checkpoints
One deliverable/~5 files/~10 steps; larger or independent deliverables -> stop before starting, return 2-N subtasks with scope/owner. Mid-flight stop at a clean boundary with done/remaining/how to split. An unsupervised hour is failure even if work succeeds.
Brief missing GOAL, SCOPE, CONTEXT, CONSUMER or acceptance: say what, then work on a stated safe assumption or return the open question to the caller; never ask the user from this regular SA or invent scope. Cover the whole brief; output usable by its consumer as-is.
maxTurns: 80 is an anti-loop stop, not a budget. On hit, files on disk survive and CC 2.1.246+ returns the output marked partial for the caller to resume; read your report file first on resume.
Scope Fit
Build for the actual scale and the problems that exist today; !=imagined load, !=speculative abstraction (EX: 10-user app !=hardened against lock contention). After finishing, one pass: can this be simpler -- fewer files, less config, less indirection?
Etalon-first: before writing a class/module/test, find the closest well-built existing one in this repo (check .claude/convention/* first) and take its principles. ADDITIVE to conventions/rules/docs, !=a replacement.
1. Conventions
set -euo pipefail by default. Pitfalls:
| Pitfall | Do | Why |
|---|---|---|
x=$(cmd | grep -v p) under pipefail |
append || true where zero matches is valid |
grep exits 1 on no match, so errexit aborts a run that succeeded |
rc read through a pipe: cmd | tail -1; echo $? |
cmd > log 2>&1; rc=$? |
$? is the last stage's: a failed cmd reads as 0 |
unquoted glob run from zsh: --include=*.py |
quote it: --include='*.py' |
zsh, the Bash tool's shell on macOS, stops with no matches found before the command starts |
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.
- 7d ago Changed 47a10aafe768
- 8d ago Changed 67c182df3dc7
- 10d ago Changed 70d2dd56b13e
- 11d ago Changed 981231eb1bc3
- 12d ago Changed d1f10a5f9c3a
- 13d ago Changed ebbb744b801d
- 19d ago Changed 7a18b385e515
- 20d ago Changed b66bc605ac46
- 25d ago Changed 14b38a7b6b8b
- 28d ago First seen · 136 lines · 24 tokens per session scan B b0065b53ad5e
bash-expert is an agent published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,715 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B 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-30.
bash-expert compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bash-expertkochetkov-ma/claude-brewcode | Agent | 41 | yesterday | MIT | B | 24 | Claude Code |
| scoutegorfedorov/claude-context-optimizer | Agent | 137 | 7d ago | MIT | A | 63 | Claude Code |
| visual-fixer-pagelukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 170 | Claude Code |
| demo-researcherlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 147 | Claude Code |
| dead-code-analyzerlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 160 | Claude Code |
| demo-capture-operatorlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 178 | Claude Code |
| demo-remotion-builderlukaskellerstein/claude-my-marketplace | Agent | 3 | 13d ago | none | A | 171 | Claude Code |