The first Self-Evolving Prediction Intelligence Network.
Inbrain is an AI-driven social prediction infrastructure built on top of GBrain's knowledge graph and long-term memory system. It transforms raw social signals into high-quality prediction markets with autonomous reasoning, continuous learning, and multi-agent collaboration.
Traditional prediction markets are amnesiac — no memory, no context, no learning. Inbrain gives prediction markets a brain.
| Feature | Traditional Platforms | Inbrain |
|---|---|---|
| Memory | None | Long-term knowledge graph |
| Market creation | Manual | AI-evaluated with quality filtering |
| Odds estimation | Crowd-only | AI + crowd wisdom hybrid |
| Resolution | Manual review | Auto-resolution with evidence verification |
| Learning | Static | Continuous self-evolution via Dream Cycle |
| Intelligence | None | Daily reports, alpha discovery, trend analysis |
Signal Agent → Brain Agent → Execution Agent → Analyst Agent
↑ ↓
└──────────── Dream Cycle (nightly) ←──────────┘
Signal Agent — Real-time event detection
- Monitors X (Twitter), news, on-chain data, Polymarket, Kalshi
- Filters by engagement velocity and KOL influence
- Emits structured prediction signals
Brain Agent — Central reasoning engine
- Queries Inbrain Memory Graph for historical context
- AI quality evaluation (verifiability, historical similarity, community potential)
- Cross-platform crowd wisdom integration
- Only markets scoring above threshold get created
Execution Agent — Market lifecycle management
- Continuous monitoring of active markets
- Real-time probability updates based on new evidence
- Auto-resolution when verifiable outcomes are found
- Brier score tracking for calibration
Analyst Agent — Intelligence output
- Daily AI reports with top markets and alpha opportunities
- Weekly trend summaries
- Alpha discovery (AI vs. crowd divergence)
- Distribution to Discord, X, and community
Every night, Inbrain runs a five-phase self-improvement cycle:
- Full Review — Analyze all markets and prediction accuracy
- Forecast Generation — Predict tomorrow's high-potential markets
- Knowledge Gap Discovery — Find and fill missing data
- Meta-Model Update — Learn calibration patterns (e.g., "KOL tweets in bull markets have 23% higher accuracy")
- Community Publishing — Auto-distribute intelligence reports
# Clone and install
git clone https://github.com/inbrain-ai/inbrain.git
cd inbrain
bun install
# Initialize local brain (2 seconds, no Docker)
bun run dev init --pglite
# Start the prediction engine
bun run dev start
# Run a one-off dream cycle
bun run dev dream# Required: AI provider
OPENAI_API_KEY=sk-...
# or
ANTHROPIC_API_KEY=sk-ant-...
# Optional: Signal sources
INBRAIN_X_BEARER_TOKEN=... # Twitter/X API
INBRAIN_NEWS_API_KEY=... # NewsAPI
# Optional: Distribution
INBRAIN_DISCORD_WEBHOOK=... # Discord reports- Hybrid search — Vector + BM25 + knowledge graph traversal
- Self-wiring knowledge graph — Auto-extracted entity relationships
- 43 curated skills — Signal capture, enrichment, querying, brain ops
- PGLite or Postgres — Zero-config local or production-scale
- AI Market Quality Engine — Filters out low-quality, unverifiable markets
- Cross-Platform Crowd Wisdom — Polymarket + Kalshi + PredictIt consensus
- Auto-Resolution — AI-verified market settlement with evidence
- Prediction Meta-Model — Self-improving calibration from historical outcomes
- Alpha Discovery — Finds markets where AI significantly diverges from crowd
Real-time Signal → AI Evaluation → Market Creation → Dynamic Monitoring
→ Auto-Resolution → Learning Reinforcement → Better Predictions
- Signal Agent detects a trending tweet about ETH ETF approval
- Brain Agent queries memory: "similar events historically resolved at 61% YES"
- Brain Agent scores quality (verifiability: 85, historical similarity: 72, community: 90)
- Market is created: "Will ETH ETF be approved by Q1 2027?" with AI estimate 58% YES
- Execution Agent monitors news, updates odds as SEC statements emerge
- When outcome is confirmed, auto-resolution triggers with evidence links
- Dream Cycle records: "crypto regulation predictions are overconfident by 8%"
- Next similar market is automatically better calibrated
- Runtime: Bun
- Language: TypeScript
- Database: PGLite (local) / PostgreSQL + pgvector (production)
- AI: Claude, GPT-4, Gemini via AI SDK
- Knowledge Graph: Auto-wiring entity extraction
- Protocol: MCP (Model Context Protocol)
- Data Sources: Twitter API, NewsAPI, Polymarket API, Kalshi API
bun run test # fast unit tests
bun run verify # pre-push checks
bun run typecheck # TypeScript validationMIT — Built on GBrain by Garry Tan (YC President).
Inbrain aims to be the global AI-native Prediction Intelligence Network — not just for crypto prediction markets, but expandable to:
- Political prediction
- Financial event forecasting
- AI agent markets
- Social trend prediction
- Real-time information verification
- Decentralized Oracle Intelligence
The goal: upgrade prediction markets from betting tools into next-generation social intelligence infrastructure.