Purpose
web3-systemic-agent is an autonomous agent for Web3 security and governance, designed to monitor smart contracts in real time, detect DEX honeypots, and audit DAO governance security. It uses a two-stage hybrid architecture: the first stage uses zero-cost deterministic on-chain checks for gating, and the second stage uses structured Gemini LLM evaluation for deep semantic auditing. The agent implements gasless USDC micropayments on the Base network via the x402 protocol, supporting Agent-to-Agent (A2A) monetization.
Key Capabilities
Stage 1: Free On-Chain Analysis Tools (5)
- Contract Selector Scan: Free inspection of EVM bytecode to discover 4-byte function selectors and flag high-privilege administrative backdoors (such as transferOwnership, upgradeTo, mint, selfdestruct).
- Honeypot Detection: Free static analysis of DEX honeypots, rugpull traps, and malicious token contracts, detecting blacklist manipulation, arbitrary transfer taxes, transaction freeze backdoors, and SELFDESTRUCT drain traps.
- DAO Proposal Scan: Free scanning of Snapshot DAO governance proposals, extracting execution targets, native token transfers, and calldata, and detecting governance hijacking attempts.
- Transaction Pre-Check Firewall: Free assessment of EVM transaction risk, decoding calldata, detecting infinite approvals, EIP-712 phishing, and indirect prompt injection, and simulating state changes via eth_call.
- Proxy and Source Code Check: Free inspection of EIP-1967/1822/Beacon proxy storage slots, resolving implementation addresses, admins, owners, and other state, and querying Sourcify/Etherscan for verified source code.
Stage 2: Paid Deep Audit Tool (1)
- Deep Semantic Audit: After performing deterministic on-chain checks, uses Google Gemini LLM for structured reasoning, cross-validating natural language claims against bytecode, proxy state, verified source code, and calldata authenticity. Supports custom policy prompts, risk thresholds, proxy resolution, and source code retrieval.
MCP Server
Provides a server compliant with MCP specification 2024-11-05, exposing 6 tools (5 free+ 1 paid), 4 resources, and 3 prompts, compatible with Claude Desktop, Cursor, Smithery, Glama, and Coinbase AgentKit.
Autonomous Discovery and On-Chain Identity
- Proactive Contract Hunter: Autonomously discovers new contracts, tokens, and governance proposals through 5 channels requiring zero API keys and zero gas (Base new blocks, DEX pool events, GeckoTerminal, DexScreener, Snapshot DAO), and performs deduplication and two-stage triage.
- ERC-8004 On-Chain Identity: Generates and encodes an ERC-8004 registration manifest for indexing on Base mainnet.
Integrations
- Provides a Cursor rules file (.cursorrules) and an OpenClaw/ClawHub skill manifest to guide AI coding assistants to call the free tools before recommending contract interactions, escalating to the paid deep audit only when risk is flagged.
Usage
- REST API: Accessed via the FastAPI service, deployed in production on Render, with the base URL being https://web3-systemic-agent.onrender.com。
- MCP Server: Can be run with one click via uvx or pip, or connected remotely via Streamable-HTTP. See the official documentation for configuration examples.
- x402 Payments: Paid tools require a Base64-encoded EIP-3009 transfer authorization header, with tiered pricing: 0.005 USDC (/token/check), 0.01 USDC (/preflight), 0.015 USDC (/audit, /evaluate), 0.25 USDC (/audit/deep). When no payment credentials are provided, an HTTP 402 payment challenge is returned.
- Default Networks: Base mainnet (eip155:8453) and Base Sepolia (eip155:84532).
Use Cases
- Security pre-checks before smart contract deployment.
- Honeypot and rugpull detection before DEX token trading.
- Security audits of DAO governance proposals.
- Risk firewall before transaction signing.
- Inspection of proxy contracts and verified source code.
- Autonomous discovery and triage of new contracts and governance proposals.
Limitations
- Paid deep audits rely on Google Gemini LLM and require an API key and x402 payment.
- Free tools perform only deterministic bytecode analysis and do not involve LLM reasoning.
- Some features (such as Snapshot scanning) rely on external network calls, but an offline mode is provided.
- Specific effectiveness and accuracy are not quantified in the materials.
- Fees are denominated in USDC and may vary with network conditions.