Simulate market demand with 128 AI consumer agents
MarketFish is a multi-agent market simulation engine where 128+ AI consumers shop to predict product success.
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
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/key-wxh-market-fish | bash Overview
Market Fish
MarketFish is a multi-agent market simulation engine that runs 128+ AI consumer agents through 30 rounds of shopping to predict product survival and pricing. Use it to validate a product idea, explore new directions from seed data, or pit your idea against AI-generated competitors before launch.
What it does
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 its 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 six academic papers (Generative Agents, OASIS, TwinMarket, Agent Bazaar, EconSimulacra, SMIF) and 11 LLM providers.
When to use - and when NOT to
Use it in one of three modes: Explore (feed it seed data and let AI discover and rank product directions), Validate (test your own product idea for a survival score, buyer profiles, and optimal price), or Hybrid (pit your idea against AI-generated competitors in the same sandbox). Compared to MiroFish, the most well-known general-purpose social-simulation engine, MarketFish is scoped specifically to product-market prediction, runs as a single Streamlit app with zero external memory dependencies (versus Flask+Node.js+Docker and an external Zep Cloud memory service), and supports 11 LLM providers across China and global markets rather than OpenAI-compatible only.
Inputs and outputs
Input: seed market data (static JSON) or your own product idea and pricing. Output: a five-stage pipeline result - market ontology, a knowledge graph of entities and pain points, 128 heterogeneous AI consumer agents, a 30-round simulation, and an evidence report of who bought, why, and what killed competitors.
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
The CLI runs the same pipeline headlessly: python run.py --mode validate --name "My App" --pricing "$10", with --reuse-agents to reuse a prior agent population and save cost.
Integrations
Six V6 modules implement the underlying papers: Memory (Generative Agents, UIST 2023) lets agents remember purchases and reflections; a Time Engine and RecSys (both from OASIS, 2025) add realistic 24-hour activation and personalized recommendations; BDI v2 (TwinMarket, NeurIPS 2025) runs a six-step cognitive loop with behavioral biases; Stress (EconSimulacra, 2026) adjusts willingness to pay under financial or social pressure; and Grounding (SMIF, ETASR 2026) applies RAG plus rule constraints for realistic decisions. Supports 11 LLM providers - DeepSeek, Qwen, Doubao, Zhipu, Baidu, and Hunyuan in China, plus OpenAI, Anthropic, Google, Mistral, and Meta globally - with just one API key required to run.
Who it's for
Founders and product teams who want simulated market evidence - buyer profiles, pricing, and competitive survival odds - before launching, instead of guessing or asking a single LLM for a verdict. Open source under the MIT license.
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.