🚀 Aether: The AI Betting Agent for Developers

Tagline: Less yap, more stake. The AI betting agent that turns developer banter, coding promises, and hot takes into live prediction markets.


Inspiration

How many times have you been in a developer Discord or group chat and watched someone drop a bold claim with zero hesitation?

"I'm rewriting this entire microservice in Rust over the weekend."
"Next.js 15 wipes the floor with Remix on cold starts—bet on it."
"Solana's throughput will flip Ethereum L2s before Q4."
"I'll fix this memory leak and merge the PR before midnight, trust me."

And what actually happens? Silence. The PR never gets opened, debates spiral into 300-message reply wars with no resolution, and talk remains completely free.

We asked ourselves: What if your community had an autonomous, razor-sharp AI referee sitting right in the channel?

What if every time someone made an overconfident promise, shipped a controversial PR, or sparked a late-night tech debate, you could instantly challenge them to put their reputation on the line? An AI betting agent that locks stakes in escrow, searches the live internet and GitHub to verify the facts, pays out the winners, and liquidates the talkers.

Think your hot take is bulletproof? Let Aether check the receipts.


What it does

Aether is an autonomous AI betting agent that turns developer commitments, milestones, and technical disputes into live, stake-backed prediction markets across Discord and Telegram.

  • 🥊 1v1 Developer Duels (/aether challenge): Think you know your tech history better than your peer? Drop an open 20 REP challenge on "Kubernetes was originally developed by Google based on Borg". The second an opponent accepts, Aether locks the 40 REP pot in atomic escrow, gathers multi-source web evidence via Tavily AI, declares the winner, routes a 5% house fee to our community reward pool, and transfers the loot.
  • 📊 Live Prediction Pools (/aether market): Anyone can launch a betting market with a custom countdown (e.g. "Bitcoin will stay above $60k by 2 mins"). Community members take YES or NO positions, dynamic odds adjust in real-time as liquidity flows, and Aether's 5-second background sweeper automatically settles the pot the second time runs out.
  • 🎯 Self-Staking Commitments (/aether commit): Put your own skin in the game to kill developer procrastination. Bet 15 REP that you will "close issue #14 in fomo-ash/Forester within 2 mins". Aether monitors GitHub webhooks and API states. If you merge before the deadline, you double your stake. If you slack off, your REP gets slashed.
  • 🔬 Instant Fact-Checking (/aether check): Quick, zero-stake truth engine. Ask Aether to evaluate any complex benchmark, framework comparison, or release milestone, and it delivers a verified verdict backed by live source citations.
  • 🏆 The Uncheatable Leaderboard:
    1. Global REP: The liquid, stakeable currency won through prediction markets and peer duels.
    2. Community Impact: Non-transferrable proof-of-work clout earned exclusively by merging PRs, closing issues, and conducting code reviews.

Real-World Use Cases

Think Aether is just for casual fun? Think again. It transforms how developer communities collaborate, hire, and settle debates:

  • 🎓 The "Who Gets the Intern?" Open Source Challenge: Stop hiring based on buzzword-stuffed resumes. Maintainers and engineering leads set milestone bounties across their repository issues. Candidates compete to resolve issues and get their PRs merged. Aether's proof-of-work leaderboard objectively ranks contributors based on actual code shipped—the top of the podium gets the offer.
  • ⚔️ Settling Engineering Debates with Skin in the Game: Tired of 4-hour argument threads about whether Bun is faster than Node, or which DB schema scales better? Stop arguing and challenge each other. Stake 50 REP on a benchmark PR delivery and let Aether referee the outcome.
  • ⏱️ Sprint Deadlines & Anti-Ghosting Protocol: Development teams and hackathon squads stake REP on feature completion deadlines. Deliver before the timer and claim the bonus; miss the deadline and get liquidated. Accountability is automated.
  • 🌐 Ecosystem & Release Prediction Markets: From betting on whether Next.js 16 drops this quarter to forecasting AI benchmark milestones, communities create decentralized prediction pools that crowdsource collective developer intelligence.

How we built it

We engineered Aether to be blazing-fast, mathematically airtight, and natively omnichannel:

  • Omnichannel Ingress (Caspian SDK): Instead of building fragmented bots for every platform, we powered Aether using Caspian’s unified CommClient. Aether streams long-polling events across Discord Guilds and Telegram Groups (connectTelegram) while strictly isolating platform identities ([platform, externalId]) on a single shared state engine.
  • Asynchronous Verification Engine (BullMQ + Redis): High-frequency betting demands instant UI response. We offloaded web scraping, GitHub API evaluations, and market sweeps into background BullMQ queues (message-queue, multiplayer-queue, webhook-queue) managed by an ultra-fast 5-second market sweeper.
  • Multi-Source AI Referee (Tavily AI + Octokit + LLM): When a market or duel settles, Tavily scrapes multiple live web sources and research archives, Octokit inspects real-time GitHub repository states, and an LLM evaluates the evidence against strict confidence thresholds.
  • Atomic Ledger & Integer Dust Conservation (PostgreSQL 15 + Prisma): All escrow locks and payouts execute inside serializable PostgreSQL database transactions. Prediction market pots are distributed proportionally based on stake:

