AI agent for blockchain developers
Smart Contract Test and Review Agent
A well-tested contract with known gas cost and reviewed risks before deployment
What it does
On-chain code cannot be patched easily, so a missed edge case is expensive and permanent. This agent reads a contract and its intended behavior, then writes tests for normal use and for edge cases such as zero amounts, reentrancy and overflow. It runs them on a local chain and reports each failure with the exact input that caused it. It runs standard analysis checks and measures gas against the previous version. Where a test fails or a check warns, it describes the issue so the developer can fix it, then reruns everything. You approve deployment to any public network. Edge case: a function that moves funds with no access control is flagged as a blocker, whether or not a test caught it.
How it works
Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.
Read the steps as a list
- Contract ready for review
- Read the contract and its intended behavior
- Write tests for normal and edge cases
- Run tests and analysis on a local chain
- Do all tests pass with no high-severity warnings?If not: describe each failing case and warning for the developer, then rerun. Back to step 3.
- Measure gas and compare with the previous version
- Developer approves deployment to a public networkThe agent waits here for your OK.
- Test and review report with gas summary
How it decides
It treats fund-handling and access-control gaps as blockers, and marks a contract ready only when tests pass and no high-severity warning remains.
- Block on missing access control for fund functions
- Require tests for zero, maximum and repeated calls
- Flag gas increases above the set limit
Make it yours
Every agent is a starting point. You choose these settings for your own situation.
- Edge cases to always test
- Gas increase limit (default 10%)
- Analysis tools to run
- Networks allowed for deployment
What keeps you in control
It always asks you first
- Deploying to a public network
Hard limits
- Never deploys to a public network on its own
- Runs only on a local or test chain during review
It stops when
- Done: tests pass and risks reviewed
- Stop: contract does not compile
Set it up
We guide you through the set-up, step by step
Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.
- One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
- The agent then walks you through connecting your own data, one source at a time
- A downloadable copy with the flow chart, the rules and the full guide