Open source

Would it have worked?

Describe an investment strategy in plain English. An agent writes it, backtests it against history, and shows you the curve. Refine it by chatting.

Get started on GitHub
Hindsight — a backtest result with its equity curve alongside the chat that produced it

How it works

  1. 01

    Describe it

    “Short every stock Jim Cramer recommends, $10,000 start, 2016 to 2025.” That’s the whole input.

  2. 02

    The agent builds it

    Codex writes the strategy code, fetches historical prices, and runs the backtest — you watch the steps stream by.

  3. 03

    See the curve, refine it

    One chart: green if it worked, red if it didn’t. Chat to tweak rules, or change the dates and run again.

Every idea keeps its history

Each strategy lives in its own session — the code, the chat, the results. Close the app, restart the server, come back next week; everything is exactly where you left it.

  • Strategies persist across restarts
  • Change the period, run again
  • Light and dark, follows your system
The strategy list, each row showing its return and a sparkline
The agent streaming its steps while it builds and runs a strategy

An agent does the tedious part

No notebooks, no data wrangling. The agent writes the strategy, fetches prices, and runs the backtest while you watch it think. Don’t like the result? Just tell it what to change.

Historical data only. Nothing is traded.

Free, open source, yours to run

Self-hosted, MIT licensed. Bring your own agent and your own market data. Contributions welcome.