claude-my-network-engineer: Agent for Claude Code

.claude/agents/code-reviewer.md

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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is Claudedidthis/claude-my-network-engineer's own configuration. It tells Claude Code how to work on claude-my-network-engineer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-my-network-engineer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Claudedidthis/claude-my-network-engineer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Claudedidthis/claude-my-network-engineer/main/.claude/agents/code-reviewer.md
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/github.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/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.

agentmods 80×15 button for code-reviewer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00052 $0.00693
Opus 5.5 $0.00021 $0.00277
Sonnet 5.5 $0.00010 $0.00139
Haiku 4.5 $0.00005 $0.00069

Measured 2mo ago against content hash fc4fbbd0e379, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

.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. 2mo 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 6mo ago), licensed MIT. It adds 52 tokens to every session and 693 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens

code-documentation-code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.

wshobson/agents · 60 tokens

comprehensive-review-architect-review

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

wshobson/agents · 55 tokens

backend-development-security-auditor

Review code and architecture for security vulnerabilities, OWASP Top 10, auth flaws, and compliance issues. Use for security review during feature development.

wshobson/agents · 36 tokens

comment-sicko

A deranged comment-hater that savors deletion and condemns workaround code.

michael-denyer/pstack-claude · 21 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens