Skip to content
0

0xCypherpunkAI

Where Speed Meets Consensus

Created on 29th June 2025

•

0

0xCypherpunkAI

Where Speed Meets Consensus

The problem 0xCypherpunkAI solves

The Problem We're Tackling 🤔
Smart contract security is crucial, but getting timely feedback can be difficult. Full security audits by experts are the best way to ensure a contract is safe, but they take time and can be expensive, making them best suited for final, production-ready code. 🗓️ During the day-to-day development process, teams need a faster way to check for common mistakes and oversights without slowing down their workflow. Automated tools can help, but sometimes they produce a lot of warnings, and it can be time-consuming to sort through them to find what's important. ⚠️

What 0xCypherpunkAI Is For 🛠️
0xCypherpunkAI is designed to be a practical tool for developers and security researchers, acting as a quick and helpful first-pass security scanner.
It helps make security a more regular part of the development cycle. You can scan your entire repository and get a report in seconds, making it easy to run a check before you commit your code. ⚡ This helps catch common issues early on, much like a code linter finds style errors.

Our tool uses a set of three agents that run the same analysis in parallel. 🤖🤖🤖 A potential issue is only reported if a majority of the agents agree on it. This consensus approach helps to filter the results, aiming to provide a more focused list of meaningful findings.

It also serves as an educational resource. 📖 Each finding in the report comes with a straightforward explanation of the potential risk and a practical recommendation on how to address it. This can help developers learn more about common security patterns as they build.

For security professionals, it can speed up the initial review process by quickly identifying common vulnerabilities, allowing them to dedicate more of their time to analyzing the complex, business-specific logic that automated tools often miss. 🕵

Challenges I ran into

The Memory Monster: From 11 AI Brains to a 3-Agent Consensus

Our biggest challenge was a direct confrontation with the practical limits of running multiple large language models (LLMs) locally.

The Initial Vision and The Wall 💥

Our original plan was ambitious: create an ensemble of 11 specialized AI agents. Each agent would have its own area of expertise—one for reentrancy attacks, another for access control, and so on. We believed that by having each agent run its own LLM instance to analyze the code from a unique perspective, we could achieve unparalleled depth in our security audit.

This vision crashed into reality the moment we tried to run it. The resource consumption was astronomical. With each agent attempting to load a multi-gigabyte language model into RAM, the system would immediately grind to a halt, consume all available memory, and eventually crash. It was slow, unstable, and completely unusable. The dream of 11 concurrent AI brains was, on local hardware, a nightmare.

Diagnosing the Problem

The root cause was a fundamental architectural flaw in our initial design. We had treated each "agent" as a heavyweight, independent entity that needed its own LLM. This 1:1 relationship between an agent and a loaded model was unsustainable. We realized our goal wasn't just to "use AI," but to build a fast, reliable, and accessible security scanner. The current path was failing on all three counts.

The Pivot to a Heuristic & Consensus Model

This roadblock forced us to completely rethink the role of the agents within the ElizaOS framework. The "aha!" moment came when we decided to decouple the concept of an "agent" from the resource-intensive "LLM."

This led to our solution:

  1. Remove the LLM-based analysis entirely. We replaced the slow, open-ended AI analysis with a highly optimized, deterministic heuristic engine. This engine uses a suite of finely-tuned regular expressions and static analysis patterns to find common vulnerabilities instantly.

  2. Repurpose Agents as Parallel Workers. Instead of being individual "brains," the agents became lightweight, parallel task runners. We reduced the number from 11 to 3 to keep the process lean. Their new job was simple: all three agents would run the exact same heuristic analysis on the code, but simultaneously.

  3. Introduce a VoteEngine for Consensus. This was the key to making the system intelligent without the LLM overhead. All findings from the three agents are fed into a central VoteEngine. A vulnerability is only confirmed and included in the final report if a majority of the agents (i.e., at least 2 out of 3) agree on it. This consensus mechanism brilliantly filters out false positives and increases the reliability of the findings.

The Result ✅

By making this pivot, we transformed the project from an unusable memory hog into a lightning-fast and stable application.

  • Performance: Scan times dropped from several minutes (when it didn't crash) to under 30 seconds.
  • Resource Usage: RAM consumption became negligible.
  • Reliability: The consensus model made the results more trustworthy and less noisy.

This hurdle taught us a valuable lesson: the power of a multi-agent framework isn't just in running multiple AIs. It's in the creative orchestration of parallel tasks to solve a problem—in our case, creating a fast, reliable security tool through agent-driven consensus.

Discussion

Builders also viewed

See more projects on Devfolio