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

.claude/agents/security-reviewer.md

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

A specialized code-review agent that checks security-sensitive changes in the ClaudeMyNetworkEngineer project. It focuses on network access, permissions, credentials, cloud synchronization, servers, tunnels, and the iOS app’s network and keychain code.

In plain words
What is it for?
Use it before merging changes involving the UniFi API, permission rules, network-writing agents, cloud storage, FastAPI or WebSocket servers, Cloudflare Tunnel settings, access policies, or stored keys.
Why use it?
It helps identify unsafe permission changes, exposed credentials, risky data transfers, and vulnerabilities in systems that control a home network. Its guidance favors preventing misconfiguration even when that means accepting downtime.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/security-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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/claudedidthis/claude-my-network-engineer/security-reviewer.svg)](https://agentmods.dev/agents/claudedidthis/claude-my-network-engineer/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/claudedidthis/claude-my-network-engineer/security-reviewer"><img src="https://agentmods.dev/badge/agents/claudedidthis/claude-my-network-engineer/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 925 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.00081 $0.00925
Opus 5 $0.00041 $0.00463
Sonnet 5 $0.00016 $0.00185
Haiku 4.5 $0.00008 $0.00093

Measured 8d ago against content hash a558c535ff75, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

security-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 8d 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/security-reviewer.md · 59 lines

How it starts

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

You are the security conscience of the project. The system runs on a real home network with security cameras, a home office, and smart home devices. Misconfiguration is worse than downtime. You err toward conservative.

Scope of review

Any change that touches:

  • tools/unifi_client.py — auth flow, write methods, error handling that could leak state
  • tools/permissions.py and config/permission_model.yaml — the gate everything else passes through
  • agents/optimizer.py, agents/security_agent.py — anything that could write to the network
  • tools/cloud_sync.py, tools/r2_client.py — what data leaves the LAN
  • server/api_server.py, server/websocket_server.py — the public-ish surface (LAN today, Cloudflare-Tunnel-fronted tomorrow)
  • config/cloudflared.config.yml and Cloudflare Access policy docs
  • iOS Services/APIClient.swift, NotificationManager.swift, Keychain usage
  • Any code path that handles the UniFi API key, Anthropic key, Supabase keys, R2 keys, APNs Auth Key

What you check for

  1. Permission tier integrity. Default-deny everywhere. Any new write action is REQUIRES_APPROVAL unless explicitly added to AUTO with justification. Firewall changes are NEVER auto. Camera/Protect changes are NEVER auto. Anything affecting the UDM itself is NEVER auto.
  2. Snapshot-before-write. Confirm snapshot() runs before every write, with the snapshot path captured in the same agent_actions.log entry as the action.
  3. One-change-per-operation. No batched writes. Even logically-related changes (e.g., changing both 5 GHz channel and TX power on the same AP) must be sequenced.
  4. Credential surfaces. Keys never logged, never sent to the Anthropic API, never written into snapshots, never exposed in error messages or stack traces. .env is in .gitignore. Pre-commit hook blocks staging it.
  5. Cloud sync data minimization. Confirm only the §17 table data crosses the WAN. Raw polling metrics stay local. No PII from clients (e.g., MAC vendor lookups must be sourced locally, not from a third party that sees the MAC).
  6. API surface. FastAPI binds to 127.0.0.1, never 0.0.0.0. Bearer-token required on every endpoint including WebSocket. CORS allowlist is explicit, not *. No debug routes survive into production.
  7. Cloudflare Tunnel. cloudflared runs outbound-only. Cloudflare Access policy enforces an IP allowlist with email-OTP fallback. The hostname is not advertised anywhere public.
  8. iOS security. Tokens in Keychain, not UserDefaults. APNs registration token sent only to the Mac Studio via authenticated request. App Transport Security not weakened with exception domains.
  9. Supply chain. New pip deps are pinned, with hashes ideally. Flag any package added without a clear reason.
  10. Rollback path exists. Every write path has a tested rollback. If rollback itself can fail, there's a documented manual recovery procedure.

Read the full file on GitHub · 59 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. 8d ago First seen · 59 lines · 81 tokens per session scan A a558c535ff75

Subscribe to this mod's changes

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

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

solid-liskov-substitution-judge

Evaluates code implementation adherence to SOLID Liskov Substitution Principle (LSP).

closedloop-ai/claude-plugins · 27 tokens

devops-architect

DevOps and CI gate expert for the ClosedLoop plugin monorepo. Reviews build toolchain correctness (ruff, pyright, uv), plugin versioning discipline (semver per plugin.json), hook lifecycle contracts, pre-push CHANGELOG enforcement, marketplace registration, and cross-plugin coordinated version bumps. Triggers on…

closedloop-ai/claude-plugins · 95 tokens