Skip to content

kolyantrend/Polymira_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

168 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฎ Polymira AI โ€” Prediction Market Oracle

Polymira Banner

Polymira is an autonomous AI agent built for the Colosseum Agent Hackathon 2026.
It operates as an intelligent layer on top of Polymarket, combining real-time market data with Gemini 3.0 Flash Preview reasoning to detect mispriced prediction markets and surface high-probability insights.

Polymira runs continuously, researches independently, and publishes actionable forecasts without human intervention.


๐Ÿš€ Key Features

  • ๐Ÿค– Autonomous Agent (24/7) - Continuous monitoring and analysis via systemd service
  • ๐Ÿ” Deep Research Engine V3 - Gemini 3.0 Flash Preview + Google Search Tooling
  • ๐Ÿ“Š Real-time Scanning - Smart filtering of Polymarket events (Politics, Crypto, Finance, Sports)
  • ๐ŸŽฏ Edge Detection - AI probability vs market odds analysis (10% threshold)
  • ๐Ÿ’Ž Solana Integration - Phantom Wallet support (Desktop & Mobile)
  • ๐Ÿ“ฑ Mobile Deep Linking - Seamless wallet connection on mobile devices
  • ๐Ÿ† Reputation System - Leaderboard tracking (buyers, likers, sharers)
  • ๐Ÿฆ Social Sharing - Twitter/X integration with verification
  • ๐Ÿ” Secure Payments - 0.01 SOL per prediction unlock (Devnet)
  • ๐ŸŽจ Modern UI - Tailwind CSS + Three.js animations
  • โšก Automated GitHub Sync - Self-updating repository with latest findings
  • ๐Ÿ”’ Rate Limiting - Built-in security with Flask-Limiter

๐Ÿง  Agentic Decision Logic

Edge = True_Probability (AI) โˆ’ Market_Probability (Polymarket)

If Edge > 10%, Polymira automatically publishes a prediction card, updates the local database, and pushes changes to the GitHub repository.


โšก Live Demo (Solana Devnet)

Polymira is an AI-powered forecasting system that operates 24/7, providing automated market analysis. It automatically searches for forecasts, analyzes them using Google Search, and generates results.

  1. Visit https://forecasts.polymira.org/
  2. Switch network in Phantom wallet (Settings โ†’ Developer settings โ†’ Solana Devnet)
  3. Get SOL Dev from https://faucet.solana.com/
  4. Buy a forecast, like, repost, and add your own X

๐Ÿ›  Tech Stack

Backend: Python 3.12, Flask, Gemini 3.0 Flash Preview (google-genai), Polymarket API
Frontend: Tailwind CSS, Three.js, Lucide Icons
Blockchain: Solana Web3.js, Phantom Wallet (Desktop & Mobile Deep Linking)
Infrastructure: Nginx, Systemd, Gunicorn, Venv
APIs: Polymarket Gamma API, Google Gemini, Twitter/X


๐Ÿ— Architecture

life.py โ†’ scanner.py โ†’ brain.py (Gemini 3.0) โ†’ storage.py โ†’ forecasts.json โ†’ Web Interface

Polymira Agent runs as a systemd service (polymira-agent.service), automatically cycling every 5 hours to scan markets and publish predictions with auto-commits to GitHub.

Agent Loop (life.py)

  • Runs every 300 minutes via systemd
  • Scans Polymarket events with "Freshness First" logic
  • Sends top candidates to brain.py for Google Search Grounding
  • Auto-commits predictions to GitHub as @kolyantrend

๐Ÿ›ก Security

  • .env based secrets (API keys, tokens)
  • Rate limiting with Flask-Limiter
  • Non-custodial wallet integration
  • Private Core Files:
    • brain.py - AI prediction logic & Google Search integration
    • scanner.py - Market scanning & filtering engine
    • storage.py - Data persistence layer
    • .env - Environment variables

๐Ÿ† Hackathon

Colosseum Agent Hackathon 2026
Category: AI Agent
Blockchain: Solana (Devnet)


๐Ÿ“„ License

License: MIT


๐Ÿ‘ค Author

Built by @kolyantrend


Made with โค๏ธ for Colosseum Agent Hackathon 2026

About

๐Ÿ”ฎ Polymira AI - Prediction Market Oracle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors