<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: defidaddydavid</title>
    <description>The latest articles on DEV Community by defidaddydavid (@defidaddydavid).</description>
    <link>https://dev.to/defidaddydavid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3824807%2Fddba4f63-c12a-46a6-a329-78221a3cba11.png</url>
      <title>DEV Community: defidaddydavid</title>
      <link>https://dev.to/defidaddydavid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/defidaddydavid"/>
    <language>en</language>
    <item>
      <title>I Built a 12-Agent AI Swarm That Debates Crypto Predictions (Open Source)</title>
      <dc:creator>defidaddydavid</dc:creator>
      <pubDate>Sun, 15 Mar 2026 03:52:59 +0000</pubDate>
      <link>https://dev.to/defidaddydavid/i-built-a-12-agent-ai-swarm-that-debates-crypto-predictions-open-source-1k98</link>
      <guid>https://dev.to/defidaddydavid/i-built-a-12-agent-ai-swarm-that-debates-crypto-predictions-open-source-1k98</guid>
      <description>&lt;p&gt;What if instead of asking one AI for a prediction, you made 12 AI agents with different personalities argue about it?&lt;/p&gt;

&lt;p&gt;That's what I built. &lt;strong&gt;PolySwarm&lt;/strong&gt; is an open-source multi-agent forecasting engine where AI agents with distinct market personas — macro analyst, quant trader, contrarian skeptic, options flow reader, etc. — independently estimate probabilities, then debate across multiple rounds and update their beliefs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zqos74rz1dy6c5c1txe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zqos74rz1dy6c5c1txe.png" alt=" " width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Exists
&lt;/h2&gt;

&lt;p&gt;Single-model predictions are noisy. Research from IARPA and Philip Tetlock's superforecasting work shows that &lt;strong&gt;aggregating diverse, independent forecasters&lt;/strong&gt; consistently beats individual experts. PolySwarm applies that principle to AI agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;python main.py forecast "Will BTC hit $150k before 2027?" --odds 0.25&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;23 live data sources&lt;/strong&gt; are fetched in parallel — Binance spot/futures, Deribit options chain, DeFi Llama TVL, Fear &amp;amp; Greed Index, Polymarket odds, funding rates, liquidation data, Reddit sentiment, and more.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;12 agents&lt;/strong&gt; each receive the data and independently produce a probability estimate with reasoning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Debate rounds&lt;/strong&gt; — agents see each other's estimates and reasoning, then update (or defend) their positions. Genuine belief updating, not just averaging.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;10 aggregation methods&lt;/strong&gt; combine the final estimates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weighted arithmetic mean&lt;/li&gt;
&lt;li&gt;Trimmed mean (outlier-resistant)&lt;/li&gt;
&lt;li&gt;Bayesian updating&lt;/li&gt;
&lt;li&gt;Extremized aggregation (IARPA/Tetlock method)&lt;/li&gt;
&lt;li&gt;Surprisingly Popular algorithm (Prelec, &lt;em&gt;Nature&lt;/em&gt; 2017)&lt;/li&gt;
&lt;li&gt;Logarithmic opinion pool&lt;/li&gt;
&lt;li&gt;Cooke's Classical Model&lt;/li&gt;
&lt;li&gt;Meta-probability weighting&lt;/li&gt;
&lt;li&gt;Neutral pivoting&lt;/li&gt;
&lt;li&gt;Coherence-weighted synthesis&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Game theory diagnostics&lt;/strong&gt; check for herding, information cascades, and Nash equilibrium.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Two Modes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Forecast Mode&lt;/strong&gt; — binary probability estimation:&lt;/p&gt;

&lt;p&gt;python main.py forecast "Will ETH flip BTC market cap by 2028?"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scenario Mode&lt;/strong&gt; — simulate how a crowd of crypto investors would react to a hypothetical event:&lt;/p&gt;

&lt;p&gt;python main.py scenario "SEC bans crypto staking in the US"&lt;/p&gt;

&lt;p&gt;This returns crowd sentiment, predicted market moves, and second-order effects.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python&lt;/strong&gt; with async data fetching&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Any LLM&lt;/strong&gt; — Claude, GPT-4o, Llama via Ollama (free/local), or any OpenAI-compatible API (Groq, Together, etc.)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rich&lt;/strong&gt; terminal UI with branded theme&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI&lt;/strong&gt; REST API with optional auth&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite&lt;/strong&gt; for calibration tracking (Brier scores per agent)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redis&lt;/strong&gt; caching for data sources&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker&lt;/strong&gt; ready — &lt;code&gt;docker compose up&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugin system&lt;/strong&gt; — add a data source by dropping a single Python file, zero config&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Makes It Different From "Just Prompting GPT"
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Single LLM Call&lt;/th&gt;
&lt;th&gt;PolySwarm&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Perspectives&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;12 distinct personas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data&lt;/td&gt;
&lt;td&gt;Whatever's in training&lt;/td&gt;
&lt;td&gt;23 real-time sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aggregation&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;10 peer-reviewed methods&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Calibration&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Brier score tracking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bias detection&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Herding, cascade, Nash checks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Debate&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Multi-round belief updating&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/defidaddydavid/polyswarm.git
&lt;span class="nb"&gt;cd &lt;/span&gt;polyswarm
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
&lt;span class="c"&gt;# Add your API key (Anthropic, OpenAI, or use Ollama for free)&lt;/span&gt;
python main.py forecast &lt;span class="s2"&gt;"Will Bitcoin hit &lt;/span&gt;&lt;span class="nv"&gt;$200k&lt;/span&gt;&lt;span class="s2"&gt; by end of 2027?"&lt;/span&gt;

Works with Ollama &lt;span class="k"&gt;for &lt;/span&gt;completely free, &lt;span class="nb"&gt;local &lt;/span&gt;inference — no API key needed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;&lt;br&gt;
GitHub: &lt;a href="https://dev.tourl"&gt;github.com/defidaddydavid/polyswarm&lt;/a&gt;&lt;br&gt;
Live Site &amp;amp; Docs: &lt;a href="https://dev.tourl"&gt;defidaddydavid.github.io/polyswarm&lt;/a&gt;&lt;br&gt;
Part of: PlimaFlow (&lt;a href="https://dev.tourl"&gt;plimaflow.com&lt;/a&gt;)&lt;br&gt;
MIT Licensed. Feedback, issues, and PRs welcome.&lt;/p&gt;

&lt;p&gt;If you're interested in prediction markets, superforecasting, or multi-agent AI systems, I'd love to hear what questions you'd throw at it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