$$\text{Payout}_i = \left\lfloor \frac{\text{User Stake}_i}{\text{Total Winning Pool}} \times \text{Distributable Pot} \right\rfloor$$

Any leftover integer division dust is automatically credited to the highest contributor, guaranteeing that exactly 0 REP is lost or created out of thin air.


⚡ The Caspian Advantage (How Caspian Powered Aether)

Building a multi-platform prediction agent usually means managing a nightmare of fragmented bot frameworks, differing WebSocket protocols, and custom authentication flows. The Caspian SDK changed the game for us:

  • Unified Omnichannel Event Stream: With Caspian’s CommClient, we listen to incoming messages from both Discord and Telegram in a single, unified callback (client.onMessage). Zero duplicate bot logic, zero transport boilerplate.
  • One-Line Multi-Platform Expansion: Adding live Telegram support was as simple as calling connectTelegram. Our entire betting suite, market sweeper, and ledger worked out-of-the-box on Telegram with 100% feature parity.
  • Outbound Gateway Architecture: Caspian's outbound connection model allowed our microservices to connect live to Caspian's production gateway from containerized Docker without needing public IP addresses, domain names, or reverse proxy setups.
  • Focus on Core Product: Caspian abstracted away the communication layer so we could spend 90% of our engineering effort on atomic escrow transactions, AI refereeing, and prediction market math.

Challenges we ran into

  • Natural-Language Relative Time & UTC Date Resolution: Users express deadlines in conversational English ("within 2 mins", "by tomorrow 6pm", "before Friday"). We engineered our intent parser to calculate exact absolute UTC timestamps relative to live server clocks, preventing timezone mismatch and race conditions when scheduling automated sweeps.
  • Multiline Crypto Private Keys in Docker Environments: Passing multiline RSA .pem cryptographic private keys for GitHub App authentication through Docker Compose caused OpenSSL decoder errors when keys were truncated. We engineered an ultra-resilient key normalizer that handles base64, carriage returns, and single-line escaped strings.
  • Concurrency in Rapid-Fire Bets: When multiple users bet on the same pool within milliseconds, concurrent writes could desynchronize pool odds. We implemented atomic database increments and Redis concurrency locks so state updates remain 100% thread-safe.

Accomplishments that we're proud of

  • Battle-Tested with 20+ Fellow Developers: We ran live beta testing in our community with over 20 builders who placed 1v1 bets, tested prediction pools, and gave overwhelmingly positive feedback on how addictive putting reputation on PRs actually is.
  • True Cross-Platform Sync: You can create a prediction market in Discord, check your balance in Telegram with @Aether_betbot, and both interact with the exact same underlying state engine without duplicate code.
  • Self-Underwriting Bootstrap Economy: When a new developer joins with 0 REP, they can place a free 0 REP bootstrap bet on their first PR. If they ship, Aether funds a 20 REP starter payout using protocol fees collected from settled prediction markets.
  • Zero-Lag Market Resolution: Watching a 1-minute prediction market tick down live and automatically announce the winner with a rich payout embed in Discord feels like magic.

What we learned

  • Building on top of the Caspian SDK fundamentally shifted our approach to conversational software. Abstracting Discord, Telegram, Slack, and email into a single unified event stream allowed us to spend 90% of our hackathon time focusing on core betting mechanics, AI referee logic, and market economics.
  • Designing prediction markets for micro-communities taught us the critical importance of atomic escrow locking, integer dust preservation, and real-time odds transparency.

What's next for Aether

  • Scaling to 5,000+ Devs: Distributing across Reddit developer communities (r/webdev, r/programming, r/SideProject) and builder Discords to onboard our first 5,000+ active users.
  • 24/7 AWS Cloud Deployment: Transitioning our multi-service Docker architecture into a high-availability AWS ECS / Fargate cluster with automated scaling.
  • Crypto Stakes (On-Chain Settlement): Bridging Aether REP into an ERC-20 token or Solana SPL token so developer communities can opt-in to real crypto pots.
  • Automated CI/CD Benchmark Duels: Allowing developers to bet on automated test suites (e.g. "Bet 50 REP that this PR will shave >30% off our build time" verified directly from GitHub Actions).
  • Multi-Modal Verification: Integrating computer vision so Aether can referee visual UI bugs, design system compliance, and mobile app screenshots.

Built With

Share this project:

Updates