security-reviewer

security-reviewer is an agent for Claude Code from protokol/solidity-typescript-hardhat-template. It costs 16 tokens per session (1,596 once invoked), scanned A, original, MIT.

A code-review agent for Solidity, the programming language used for many blockchain smart contracts. It reads the contract source and checks its security, incentive design, and use of OpenZeppelin, a common smart-contract library.

In plain words
What is it for?
It reviews Solidity contracts, including access control, state-changing functions, inheritance, and available OpenZeppelin components.
Why use it?
It helps find contract-specific security problems and avoids advice based only on assumptions or outdated library versions.

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/protokol/solidity-typescript-hardhat-template/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/protokol/solidity-typescript-hardhat-template

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/protokol/solidity-typescript-hardhat-template/security-reviewer.svg)](https://agentmods.dev/agents/protokol/solidity-typescript-hardhat-template/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/protokol/solidity-typescript-hardhat-template/security-reviewer"><img src="https://agentmods.dev/badge/agents/protokol/solidity-typescript-hardhat-template/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,596 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.00016 $0.01596
Opus 5 $0.00008 $0.00798
Sonnet 5 $0.00003 $0.00319
Haiku 4.5 $0.00002 $0.00160

Measured 4d ago against content hash 6b7444b25075, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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/security-reviewer.md · 169 lines

How it starts

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

Security Reviewer

You are a Solidity security reviewer. Analyze smart contracts for vulnerabilities, incentive design issues, and adherence to OpenZeppelin best practices.

Before reviewing any contract, always read the actual source files first. Do not generate generic advice — base every finding on code you have read.

Review Methodology

  1. Read before reviewing: Read the project's contracts first. Understand existing imports, inheritance chains, and how contracts interact before flagging anything
  2. Library-first rule: Before flagging missing logic, check if an OpenZeppelin component already handles it. Never recommend custom code when OZ has a solution
  3. Version awareness: Do not assume override points from prior knowledge — verify by reading the installed OZ source in node_modules/@openzeppelin/contracts/. Functions that were virtual in v4 may not be in v5
  4. Pattern discovery: Check node_modules/@openzeppelin/contracts/ directory structure for available components before suggesting implementations

Security Checklist

Access Control

  • Verify all state-changing functions have appropriate access modifiers (onlyOwner, etc.)
  • Check that Ownable constructor receives initialOwner parameter (OpenZeppelin v5)
  • Ensure no unprotected selfdestruct or delegatecall

Reentrancy

  • Check for external calls before state changes (checks-effects-interactions pattern)
  • Verify ReentrancyGuard is used where needed
  • Look for cross-function reentrancy risks

Token Standards

  • ERC20: Verify _update override resolves diamond inheritance correctly, check for approve race condition mitigations
  • ERC721: Verify _update and _increaseBalance overrides, check tokenURI implementation
  • ERC1155: Verify _update override, check uri implementation, validate batch operations

Integer Safety

  • Solidity 0.8.x has built-in overflow checks, but verify unchecked blocks are safe
  • Check for division by zero scenarios

Read the full file on GitHub · 169 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 · 169 lines · 16 tokens per session scan A 6b7444b25075

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository protokol/solidity-typescript-hardhat-template (48 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 1,596 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.

Related

Other agents, from other repositories

blockchain-smart-contract-auditor

AI agent for auditing smart contracts and blockchain security.

viksant/vibe-coding-tools-content · 9 tokens

librarian

Researches external libraries and APIs by reading source code. Returns definitive, source-verified answers.

can1357/oh-my-pi · 23 tokens

chainaware-marketing-director

Full-cycle marketing campaign orchestrator for Web3 platforms. Takes a wallet list (or single wallet), a plain-text platform description, and a campaign goal — then orchestrates ChainAware's specialist subagents to produce a complete Marketing Campaign Brief: segmented audience, prioritized leads, whale roster…

ChainAware/behavioral-prediction-mcp · 244 tokens

chainaware-token-launch-auditor

Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…

ChainAware/behavioral-prediction-mcp · 247 tokens

chainaware-cohort-analyzer

Segments a batch of wallets into behavioral cohorts using ChainAware's Behavioral Prediction MCP. Runs predictivebehaviour and predictivefraud on each wallet, then groups them into meaningful cohorts (Power DeFi Users, NFT Collectors, New/Inactive, High-Risk, Bots/Fraud, etc.) with cohort statistics and a recommended…

ChainAware/behavioral-prediction-mcp · 233 tokens

chainaware-gamefi-screener

Screens wallets connecting to a Web3 game or P2E (Play-to-Earn) platform using ChainAware's Behavioral Prediction MCP. Detects bot farms, multi-account cheaters, and reward abusers, then classifies legitimate players into experience tiers for matchmaking and calculates their P2E reward eligibility. Use this agent…

ChainAware/behavioral-prediction-mcp · 247 tokens