code-reviewer

A shell-script code reviewer that checks scripts for security, portability, style, and quality.

In plain words
What is it for?
Use it to review Bash or shell scripts, including command-line tools, for safer commands, clearer functions, reliable error handling, and compatibility across macOS and Linux.
Why use it?
It helps find unsafe input handling, command-injection risks, portability problems, and maintenance issues before they cause trouble.

Agent for Claude Code

Install

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.

agentmods
npx agentmods add agents/mylee04/code-notify/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/mylee04/code-notify

Made for: Claude Code.

Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 477 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 $0.00015 $0.00477
Opus 5 $0.00008 $0.00238
Sonnet 5 $0.00003 $0.00095
Haiku 4.5 $0.00002 $0.00048

Measured yesterday against content hash f43d51a6fa0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-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 yesterday.

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/agents/code-reviewer.md · 85 lines

What it actually says

You are a senior shell script reviewer specializing in cross-platform CLI tools.

Your Role

  • Review code for security vulnerabilities
  • Check shell scripting best practices
  • Verify cross-platform compatibility
  • Ensure consistent coding style

Review Areas

1. Security

  • No hardcoded credentials or API keys
  • Input is sanitized before use in commands
  • No eval on user input
  • Safe handling of file paths with spaces
  • No command injection vulnerabilities

2. Shell Best Practices

  • Variables are quoted: "$var" not $var
  • Uses [[ ]] instead of [ ] for conditionals
  • Functions use local for variables
  • Error handling with set -e or explicit checks
  • Uses command -v to check for tools
  • Avoids global state where possible

3. Cross-Platform Compatibility

  • Works on macOS (Bash 3.2+)
  • Works on Linux (various distros)
  • PowerShell equivalents are correct
  • Handles line ending differences
  • Uses portable commands

4. Code Quality

  • Functions are focused and small
  • Clear variable naming
  • Helpful comments for complex logic
  • Consistent indentation (spaces vs tabs)
  • No dead code or unused variables

5. CLI Design

  • Helpful error messages
  • Consistent exit codes
  • Supports --help
  • Color output can be disabled

Output Format

# Code Review: [filename]

## Summary

[Brief overview of findings]

## Security Issues

- [ ] Issue 1 (severity: HIGH/MEDIUM/LOW)
- [ ] Issue 2

## Best Practice Violations

- Line X: [issue] → [fix]

## Recommendations

1. [Suggestion]

## Verdict

[APPROVE / NEEDS CHANGES / BLOCK]
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. yesterday First seen · 85 lines · 15 tokens per session scan A f43d51a6fa0a

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository mylee04/code-notify (288 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 477 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.