MarketFish —— 在产品发布前,利用 128 个 AI 消费者模拟市场反应。
MarketFish – Simulate a market with 128 AI consumers before you launch

原始链接: https://github.com/Key-wxh/market-fish

**MarketFish** 是一个开源的多智能体市场模拟引擎,旨在以数据驱动的验证取代推测。它不再依赖单一的大语言模型(LLM),而是在数字市场中部署了 128 个以上的异构 AI 智能体,每个智能体都具备独特的预算、情绪和偏好。 通过 30 轮模拟,这些智能体会进行互动、相互影响并做出购买决策。MarketFish 基于六大学术框架(包括 *Generative Agents*、*TwinMarket* 和 *EconSimulacra*)构建智能体行为,为产品市场匹配度、流失模式和竞争定位提供可操作的见解。 **主要功能:** * **多元智能:** 支持 11 家 LLM 提供商(包括 DeepSeek、OpenAI 和 Claude),以构建真实且多样的消费者群体。 * **先进模拟:** 采用 5 阶段流水线来生成市场结构、知识图谱和智能体行为。 * **灵活模式:** 使用“探索”(Explore)发现产品方向,“验证”(Validate)进行生存评分和定价测试,或使用“混合”(Hybrid)模式与 AI 驱动的竞争对手展开博弈。 * **独立运行:** 无需外部依赖(无需 Zep 等外部数据库),提供了一种轻量级、MIT 许可的通用模拟器替代方案。 MarketFish 将市场调研转化为可重复、可扩展的实验,帮助创始人甚至在投入一分钱开发之前,就能精准识别产品成功或失败的原因。

Hacker News | 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 | 登录 MarketFish – 在发布产品前,用 128 个 AI 消费者模拟市场 (github.com/key-wxh) 7 分 | 由 a280887763 发布于 1 小时前 | 隐藏 | 过往 | 收藏 | 讨论 帮助 | 指导原则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

stars PH v6.0 MIT Python 3.12+ tests 11 providers

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.

中文文档

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.

Products Evidence Agents
Agent Graph RL Strategy Coupling

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
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

11 providers. One is enough. More = more diverse agents.

| 🇨🇳 China | DeepSeek, Qwen, Doubao, Zhipu, Baidu, Hunyuan | | 🌍 Global | OpenAI, Anthropic, Google, Mistral, Meta |

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)
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
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

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

MIT — free for personal and commercial use.


Built by Keystart AI · Solo founder · AI-Native

联系我们 contact @ memedata.com