---
name: mirofish-prediction-engine
description: Use when you say "set up MiroFish" or "simulate how people will react to my launch before I ship"; it installs and runs the open-source MiroFish swarm-intelligence engine locally so agents with personalities and memory simulate your scenario and return a prediction report.
---
# MiroFish: run a swarm of AI agents on your launch before you ship
## What it does
MiroFish is an open-source AI prediction engine built on multi-agent technology. You give it seed information from the real world (breaking news, a policy draft, financial signals, a data analysis report, or a novel), and it automatically builds a high-fidelity parallel digital world. Inside it, thousands of agents with independent personalities, long-term memory and behavioral logic interact and evolve socially. You can inject variables from a "God's-eye view" to steer the deduction.
You only need to upload seed materials and describe your prediction requirement in natural language. MiroFish returns a detailed prediction report plus a digital world you can keep interacting with.
The workflow has five stages:
1. Graph building: seed extraction, individual and collective memory injection, GraphRAG construction.
2. Environment setup: entity relationship extraction, persona generation, agent configuration injection.
3. Simulation: dual-platform parallel simulation (Twitter-style and Reddit-style runners are in the repo), auto-parsing of your prediction requirement, dynamic temporal memory updates.
4. Report generation: a ReportAgent with a toolset that digs into the post-simulation environment.
5. Deep interaction: chat with any agent in the simulated world, or with the ReportAgent.
It ships a Vue frontend and a Python backend. The simulation engine is powered by OASIS from the CAMEL-AI team. There is a live demo of a public-opinion prediction run at https://666ghj.github.io/mirofish-demo/ and demo videos linked from the README.
## What you need
- Node.js 18 or newer (includes npm). Check with `node -v`.
- Python 3.11 or 3.12 (not newer, not older). Check with `python --version`.
- uv, the Python package manager, latest version. Check with `uv --version`.
- An LLM API key. MiroFish supports any LLM API in OpenAI SDK format. The README recommends Alibaba Qwen-plus via the Bailian platform: https://bailian.console.aliyun.com/
- A Zep Cloud API key: https://app.getzep.com/ The README says the free monthly quota is enough for simple usage.
- Docker and Docker Compose if you want the Docker route instead of source.
Cost note from the README: token consumption is high. Try simulations with fewer than 40 rounds first.
## Setup
Clone the repo:
```bash
git clone https://github.com/666ghj/MiroFish.git
cd MiroFish
```
Copy the example config and fill in your keys:
```bash
cp .env.example .env
```
Edit `.env` so it contains:
```env
# LLM API Configuration (supports any LLM API with OpenAI SDK format)
LLM_API_KEY=your_api_key
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
LLM_MODEL_NAME=qwen-plus
# Zep Cloud Configuration
ZEP_API_KEY=your_zep_api_key
```
Install everything (root, frontend, backend):
```bash
npm run setup:all
```
Or step by step:
```bash
npm run setup # Node dependencies (root + frontend)
npm run setup:backend # Python dependencies, auto-creates a virtual environment
```
Start both services from the project root:
```bash
npm run dev
```
Frontend: http://localhost:3000 — Backend API: http://localhost:5001
Start one side only:
```bash
npm run backend
npm run frontend
```
Docker route instead of source (same `.env`):
```bash
cp .env.example .env
docker compose up -d
```
This reads `.env` from the root directory and maps port 3000 for the frontend and 5001 for the backend. The README notes that a faster mirror address is given as a comment inside `docker-compose.yml` if you need it.
This tool spends money on LLM API calls every time you run a simulation. Keep your first runs under 40 rounds, as the README advises, and check your provider's usage before scaling up. Use your own documents and your own accounts as seed material, and stay within the terms of any site you take content from.
## How to use it with Claude
- "Check whether my machine has Node 18+, Python 3.11 or 3.12, and uv, then clone MiroFish and run npm run setup:all."
- "Open MiroFish's .env.example, explain each variable, and help me fill in LLM_API_KEY, LLM_BASE_URL, LLM_MODEL_NAME and ZEP_API_KEY."
- "Start MiroFish with npm run dev and tell me when the frontend on port 3000 and the backend on port 5001 are both up."
- "Walk me through the five stages in the UI: graph building, environment setup, simulation, report generation, deep interaction."
- "My simulation failed to prepare. Read the backend logs and the simulation_runner and zep files to tell me what broke."
- "Set up the Docker route instead: copy .env.example, then run docker compose up -d, and show me the mirror comment in docker-compose.yml."
- "Keep my first run cheap: help me configure a simulation with fewer than 40 rounds."
For anything the README does not cover, including how to shape a good seed document or tune simulation parameters, see the project's README at https://github.com/666ghj/MiroFish
## Credits
Made by 666ghj (MiroFish), packaged by Orbit. Source: https://github.com/666ghj/MiroFish — license: AGPL-3.0. Simulation engine powered by OASIS from CAMEL-AI: https://github.com/camel-ai/oasis