explaingit

inbrainfun/inbrain

Analysis updated 2026-05-18

332TypeScriptAudience · developerComplexity · 4/5LicenseSetup · moderate

TLDR

An AI multi-agent system that detects trends, creates prediction markets, tracks their odds, and auto-resolves them, learning from its own accuracy each night.

Mindmap

mindmap
  root((Inbrain))
    What it does
      Creates prediction markets
      Tracks and resolves odds
      Nightly self improvement
    Tech stack
      TypeScript on Bun
      PGLite or Postgres
      Knowledge graph memory
    Use cases
      Trend to market pipeline
      Auto resolution
      Daily divergence reports
    Audience
      Developers
      Prediction market builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically turn a trending news event into a scored, quality-filtered prediction market.

USE CASE 2

Track real-time odds on a market and auto-resolve it once evidence confirms the outcome.

USE CASE 3

Publish daily reports on where the AI's predictions diverge most from crowd opinion.

USE CASE 4

Run a nightly self-review cycle that recalibrates future prediction accuracy.

What is it built with?

TypeScriptBunPostgreSQLPGLite

How does it compare?

inbrainfun/inbrainsimplifaisoul/osirisjason-uxui/gray-ui-csm
Stars332338319
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasy
Complexity4/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires the Bun runtime and an AI provider API key (Claude, GPT-4, or Gemini), PGLite avoids needing Docker or Postgres for local use.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Inbrain is an AI system that automatically creates, monitors, and resolves prediction markets. Prediction markets are places where people place bets on the outcome of future events (like "Will the ETH ETF be approved by Q1 2027?") and the price of a bet reflects how likely participants think the event is. Inbrain's claim is that traditional prediction platforms have no memory or context, so they cannot learn over time. This system adds a memory layer and a set of AI agents that handle the full market lifecycle. Four agents work in sequence. A Signal Agent monitors Twitter, news feeds, on-chain data, and existing prediction platforms to detect trending topics and filter them by engagement speed and influential accounts. A Brain Agent queries a stored knowledge graph to look up how similar past events resolved, then scores each candidate market for verifiability, historical similarity, and community interest, and only creates markets that clear a quality threshold. An Execution Agent monitors active markets in real time, updates the probability estimates as new evidence arrives, and automatically resolves markets when a verifiable outcome can be confirmed. An Analyst Agent publishes daily reports to Discord and Twitter covering the top markets and cases where the AI's probability estimate diverges significantly from what the crowd believes. Every night a process called the Dream Cycle runs a five-phase self-improvement loop: reviewing all past predictions for accuracy, forecasting tomorrow's high-potential markets, finding knowledge gaps in the stored data, updating a calibration model (for example, recording that crypto regulation predictions tend to be overconfident by 8%), and distributing the resulting intelligence reports to the community. The project is written in TypeScript, runs on the Bun runtime, and uses either a local embedded database or PostgreSQL for production. It supports Claude, GPT-4, and Gemini as AI providers via environment variable configuration. Setup takes a single install command and a local initialization step with no container required. The license is MIT.

Copy-paste prompts

Prompt 1
Set up Inbrain locally with PGLite and walk me through creating my first prediction market.
Prompt 2
Explain how Inbrain's Signal, Brain, Execution, and Analyst agents work together.
Prompt 3
How does the nightly Dream Cycle improve Inbrain's future prediction calibration?
Prompt 4
Show me how to configure Inbrain to use Claude as its AI provider.

Frequently asked questions

What is inbrain?

An AI multi-agent system that detects trends, creates prediction markets, tracks their odds, and auto-resolves them, learning from its own accuracy each night.

What language is inbrain written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, PostgreSQL.

What license does inbrain use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is inbrain to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is inbrain for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.