MiroFish README

The project's README from github.com/666ghj/MiroFish. As one markdown file: README.md.

MiroFish Logo

666ghj%2FMiroFish | Trendshift

简洁通用的群体智能引擎,预测万物
A Simple and Universal Swarm Intelligence Engine, Predicting Anything

666ghj%2FMiroFish | Shanda

GitHub Stars GitHub Watchers GitHub Forks Docker Ask DeepWiki

Discord X Instagram

English | 中文文档

⚡ Overview

MiroFish is a next-generation AI prediction engine powered by multi-agent technology. By extracting seed information from the real world (such as breaking news, policy drafts, or financial signals), it automatically constructs a high-fidelity parallel digital world. Within this space, thousands of intelligent agents with independent personalities, long-term memory, and behavioral logic freely interact and undergo social evolution. You can inject variables dynamically from a "God's-eye view" to precisely deduce future trajectories — rehearse the future in a digital sandbox, and win decisions after countless simulations.

You only need to: Upload seed materials (data analysis reports or interesting novel stories) and describe your prediction requirements in natural language
MiroFish will return: A detailed prediction report and a deeply interactive high-fidelity digital world

Our Vision

MiroFish is dedicated to creating a swarm intelligence mirror that maps reality. By capturing the collective emergence triggered by individual interactions, we break through the limitations of traditional prediction:

From serious predictions to playful simulations, we let every "what if" see its outcome, making it possible to predict anything.

🌐 Live Demo

Welcome to visit our online demo environment and experience a prediction simulation on trending public opinion events we've prepared for you: mirofish-live-demo

📸 Screenshots

Screenshot 1 Screenshot 2
Screenshot 3 Screenshot 4
Screenshot 5 Screenshot 6

🎬 Demo Videos

1. Wuhan University Public Opinion Simulation + MiroFish Project Introduction

MiroFish Demo Video

Click the image to watch the complete demo video for prediction using BettaFish-generated "Wuhan University Public Opinion Report"

2. Dream of the Red Chamber Lost Ending Simulation

MiroFish Demo Video

Click the image to watch MiroFish's deep prediction of the lost ending based on hundreds of thousands of words from the first 80 chapters of "Dream of the Red Chamber"

Financial Prediction, Political News Prediction and more examples coming soon...

🔄 Workflow

  1. Graph Building: Seed extraction & Individual/collective memory injection & GraphRAG construction
  2. Environment Setup: Entity relationship extraction & Persona generation & Agent configuration injection
  3. Simulation: Dual-platform parallel simulation & Auto-parse prediction requirements & Dynamic temporal memory updates
  4. Report Generation: ReportAgent with rich toolset for deep interaction with post-simulation environment
  5. Deep Interaction: Chat with any agent in the simulated world & Interact with ReportAgent

🚀 Quick Start

Prerequisites

Tool Version Description Check Installation
Node.js 18+ Frontend runtime, includes npm node -v
Python ≥3.11, ≤3.12 Backend runtime python --version
uv Latest Python package manager uv --version

1. Configure Environment Variables

# Copy the example configuration file
cp .env.example .env

# Edit the .env file and fill in the required API keys

Required Environment Variables:

# LLM API Configuration (supports any LLM API with OpenAI SDK format)
# Recommended: Alibaba Qwen-plus model via Bailian Platform: https://bailian.console.aliyun.com/
# High consumption, try simulations with fewer than 40 rounds first
LLM_API_KEY=your_api_key
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
LLM_MODEL_NAME=qwen-plus

# Zep Cloud Configuration
# Free monthly quota is sufficient for simple usage: https://app.getzep.com/
ZEP_API_KEY=your_zep_api_key

2. Install Dependencies

# One-click installation of all dependencies (root + frontend + backend)
npm run setup:all

Or install step by step:

# Install Node dependencies (root + frontend)
npm run setup

# Install Python dependencies (backend, auto-creates virtual environment)
npm run setup:backend

3. Start Services

# Start both frontend and backend (run from project root)
npm run dev

Service URLs:

Start Individually:

npm run backend   # Start backend only
npm run frontend  # Start frontend only

Option 2: Docker Deployment

# 1. Configure environment variables (same as source deployment)
cp .env.example .env

# 2. Pull image and start
docker compose up -d

Reads .env from root directory by default, maps ports 3000 (frontend) / 5001 (backend)

Mirror address for faster pulling is provided as comments in docker-compose.yml, replace if needed.

📬 Join the Conversation

QQ Group

 

The MiroFish team is recruiting full-time/internship positions. If you're interested in multi-agent simulation and LLM applications, feel free to send your resume to: [email protected]

📄 Acknowledgments

MiroFish has received strategic support and incubation from Shanda Group!

MiroFish's simulation engine is powered by OASIS (Open Agent Social Interaction Simulations), We sincerely thank the CAMEL-AI team for their open-source contributions!

📈 Project Statistics

666ghj/MiroFish Star History Chart

MiroFish (666ghj/MiroFish)

Searching Database…

这是什么?MiroFish 是一个由 AI 驱动的多智能体模拟引擎,它以现实世界的种子数据(突发新闻、政策草案、金融信号)构建一个高保真的数字平行世界,并让成千上万个相互独立的智能体彼此互动,从而预测未来的结果。
这是聊天机器人还是完整的模拟平台?它是一个全栈网页应用(Node.js 前端加 Python 后端),运行多智能体社交模拟,最后生成预测报告,而不是简单的聊天界面。
我该怎么把它跑起来?克隆代码仓库,配置所需的环境变量,然后用 `npm install && cd frontend && npm install` 以及后端的 `uv sync` 进行安装,再通过项目提供的 npm 脚本启动各项服务;如果不想在本地配置,也可以直接使用自带的 Docker Compose 文件。
运行之前我需要准备哪些工具?你需要 Node.js 18 及以上版本(自带 npm)、3.11 到 3.12 之间的 Python,以及用于后端的 uv Python 包管理器;如果不想在本地安装这些,也可以改用 Docker。
安装时有哪些需要注意的坑?后端明确要求 Python 3.11 或 3.12,不支持更新的版本;在智能体运行任何模拟之前,你必须自行配置环境变量(包括大模型访问权限)。
我需要自己部署吗,还是有在线演示?有一个托管的在线演示(mirofish-live-demo),你无需安装任何东西,就能体验一个预设的舆情模拟;如果要运行自己的预测,则需要通过源码或 Docker 自行部署。
《红楼梦》演示的灵感来自哪里?MiroFish 利用经典小说《红楼梦》前八十回的数十万字内容,模拟了这部小说已经遗失的结局,展示了该引擎不仅能推演现实世界事件,也能推演叙事结局。
这个模拟引擎的底层是什么?MiroFish 的模拟引擎基于 OASIS(Open Agent Social Interaction Simulations,开放智能体社交互动模拟)构建,该引擎由 CAMEL-AI 团队共同开发,负责驱动模拟智能体逼真的社交行为。
模拟结束后会发生什么?一个拥有丰富工具集的 ReportAgent 会深入模拟结束后的环境,生成详细的预测报告;随后,你可以直接与任意模拟智能体对话,也可以与 ReportAgent 本人对话。
MiroFish 是谁在开发?MiroFish 在 Shanda Group 的战略支持下孵化,团队目前正在招聘多智能体模拟与大模型应用方向的全职和实习岗位。
Creator
666ghj
Size
16.4 MB
Stars
80K
Age
10mo
Commits · 90 Days