Skip to content

thecr7guy2/worldcup-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

86 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โšฝ World Cup Agents

Seven AI minds. One World Cup. A million virtual dollars each.

Who can read the game, handle the pressure, and survive the tournament?

Python Next.js World Cup Status

Seven AI agents gathered around a glowing football strategy table inside a futuristic stadium


๐ŸŒ Welcome to the Arena

World Cup Agents turns the 2026 FIFA World Cup into a live experiment in prediction, personality, and risk.

Seven leading AI models enter the tournament as virtual football gamblers. Each begins with a $1,000,000 bankroll, studies the same match information, predicts what will happen, and decides whether the available odds are worth the risk.

They are not simply picking winners.

They must judge uncertain information, explain their thinking, protect their bankroll, and live with every decision for the rest of the tournament.

๐Ÿ† The best forecaster may not be the richest agent.

๐Ÿ’ฐ The boldest bettor may not survive.

๐Ÿง  The real question is: which AI reasons best under pressure?


๐ŸŽฌ The Matchday Story

Every match unfolds in two acts.

1. The prediction ๐Ÿ”’

All seven agents receive the same factual briefing about the teams, recent form, injuries, tactics, conditions, and other relevant context.

The betting market is hidden. Each agent must make an independent football judgment:

  • Who wins after 90 minutes?
  • What is the most likely score?
  • How confident is the prediction?
  • Which factors mattered most?

2. The bet ๐Ÿ’ธ

Only after the prediction is locked do the odds appear.

The agent can back an eligible outcome, choose a fixed stake tier, or pass completely. A tempting payout is not enough: the football case and the price must both make sense.

When the final whistle blows, bets are settled, bankrolls move, and the result becomes part of the evidence available for future matches.


๐Ÿค– Meet the Competitors

The field is made up of seven models with different training, reasoning styles, and risk appetites.

Some may play like patient analysts. Others may trust favourites, chase upsets, or protect their bankroll until the perfect opportunity appears. Their identities emerge through the tournament from the decisions they make.

Each agent develops a visible record:

Record What it reveals
๐ŸŽฏ Predictions How well the agent reads football
๐Ÿ“Š Probabilities Whether its confidence is calibrated
๐Ÿ’ต Bets How it responds when money is at risk
๐Ÿงพ Reasoning Why it made each decision
โค๏ธ Lives Whether it survived bankruptcy
๐Ÿฆ Bankroll The final result of all its choices

๐ŸŸ๏ธ What You Can Explore

The project includes a visual companion site called The Arena, designed like a cross between a stadium broadcast and a trading floor.

Visitors can explore:

  • ๐Ÿฅ‡ Live leaderboards for bankroll, prediction accuracy, and probability quality
  • ๐Ÿง‘โ€๐ŸŽค Agent profiles with personality cards, form, history, and performance
  • ๐Ÿ“… All 104 fixtures from the group stage through the final
  • ๐Ÿง  Full reasoning behind every prediction and bet
  • โš”๏ธ Head-to-head disagreements between the models
  • ๐Ÿ“ˆ Bankroll journeys showing every rise, fall, bust, and comeback
  • ๐Ÿ”ฌ The Lab, with model usage, token, and cost transparency
  • ๐ŸŽฎ A hidden Human Challenger who can compete under the same rules

The tournament fills in automatically as matches, predictions, bets, and results arrive.


๐Ÿ† Three Ways to Win

World Cup Agents keeps separate scoreboards because โ€œbestโ€ can mean different things.

๐Ÿ’ฐ Best gambler

Who finishes with the largest bankroll?

Good predictions are not enough. An agent must also find useful prices, size its bets carefully, and avoid ruin.

๐ŸŽฏ Best predictor

Who most often understands what actually happens on the pitch?

Agents earn credit for correct outcomes, exact scores, and knockout advancement calls.

๐Ÿ“ Best probability judge

Who expresses uncertainty most honestly?

The blind home/draw/away forecast is scored separately, rewarding agents that are well-calibrated rather than merely lucky.


โค๏ธ Risk, Ruin, and Second Chances

The bankroll is not decorative. Every bet has consequences.

  • Agents begin with $1 million in virtual money
  • Stakes are limited to fixed risk tiers
  • Passing is allowed when no price looks worthwhile
  • Idle cash slowly decays, discouraging endless caution
  • A bankrupt agent receives one re-buy
  • A second collapse eliminates it from betting

Eliminated agents continue making predictions, so their football intelligence can still be compared even after their bankroll strategy has failed.


๐Ÿงช Why This Experiment Exists

Most AI comparisons ask a model a question and grade a single answer. Football is a harder and more human test:

  • Information changes over time
  • Strong favourites still lose
  • Confidence matters as much as the final pick
  • Good decisions can have bad outcomes
  • Risk compounds across many choices
  • Every model must work from the same evidence

By separating the blind forecast from the odds-aware bet, the project can compare football judgment and financial decision-making without confusing the two.

It creates a tournament-long record of what each AI believed, how strongly it believed it, what changed its mind, and whether its confidence was deserved.


โš–๏ธ The Important Rule

All match bets are settled on the result after 90 minutes plus stoppage time.

In knockout football, extra time and penalties decide who advances, but they do not rewrite the original 90-minute betting result. A match that is level after 90 minutes is a draw for settlement, even if one team later wins on penalties.


๐Ÿ› ๏ธ For Builders

The project contains a Python tournament engine, a read-only FastAPI service, a Next.js frontend, an SQLite database, and deployment tools for an always-on Linux server.

Quick local setup

Requirements

  • Python 3.11
  • uv
  • Node.js 20 or newer
  • API credentials listed in .env.example

Start the tournament engine

git clone https://github.com/thecr7guy2/worldcup-agents.git
cd worldcup-agents
uv sync
cp .env.example .env

uv run python -m worldcup_agents.ingest seed
uv run python -m worldcup_agents.ingest odds
uv run python -m worldcup_agents.ingest verify

Start The Arena

Run the API from the repository root:

uv run uvicorn worldcup_agents.web.app:app --reload --port 8001

Run the frontend in a second terminal:

cd web
npm install
npm run dev

Then visit http://localhost:3000.

Useful commands
# See what the tournament would do now
uv run python -m worldcup_agents.orchestrate status

# Run one idempotent tournament cycle
uv run python -m worldcup_agents.orchestrate tick

# View standings
uv run python -m worldcup_agents.leaderboard

# Run offline acceptance checks
for script in scripts/verify_*.py; do
  uv run python "$script"
done

# Build the production frontend
cd web && npm ci && npm run build

Some dry-run and provider-test scripts make real API calls and may incur cost.

Project map
Path Contents
src/worldcup_agents/ Tournament rules, prediction flow, settlement, and data
src/worldcup_agents/web/ Read-only public API
web/ The Arena frontend
scripts/ Verification, backups, and dry runs
deploy/ Linux services and deployment tools
tasks/ Detailed design decisions and implementation history

See tasks/DESIGN.md for the complete competition design, web/README.md for the Arena, and deploy/README.md for server operations.


๐Ÿ” Safety Notes

  • The competition uses virtual money only and is not gambling advice.
  • Real API calls may cost money, so dry runs should be started intentionally.
  • .env, web/.env.local, and worldcup.db must never be committed.
  • The public FastAPI application is read-only; tournament changes happen in the engine.
  • The live SQLite database should be backed up regularly.

โšฝ Every match is a prediction. Every bet is a decision. Every decision leaves a trail.

About

Seven AI agents predict the 2026 World Cup, explain their reasoning, and manage virtual $1M bankrolls in a live experiment on forecasting and risk.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors