MiroFish Logo 666ghj%2FMiroFish | Trendshift A Simple and Universal Swarm Intelligence Engine, Predicting Anything
A Simple and Universal Swarm Intelligence Engine, Predicting Anything 666ghj%2FMiroFish | Shanda [![GitHub Stars](https://img.shields.io/github/stars/666ghj/MiroFish?style=flat-square&color=DAA520)](https://github.com/666ghj/MiroFish/stargazers) [![GitHub Watchers](https://img.shields.io/github/watchers/666ghj/MiroFish?style=flat-square)](https://github.com/666ghj/MiroFish/watchers) [![GitHub Forks](https://img.shields.io/github/forks/666ghj/MiroFish?style=flat-square)](https://github.com/666ghj/MiroFish/network) [![Docker](https://img.shields.io/badge/Docker-Build-2496ED?style=flat-square&logo=docker&logoColor=white)](https://hub.docker.com/) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/666ghj/MiroFish) [![Discord](https://img.shields.io/badge/Discord-Join-5865F2?style=flat-square&logo=discord&logoColor=white)](http://discord.gg/ePf5aPaHnA) [![X](https://img.shields.io/badge/X-Follow-000000?style=flat-square&logo=x&logoColor=white)](https://x.com/mirofish_ai) [![Instagram](https://img.shields.io/badge/Instagram-Follow-E4405F?style=flat-square&logo=instagram&logoColor=white)](https://www.instagram.com/mirofish_ai/) [English](./README.md)
## ⚡ 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: - **At the Macro Level**: We are a rehearsal laboratory for decision-makers, allowing policies and public relations to be tested at zero risk - **At the Micro Level**: We are a creative sandbox for individual users — whether deducing novel endings or exploring imaginative scenarios, everything can be fun, playful, and accessible 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](https://666ghj.github.io/mirofish-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 ### Option 1: Source Code Deployment (Recommended) #### 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 ```bash # Copy the example configuration file cp .env.example .env # Edit the .env file and fill in the required API keys ``` **Required Environment Variables:** The only required key is `LLM_API_KEY`. The project supports any OpenAI-compatible LLM endpoint. **Option A — Ollama Cloud (recommended):** ```env # 1. Create an API key: https://ollama.com/settings/keys # 2. Pick a cloud model from: https://ollama.com/search?c=cloud LLM_API_KEY=your_ollama_api_key LLM_BASE_URL=https://ollama.com/v1 LLM_MODEL_NAME=qwen3.5:397b ``` > **Model requirements**: The model must support `response_format={"type":"json_object"}` (JSON mode) and tool calling. Recommended cloud models: `qwen3.5:397b`, `glm-5.2`, `deepseek-v4-flash`, `gpt-oss:120b`. **Option B — Local Ollama:** ```env # 1. Install Ollama: https://ollama.com # 2. Pull a model: ollama pull qwen2.5:7b LLM_API_KEY=ollama LLM_BASE_URL=http://localhost:11434/v1 LLM_MODEL_NAME=qwen2.5:7b ``` **Option C — Other cloud providers (OpenAI, DeepSeek, etc.):** ```env LLM_API_KEY=your_cloud_api_key LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 LLM_MODEL_NAME=qwen-plus ``` > **No external SaaS required**: Knowledge graph storage, entity extraction, and semantic search are all handled locally via sqlite + LLM-based extraction. There is no Zep Cloud dependency. #### 2. Install Dependencies ```bash # One-click installation of all dependencies (root + frontend + backend) npm run setup:all ``` Or install step by step: ```bash # Install Node dependencies (root + frontend) npm run setup # Install Python dependencies (backend, auto-creates virtual environment) npm run setup:backend ``` #### 3. Start Services ```bash # Start both frontend and backend (run from project root) npm run dev ``` **Service URLs:** - Frontend: `http://localhost:3000` - Backend API: `http://localhost:5001` **Start Individually:** ```bash npm run backend # Start backend only npm run frontend # Start frontend only ``` ### Option 2: Docker Deployment ```bash # 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: **mirofish@shanda.com** ## 📄 Acknowledgments **MiroFish has received strategic support and incubation from Shanda Group!** MiroFish's simulation engine is powered by **[OASIS (Open Agent Social Interaction Simulations)](https://github.com/camel-ai/oasis)**, We sincerely thank the CAMEL-AI team for their open-source contributions! ## 📈 Project Statistics 666ghj/MiroFish Star History Chart