Open-source project · 666ghj/MiroFish

MiroFish GitHub: explore the open-source simulation engine.

MiroFish turns source material into a world of AI agents with different roles, memories, and behaviors. Build a relationship graph, simulate how people might respond, and explore the resulting report and agent conversations.

github.com/666ghj/MiroFish
AGPL-3.0Python + VueOASIS simulationEnglish + Chinese UI

The repository is the upstream open-source project. The workspace button opens the separately operated mirofish.work console.

MiroFish GitHub project interface showing a relationship graph and simulation setup
Explore the relationship graph, review the simulation setup, and follow the agents into a simulated scenario.

What is the MiroFish GitHub project?

The MiroFish GitHub repository contains an open-source multi-agent simulation application. You provide documents and a question; it constructs a graph of people, groups, and relationships, creates agent profiles, and runs social interactions that a report agent can analyze. It is useful for exploring possible reactions and finding questions to investigate further.

Explore public reactions

Use a policy draft, announcement, or public-opinion report to examine how different groups could respond and which concerns may spread.

Rehearse a decision

Describe a proposed change, the affected groups, and a time horizon. Compare the arguments and assumptions that emerge before planning real research.

Develop a fictional world

Give agents a story’s characters and relationships, then explore conversations and possible developments. The project includes a literary simulation demo.

These are exploratory uses, not evidence of measured forecasting accuracy. Read the project overview and maintainer FAQ for scope and limitations.

From documents to a simulated world

Five connected stages make the output inspectable beyond a single chatbot answer.

Build the graph

Upload PDF, Markdown, or text. The application extracts entities and relationships and builds a graph with contextual memory.

Create the agents

Generate personas from the graph, then configure their environment and the scenario you want to explore.

Run the simulation

Agents interact in simulated Twitter-like and Reddit-like environments. These are simulation spaces, not posts to real social accounts.

Read the report

ReportAgent examines the simulated activity and graph to explain patterns, perspectives, and possible outcomes.

Ask follow-up questions

Talk with simulated agents or ReportAgent to explore motivations and the context behind the result.

What powers MiroFish
ComponentRole in the applicationSource
Vue frontendGraph, simulation controls, reports, and conversations.Frontend code
Python / Flask backendDocument handling and orchestration of the workflow.Backend code
LLM APIGenerates entities, personas, behaviors, and report content through an OpenAI-compatible API.Model configuration
Zep CloudStores and retrieves the graph and memory used by the official mainline.Required configuration
OASIS by CAMEL-AIProvides the social simulation environment and agent actions.OASIS repository

See the project before installing it

Start with the demonstrations linked by the upstream project.

Interactive interface demo

Explore a prepared public-opinion scenario in your browser. This is a static demonstration with prebuilt results, not a service for running new uploads.

Open the upstream demo

Public-opinion simulation

The project introduction follows a Wuhan University scenario using a report produced by BettaFish as input. The video is in Chinese.

Watch the project demonstration

A literary simulation

See an exploration of the lost ending of Dream of the Red Chamber, using the novel’s first 80 chapters as source material. The video is in Chinese.

Watch the story demonstration

MiroFish relationship graph linking entities from source material
Inspect the entities and connections that give the agents their context.
MiroFish report workspace for exploring simulation results and follow-up questions
Explore the report and ask questions about the simulated outcome.

Watch the MiroFish workflow

A short animated overview of inputs, relationships, agents, and reports.

Use this overview to follow the stages; the upstream demos above show concrete project examples.

MiroFish GitHub installation guide

Use Python 3.11 or 3.12, uv, and a Node.js version supported by the current frontend: Node 20.19+ or 22.12+. The upstream README recommends source installation.

Download and configure

git clone https://github.com/666ghj/MiroFish.git
cd MiroFish
cp .env.example .env

Open .env in your editor and set the four values below before starting. Use your model provider’s API key, compatible endpoint, and model ID, plus a separate Zep Cloud API key.

  • LLM_API_KEY
  • LLM_BASE_URL
  • LLM_MODEL_NAME
  • ZEP_API_KEY

If you do not use the optional boost model, remove all three LLM_BOOST_* example entries rather than leaving placeholders.

Install and start

npm run setup:all
npm run dev

Open http://localhost:3000 for the interface. The backend runs on port 5001; its health endpoint is /health. Installing dependencies alone does not start the application.

Plan a useful first run

Keep the first scenario small enough to understand what each stage is doing.

Give the agents a focused question

For example: “How might students, teachers, and parents respond during the first month of a proposed school timetable change?” Upload the proposal and relevant public context; identify what is changing and the time horizon.

Use a small text-based document and fewer than 40 simulation rounds to start, as the README suggests. Review the generated entities and personas before expanding the run.

Scanned PDFs need OCR before upload. Compare repeated runs and changes to the source material; treat generated reactions as hypotheses to test with real people and evidence.

Understand costs and data flow

The source is available under AGPL-3.0. Running it may still incur model API, Zep Cloud, and hosting costs. Document length, agent count, simulation rounds, and report interactions affect usage.

Self-hosting the application does not make the standard setup offline: the model provider and Zep Cloud process parts of the workflow. Check their data policies before uploading confidential material.

For a shared deployment, plan access controls, HTTPS, persistent storage, and backups. The development startup commands are a local starting point.

Prefer to start in a browser?

The mirofish.work console is a separately operated hosted workspace. Its interface, account, billing, and support are separate from the upstream GitHub project.

MiroFish GitHub FAQ

Where is the original MiroFish GitHub repository?

The upstream project is 666ghj/MiroFish on GitHub. Use its README, releases, and issue tracker to distinguish the mainline from forks and separately operated hosted services.

Is MiroFish free to run?

The code is open source under AGPL-3.0. Model API usage, Zep Cloud, and hosting can have separate costs. A hosted service’s subscription is separate from the open-source repository.

Can I run it entirely offline?

The official mainline requires Zep Cloud and an LLM API. Community projects explore local alternatives, but a fork’s capabilities should not be assumed to exist in the upstream version. See the memory-backend discussion.

Why does the online demo repeat the same result?

The README’s demo is static and uses prepared results. To simulate your own material, run a configured installation or use a separate hosted service.

Does MiroFish search the internet automatically?

The upstream workflow starts from uploaded material. ReportAgent’s graph-search tools search the project’s graph, not the open web. A BettaFish report can be uploaded as input; the two applications are not an automatic integrated pipeline.

What should I do if setup fails?

Confirm Python 3.11 or 3.12, both service credentials, and the exact model endpoint. A 404 at the backend root is expected; use /health. For model JSON errors or graph failures, consult the maintainer FAQ and include your version and a redacted error when opening an issue.

MiroFish GitHub resources and community

Direct links for learning, installing, following development, and contributing.