Simulate market demand with 128 AI consumer agents
MarketFish simulates a product launch with 128+ AI consumer agents shopping across 30 rounds, grounded in 6 academic multi-agent-market papers.
1.0.0Add to Favorites
Why it matters
Validate product-market fit before launch by simulating a digital marketplace where 128 heterogeneous AI consumers with distinct identities, budgets, and biases make purchase decisions across 30 rounds, revealing demand patterns, optimal pricing, and competitive dynamics.
Outcomes
What it gets done
Generate 128 diverse AI consumer agents with unique demographics, financial constraints, and behavioral biases using 6 different LLM providers
Run 30-round market simulations tracking purchase decisions, churn patterns, social influence, and memory-based reflections
Extract market structure and knowledge graphs from seed data to identify pain points, entities, and product opportunities
Produce evidence-based reports showing buyer profiles, survival scores, optimal pricing, and reasons competitors failed
Source
Get it from source
Spark does not host a copy of it.
Open sourceReports
Agent outcome reports
No reports yet
Overview
Market Fish
MarketFish simulates a product launch by running 128+ AI consumer agents through 30 rounds of shopping decisions, implementing six academic multi-agent-market papers (memory, time engine, recommendations, BDI cognition, stress, grounding) across 11 LLM providers, in Explore, Validate, and Hybrid modes. Use it to get evidence-based buyer profiles, pricing, and competitive dynamics before a product launch; requires at least one paid LLM API key, with cost scaling by agent count and provider diversity.
What it does
MarketFish is a multi-agent market simulation engine that, instead of asking a single LLM whether a product will succeed, builds a digital market of 128+ AI consumer agents - each with its own identity, budget, emotions, and biases - and lets them shop across 30 rounds. Their purchase decisions, churn patterns, and social influence are meant to reveal what real users would do. It's built on six academic papers and supports 11 LLM providers. A five-stage pipeline runs each simulation: ontology extraction (market structure from seed data), a knowledge graph (entities, relationships, pain points), an agent factory (128 heterogeneous consumers driven by up to 6 LLMs), the simulation itself (30 rounds of decisions, coupling, reinforcement learning, and memory), and a final report naming who bought, why, and what killed the competitors.
Six modules implement specific papers: Memory (Generative Agents, UIST 2023 - agents remember purchases, regrets, and reflections), a Time Engine (OASIS, 2025 - realistic 24-hour activation so not every agent is active every round), a recommendation system (OASIS - personalized product recommendations), BDI v2 (TwinMarket, NeurIPS 2025 - a six-step cognitive loop plus behavioral biases), Stress (EconSimulacra, 2026 - financial/social pressure adjusting willingness to pay), and Grounding (SMIF, ETASR 2026 - RAG plus rule constraints for realistic decisions).
When to use - and when NOT to
Use Explore mode to let the simulation discover and rank product directions from seed data with no input idea of your own, Validate mode to test your own product idea and get a survival score, buyer profiles, and an optimal price point, or Hybrid mode to pit your idea against AI-generated competitors in the same sandbox.
Don't expect it to be free to run at scale - at least one LLM API key is required (the project notes DeepSeek as the cheapest option), and more agents or more diverse providers mean more API spend; --reuse-agents on the CLI exists specifically to save cost by reusing previously generated agents across runs.
Inputs and outputs
Inputs are seed data (static JSON) plus, for Validate/Hybrid modes, a product name and pricing. Output is a report naming buyer profiles, survival scoring, and competitive outcomes. The project positions itself against MiroFish, a similarly-scoped multi-agent simulation project: MarketFish is scoped specifically to product-market prediction (versus MiroFish's general-purpose social simulation), runs as a single Streamlit app with zero external dependencies for memory (versus Flask+Node.js+Docker with Zep Cloud), and supports 11 LLM providers across China and global markets (versus OpenAI-compatible only).
MarketFish itself is released under the MIT License, a more permissive terms than the comparison project mentioned above.
Integrations
git clone https://github.com/Key-wxh/market-fish.git
cd market-fish
cp .env.example .env
pip install -r requirements.txt
streamlit run streamlit_app.py
At least one LLM API key must be added to .env before running. The CLI supports python run.py --mode explore, --mode validate --name "My App" --pricing "$10", and --reuse-agents to reuse previously generated agents. Supported providers span China (DeepSeek, Qwen, Doubao, Zhipu, Baidu, Hunyuan) and global (OpenAI, Anthropic, Google, Mistral, Meta).
Who it's for
Founders and product teams who want an evidence-based read on product-market fit - buyer profiles, pricing, and competitive dynamics - before launch, grounded in a multi-agent simulation rather than a single model's guess.
Source README
π MarketFish
Don't guess. Simulate.
Before you launch, let hundreds of AI consumers vote with their wallets.
MarketFish is a multi-agent market simulation engine. Instead of asking one LLM "will this product succeed?", it builds a digital market with 128+ AI consumers - each with their own identity, budget, emotions, and biases - and lets them shop across 30 rounds. Their purchase decisions, churn patterns, and social influence reveal what real users would do.
Built on 6 academic papers (Generative Agents, OASIS, TwinMarket, Agent Bazaar, EconSimulacra, SMIF) and 11 LLM providers.
Quick Start
git clone https://github.com/Key-wxh/market-fish.git
cd market-fish
cp .env.example .env
# Edit .env β add at least ONE LLM API key (DeepSeek is cheapest)
pip install -r requirements.txt
streamlit run streamlit_app.py
Open http://localhost:8501 β pick a mode β run.
Screenshots
How It Works
Seed Data (static JSON) β 5-Stage Pipeline
1. Ontology β extract market structure
2. Knowledge Graph β entities, relationships, pain points
3. Agent Factory β 128 heterogeneous AI consumers (6 LLMs)
4. Simulation β 30 rounds: decisions, coupling, RL, memory
5. Report β evidence: who bought, why, what killed competitors
V6 Modules (6 papers implemented)
| Module | Paper | What it does |
|---|---|---|
| Memory | Generative Agents (UIST 2023) | Agents remember purchases, regrets, reflections |
| Time Engine | OASIS (2025) | Realistic 24h activation - not all active every round |
| RecSys | OASIS (2025) | Personalized product recommendations |
| BDI v2 | TwinMarket (NeurIPS 2025) | 6-step cognitive loop + behavioral biases |
| Stress | EconSimulacra (2026) | Financial/social pressure β adjusted willingness to pay |
| Grounding | SMIF (ETASR 2026) | RAG + rule constraints for realistic decisions |
Modes
| Mode | Input | Output |
|---|---|---|
| π Explore | Seed data | AI discovers product directions, ranked |
| β Validate | Your product idea | Survival score, buyer profiles, optimal price |
| βοΈ Hybrid | Your product + data | Your idea vs AI competitors, same sandbox |
Supported LLM Providers
11 providers. One is enough. More = more diverse agents.
| π¨π³ China | DeepSeek, Qwen, Doubao, Zhipu, Baidu, Hunyuan |
| π Global | OpenAI, Anthropic, Google, Mistral, Meta |
CLI
python run.py --mode explore # Discover directions
python run.py --mode validate --name "My App" --pricing "$10" # Test your idea
python run.py --mode explore --reuse-agents # Reuse agents (save cost)
Project Structure
market-fish/
βββ engine/ # Core engine (20+ modules)
β βββ simulator.py, agent_factory.py # Simulation core
β βββ agent_store.py, memory.py # V6: persistence + memory
β βββ temporal.py, recsys.py # V6: time + recommendations
β βββ bdi_v2.py, stress.py, grounding.py # V6: cognition + stress + validation
βββ config/ # Model registry + parameters
βββ locales/ # EN/ZH i18n (300+ keys)
βββ tests/ # 26/26 tests
βββ streamlit_app.py # Dashboard
βββ run.py # CLI
βββ .env.example # API key template
Academic Foundation
| Paper | Venue | ID | Module |
|---|---|---|---|
| Generative Agents | UIST 2023 | 2304.03442 | Memory |
| OASIS | 2025 | 2411.11581 | RecSys + TimeEngine |
| SMIF | ETASR 2026 | 10.48084/etasr.16536 | Grounding |
| Agent Bazaar | Princeton 2026 | 2605.17698 | RL |
| TwinMarket | NeurIPS 2025 | 2502.01506 | BDI v2 |
| EconSimulacra | 2026 | 2606.26883 | Stress |
vs MiroFish
MiroFish (5.5k β) is the most well-known multi-agent simulation engine. Both projects simulate social/market behavior with AI agents - but with different focuses:
| MiroFish | MarketFish | |
|---|---|---|
| Scope | General-purpose social simulation | Product market prediction |
| Architecture | Flask + Node.js + Docker | Streamlit single-app |
| Memory | Zep Cloud (external service) | Built-in (local JSON, zero external deps) |
| LLMs | OpenAI-compatible only | 11 providers (China + Global) |
| Data | User-uploaded documents | 8-source live ingestion pipeline |
| Language | EN/ZH | EN/ZH |
| License | AGPL-3.0 | MIT |
FAQ
Common questions
Discussion
Questions & comments Β· 0
Sign In Sign in to leave a comment.