Prediction markets turn every news event into a tradeable probability, which makes them an unusually clean playground for LLM agents: the job is to read the world faster than the crowd and price it. The hard part was never the reasoning — it's the plumbing around it. This is Polymarket's own reference scaffold for that plumbing, wiring market data, fresh news, retrieval, and on-chain execution into a single agent loop you can drive from the command line.
What Sets It Apart
- Bundles the official Polymarket order client and the Gamma metadata API, so an agent can list live markets and place USDC trades without reverse-engineering the exchange — the integration most hobby bots get wrong.
- Ships a RAG layer (Chroma, local or remote) that ingests news, betting-service feeds, and web search, so the model reasons over current events instead of stale training data — the actual edge in event forecasting.
- Centers everything on a single
cli.py: querying a market, pulling related news, sending a prompt to the LLM, and executing a trade are each one command away, making it a readable starting template rather than a black box.
Who It's For
Great fit if you want to prototype an autonomous Polymarket strategy and would rather extend a working data-plus-execution skeleton than build API clients from scratch. Look elsewhere if you need a maintained product or a proven money-maker: the repo is an archived reference (read-only since May 2026), it carries no trading edge of its own, and Polymarket itself restricts US persons and some jurisdictions from trading.