Work/ML & Simulation

Onyx Leopard

Open-source business simulation with AI CEO agents and real economics

Typeproduct
Statusshipped
Updated2026-04-27
Commits56
SourcePublic

What it is

A local-run simulation framework where competing companies grow, take shocks and fight over market share using Cobb-Douglas production, Lotka-Volterra competition and multinomial-logit demand. AI agents at three tiers (free heuristic, Claude Haiku tactical, Claude Sonnet strategic) make CEO decisions inside the tick loop, and companies render live as force-directed graphs.

The problem

Founders cannot stress-test a business structure against shocks and competitors before it exists.

How it works

  1. FastAPI backend streams simulation ticks over SSE; one tick is one simulated day
  2. Math layer in NumPy/SciPy with ODE solvers (RK45, then BDF, then Euler fallback) and Mesa
  3. Orchestrator decides when to spawn or retire org nodes; Haiku fires every 30 ticks, Sonnet every 90, and the heuristic tier runs with no API key
  4. Poisson-arrival shocks and preloaded .oleo company profiles (JSON with SHA256 verification)
  5. Next.js 16 / React 19 canvas front end rendered with d3-force

Stack

PythonFastAPINumPySciPyMesaNext.jsReactd3-forceClaude API

Disciplines

For your business

Simulation and scenario-modeling tools that let a client stress-test strategy and org design before committing capital.