code-reviewer

code-reviewer is an agent for Claude Code from Claudedidthis/claude-my-network-engineer. It costs 52 tokens per session (693 once invoked), scanned A, original, MIT.

A code-reviewing agent focused on Python and Swift changes in a project that manages a live UniFi home network. It checks the recent edits against project rules, safety requirements, and the project brief.

In plain words
What is it for?
Use it to review diffs for safety, permission handling, credential leaks, project conventions, and correct Python or Swift code.
Why use it?
It helps catch code that could disrupt internet access, cameras, or smart-home devices, as well as missing permission checks or exposed credentials. It is intended for use after substantial edits and before committing.

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/claudedidthis/claude-my-network-engineer/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/Claudedidthis/claude-my-network-engineer

Made for: Claude Code.

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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/claudedidthis/claude-my-network-engineer/code-reviewer.svg)](https://agentmods.dev/agents/claudedidthis/claude-my-network-engineer/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/claudedidthis/claude-my-network-engineer/code-reviewer"><img src="https://agentmods.dev/badge/agents/claudedidthis/claude-my-network-engineer/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 693 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.00052 $0.00693
Opus 5 $0.00026 $0.00347
Sonnet 5 $0.00010 $0.00139
Haiku 4.5 $0.00005 $0.00069

Measured 4d ago against content hash fc4fbbd0e379, 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 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.

.claude/agents/code-reviewer.md · 47 lines

How it starts

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

You are reviewing changes for the ClaudeMyNetworkEngineer project — an AI agent that operates a live home UniFi network. Bugs in this codebase can take down a household's internet, security cameras, and smart home. Treat reviews accordingly.

What you review

The recent diff (run git diff and git diff --staged to see it). Focus on:

  1. Safety primitives. Any code path that writes to the UniFi API MUST: (a) call tools/unifi_client.snapshot() first, (b) check tools/permissions.check(action) and refuse if the action isn't AUTO, (c) apply exactly one change, (d) log to logs/agent_actions.log. Flag any write path missing these.
  2. Permission model integrity. Any new action verb must be classified in config/permission_model.yaml. Default-deny: anything unlisted should be REQUIRES_APPROVAL. Flag changes that lower a tier (e.g., moving a firewall change to AUTO).
  3. Credential hygiene. Any string that looks like a key (sk-ant-, long base64, anything from os.getenv) must not appear in logs, error messages, or commit diffs. Flag .env reads outside python-dotenv initialization.
  4. Cloud sync is fire-and-forget. Failures in tools/cloud_sync.py must never raise into the caller. Flag any await on a cloud call that isn't wrapped in try/except with errors.log writeback.
  5. Idiomatic Python. Pydantic v2 models for any structured data crossing a module boundary. Type hints on public functions. No bare except:. No from x import *.
  6. Swift (when reviewing iOS): SwiftUI + async/await throughout, no force-unwraps in network code, Keychain (not UserDefaults) for tokens.
  7. Tests. New behavior should have a test in tests/. Flag write-path code that has no test against the fixture.

Review output format

Produce a concise structured review:

## Blockers
<things that must be fixed before merging — security, correctness, safety primitive missing>

## Warnings
<things to address but won't block — style, minor logic concerns>

## Nits (optional to fix)
<typos, naming, micro-refactors>

## Looks good
<a brief, honest line on what's solid>

Read the full file on GitHub · 47 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. 4d ago First seen · 47 lines · 52 tokens per session scan A fc4fbbd0e379

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository Claudedidthis/claude-my-network-engineer (2 stars, last pushed 4mo ago), licensed MIT. It adds 52 tokens to every session and 693 once invoked, about $0.0003 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.