A hands-on implementation guide for building a six-agent AI audit pipeline for Solidity smart contracts using CrewAI. Covers project structure, agent identity design via YAML configuration, task prompt engineering with structured JSON output, context chaining between agents, and running the pipeline against a deliberately vulnerable ETH vault contract (VulnerableVault.sol) with three bugs including a logic-level accounting flaw. The pipeline successfully identifies all three vulnerabilities including one that requires understanding protocol intent rather than pattern matching. Also discusses planned extensions like Slither integration and human-in-the-loop checkpoints for critical findings.
Table of contents
A Quick Word on CrewAIProject StructureDefining the AgentsDefining the TasksGet BATIS AB ’s stories in your inboxWiring It Together in crew.pyThe Sample ContractRunning ItWhat’s Missing (Intentionally)Wrapping UpSort: