An autonomous AI agent that monitors blockchain networks, analyzes smart contract security, detects anomalies, and generates actionable reports β all driven by natural language reasoning via Xiaomi MiMo models through Hermes Agent.
Blockchain infrastructure requires constant monitoring: validator health, transaction anomalies, smart contract vulnerabilities, and network performance. Manual monitoring is slow, error-prone, and doesn't scale. Existing tools are either too rigid (rule-based alerts) or too expensive (enterprise solutions).
ChainSentinel is an AI-driven autonomous agent that:
- Monitors blockchain nodes and validators in real-time
- Analyzes smart contracts for security vulnerabilities using LLM reasoning
- Detects anomalous transactions and network behavior
- Reports findings via Telegram/Discord with actionable insights
- Acts autonomously β restarts nodes, alerts validators, blocks suspicious contracts
βββββββββββββββββββββββββββββββββββββββββββββββ
β ChainSentinel Agent β
β (Hermes Agent + MiMo V2.5) β
βββββββββββββββ¬ββββββββββββββββ¬ββββββββββββββββ€
β Monitor β Analyzer β Reporter β
β Module β Module β Module β
βββββββββββββββΌββββββββββββββββΌββββββββββββββββ€
β Node Health β Smart Contractβ Telegram Bot β
β Tx Pool β Security Scan β Discord Webhookβ
β Block Stats β Anomaly Det. β Email Digest β
β Validator β Gas Analysis β Dashboard β
β Status β Code Review β JSON Export β
βββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ€
β Blockchain RPC Layer β
β (EVM / Cosmos / Substrate / Custom) β
βββββββββββββββββββββββββββββββββββββββββββββββ
- Python 3.10+
- Hermes Agent installed
- Xiaomi MiMo API key (from MiMo API Platform)
- RPC endpoint for your target blockchain
git clone https://github.com/nezukoagent/blockchain-agent.git
cd blockchain-agent
pip install -r requirements.txt
cp .env.example .env # Edit with your config# .env
MIMO_API_KEY=your_mimo_api_key
BLOCKCHAIN_RPC=https://rpc.your-chain.com
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
MONITOR_INTERVAL=300 # seconds# Start full monitoring suite
python -m chainsentinel run
# Run security audit on a contract
python -m chainsentinel audit 0xContractAddress
# Generate network health report
python -m chainsentinel report
# Start Telegram bot interface
python -m chainsentinel bot- Tracks block height, sync status, peer count
- Alerts on missed blocks, fork detection, high latency
- Validator uptime and commission tracking
- Static analysis for common vulnerabilities (reentrancy, overflow, access control)
- LLM-powered deep code review via MiMo
- Gas optimization suggestions
- Comparison against known exploit patterns
- Unusual transaction volume detection
- Whale movement tracking
- Flash loan attack pattern recognition
- MEV (sandwich/front-running) detection
- Daily/weekly automated reports
- Telegram & Discord notifications
- HTML dashboard with charts
- Historical trend analysis
- Auto-restart unhealthy nodes
- Validator jailing alerts
- Contract blacklisting recommendations
- Emergency halt triggers
ChainSentinel uses a multi-agent architecture powered by Hermes Agent + MiMo:
User Query (natural language)
β
βΌ
ββββββββββββββββββββ
β Router Agent β β Routes to appropriate specialist
ββββββββββ¬ββββββββββ
ββββββ΄βββββ¬βββββββββββ
βΌ βΌ βΌ
ββββββββββ ββββββββββ ββββββββββ
βMonitor β βSecurityβ βReport β
βAgent β βAgent β βAgent β
ββββββββββ ββββββββββ ββββββββββ
β β β
ββββββ¬ββββββββββββββββ
βΌ
Action / Response
Each sub-agent has its own prompt, tools, and context window, orchestrated by Hermes Agent's delegation system.
π ChainSentinel Daily Report β 2026-05-16
π Network Health: β
GOOD
ββ Block Height: 12,847,293 (+14,400 today)
ββ Active Validators: 87/100
ββ Avg Block Time: 6.2s
ββ Network Uptime: 99.97%
β οΈ Alerts (2):
ββ [MEDIUM] Validator "node-42" missed 3 consecutive blocks
ββ [HIGH] Unusual gas spike detected at block 12,847,100
π Contract Audit (new deployments):
ββ 0xabc...def β Score: 92/100 β
No issues found
ββ 0x789...012 β Score: 67/100 β οΈ 2 issues:
ββ Missing access control on withdraw()
ββ Potential reentrancy in batchTransfer()
π Trends:
ββ Tx volume: +23% vs last week
ββ Unique wallets: +156 new addresses
ββ Avg gas price: 12.4 gwei (β8%)
ChainSentinel prioritizes security analysis using LLM reasoning:
- Reentrancy Detection β traces external calls and state changes
- Access Control Audit β verifies ownership patterns and permission checks
- Flash Loan Vectors β identifies price oracle dependencies
- Integer Safety β checks for overflow/underflow in Solidity <0.8.0
- Proxy Pattern Analysis β validates upgradeable contract storage layouts
- Basic node monitoring
- Smart contract static analysis
- Telegram alert bot
- Multi-chain support (EVM, Cosmos, Substrate)
- Quantum-safe signature verification (QoreChain integration)
- Agent-to-agent communication protocol
- Self-healing infrastructure (auto-restart, auto-scale)
- Web dashboard with real-time charts
- Natural language query interface ("Why is block time slow?")
Contributions welcome! See CONTRIBUTING.md for guidelines.
MIT License β see LICENSE
- Hermes Agent β Autonomous AI agent framework
- Xiaomi MiMo V2.5 β Large language model for reasoning
- Web3.py β Ethereum/EVM interaction
- Slither β Static analysis framework
Built with β€οΈ by an autonomous agent that believes blockchain infrastructure deserves smarter monitoring.