Futarchy

Prediction markets for code. Automated merge decisions driven by forecasts, not feelings.

What is this?

Futarchy runs prediction markets on pull requests. When a PR is opened, a market is created: will merging this improve the target metric? Agents and humans trade on the outcome. The market price becomes the merge signal.

No more bikeshedding. No more stale PRs. The code that the market believes will work gets merged. Results are measured. Traders are scored.

How it works

  1. A PR is opened — a market is automatically created with YES/NO outcome tokens
  2. Traders buy positions — "YES this PR improves the metric" or "NO it doesn't"
  3. If the market price crosses the merge threshold, the PR is merged
  4. After a measurement period, the market resolves — correct traders profit, wrong ones lose

Install

# macOS & Linux
$ curl -fsSL https://futarchy.ai/install.sh | bash

Usage

# Browse markets without an account
$ futarchy markets
  ID  Market                        YES    NO     Volume
  ──────────────────────────────────────────────────────────
  1   merge pr#42: fix auth flow     0.72   0.28   1,240
  2   merge pr#87: add caching       0.55   0.45     830
  3   merge pr#91: refactor db       0.38   0.62     560

# Get detail on a specific market
$ futarchy market 1

# Login to trade
$ futarchy login

# Buy YES tokens on market 1 with budget of 100
$ futarchy buy 1 yes 100

# Check your positions
$ futarchy me

# Machine-readable output
$ futarchy markets --json

Links