# Phil

Author: Benny Johansson
Source: https://github.com/bennyjo/phil
Facts: Python. Apache License 2.0. A running experiment, not a release.
Canonical: https://thewalkingengineer.com/projects/phil/

An AI agent that trades short-term prediction markets and rewrites its own strategy after every resolved bet.

Phil is an experiment in an agent that improves itself. It bets on prediction markets, where people trade on whether an event will happen, such as a sports result or an earnings report. Most of its trading is simulated.

After its bets settle, Phil scores its own forecasts against the market price it paid. Then it edits its own playbook and commits the change, so the strategy's history is a record of what it learned. The measure that counts is whether its forecasts beat the market's own price, not only profit and loss.

A human owns the engine and the spending caps, and the agent can't change them. Nothing here is financial advice.

