← 开源
nikmcfly

MiroFish-Offline

Offline multi-agent simulation & prediction engine. English fork of MiroFish with Neo4j + Ollama local stack.

ApplicationsResearch & knowledgePython
在 GitHub 打开
增长势头
+624 小时新增 Star+0.2%
2.62k
Star
669
Fork
+24
本周
5
贡献者
创建于 2026-03-14 · 更新于 2026-10-16 · 今日第 1900 名
主要开发者
nikmcfly69robbie-tenchthousandflowers

nikmcfly/MiroFish-Offline 排名第 1,900,有 2,619 个星标。

同类别比较

nikmcfly/MiroFish-Offline 排名第 1,900,此处有 8 个同类条目;Loongphy/codex-auth 排名第 1,896。

同类别比较
名称排名指标
chuspeeism/dashi-taskboard1,885
语言:
JavaScript
星标数:
3,351
分叉数:
488
简介:
现代化可灵活嵌入的任务面板,支持 Codex、DeepSeek Harness
GH05TCREW/pentestagent1,889
语言:
Python
星标数:
3,188
分叉数:
635
简介:
PentestAgent is an AI agent framework for black-box security testing, supporting bug bounty, red-team, and penetration testing workflows.
hgmzhn/manga-translator-ui1,891
语言:
Python
星标数:
3,017
分叉数:
146
简介:
基于manga-image-translator 实现的开源漫画AI翻译桌面工具。支持日、韩、英文漫画自动处理,集成OpenAl、Gemini等多翻译引擎;实现OCR文字检测、原文擦除、AI翻译、图像修复、译文排版完整链路,自带可视化编辑器,支持自定义文本样式,一键部署开箱即用。
Loongphy/codex-auth1,896
语言:
Zig
星标数:
2,817
分叉数:
164
简介:
A CLI tool to switch and manage Codex accounts
hydropix/TranslateBooksWithLLMs1,905
语言:
Python
星标数:
2,515
分叉数:
333
简介:
Translate full-length books and documents with Ollama, OpenAI-compatible, Gemini, Mistral, DeepSeek, Poe or OpenRouter. Preserves formatting. Resumes where you left off. No file size limits.
Orkas-AI/Orkas1,909
语言:
JavaScript
星标数:
2,189
分叉数:
91
iniwap/AIWriteX1,911
语言:
Python
星标数:
2,105
分叉数:
421
简介:
AIWriteX - 微信公众号全自动AI工具:全网热搜舆情聚合+趋势分析+爆款选题+文章采集+一键生成排版发布 | AI自动配图 | 去AI味、过朱雀检测 | 支持小红书/百家号/头条等多平台 | 洗稿润色支持多账号 | 专家赛道 | 小绿书贴图 | 短视频文案 | 手机控制 | 小说连载 | 爆文10w+神器
Open-Curiosity/gini-agent1,914
语言:
TypeScript
星标数:
2,004
分叉数:
826
简介:
The agent that remembers and learns.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Research & knowledge
关键词Agent society, Deep Research, Document understanding, Knowledge base
星标数2,619
分叉数669
贡献者5
创建日期2026-03-14
更新日期2026-10-16
1 天星标数6
7 天星标数24
排名1,900
上次排名3,030
排名变化1,130
7 天星标排名2,453
上次 7 天星标排名2,456
7 天星标排名变化3
总星标排名5,087
上次总星标排名5,085
总星标排名变化-2
README 摘录

** *A multi-agent swarm intelligence engine that simulates public opinion, market sentiment, and social dynamics. MiroFish is a multi-agent simulation engine: upload any document (press release, policy draft, financial report), and it generates hundreds of AI agents with unique personalities that simulate the public reaction on social media. The original MiroFish was built for the Chinese market (Chinese UI, Zep Cloud for knowledge graphs, DashScope API). 15** | | DashScope / OpenAI API (LLM) | **Ollama** (qwen2. ) | | Zep Cloud embeddings | **nomic-embed-text

** via Ollama | | Cloud API keys required | **Zero cloud dependencies** | Workflow 1. Builds a knowledge graph with individual and group memory via Neo4j. The system tracks sentiment evolution, topic propagation, and influence dynamics in real time. Ask them why they posted what they posted. Screenshot Quick Start Prerequisites Docker & Docker Compose (recommended), **or** Python 3. Credits & Attribution This is a modified fork of MiroFish by 666ghj, originally supported by Shanda Group. The simulation engine is powered by OASIS from the CAMEL

-AI team. **Modifications in this fork:** Backend migrated from Zep Cloud to local Neo4j CE 5. 15 + Ollama Entire frontend translated from Chinese to English (20 files, 1,000+ strings) All Zep references replaced with Neo4j across the UI Rebranded to MiroFish Offline

常见问题

记录了多少星标和分叉?

nikmcfly/MiroFish-Offline 有 2,619 个星标和 669 个分叉。

仓库排名是多少?

nikmcfly/MiroFish-Offline 排名第 1,900。

记录的语言和类别是什么?

nikmcfly/MiroFish-Offline 有 2,619 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

nikmcfly/MiroFish-Offline 与 Loongphy/codex-auth 比较,后者排名第 1,896,有 2,817 个星标。

README

MiroFish-Offline

Fully local fork of MiroFish — no cloud APIs required. English UI.

A multi-agent swarm intelligence engine that simulates public opinion, market sentiment, and social dynamics. Entirely on your hardware.

What is this?

MiroFish is a multi-agent simulation engine: upload any document (press release, policy draft, financial report), and it generates hundreds of AI agents with unique personalities that simulate the public reaction on social media. Posts, arguments, opinion shifts — hour by hour.

The original MiroFish was built for the Chinese market (Chinese UI, Zep Cloud for knowledge graphs, DashScope API). This fork makes it fully local and fully English:

Original MiroFish MiroFish-Offline
Chinese UI English UI (1,000+ strings translated)
Zep Cloud (graph memory) Neo4j Community Edition 5.15
DashScope / OpenAI API (LLM) Ollama (qwen2.5, llama3, etc.)
Zep Cloud embeddings nomic-embed-text via Ollama
Cloud API keys required Zero cloud dependencies

Workflow

  1. Graph Build — Extracts entities (people, companies, events) and relationships from your document. Builds a knowledge graph with individual and group memory via Neo4j.
  2. Env Setup — Generates hundreds of agent personas, each with unique personality, opinion bias, reaction speed, influence level, and memory of past events.
  3. Simulation — Agents interact on simulated social platforms: posting, replying, arguing, shifting opinions. The system tracks sentiment evolution, topic propagation, and influence dynamics in real time.
  4. Report — A ReportAgent analyzes the post-simulation environment, interviews a focus group of agents, searches the knowledge graph for evidence, and generates a structured analysis.
  5. Interaction — Chat with any agent from the simulated world. Ask them why they posted what they posted. Full memory and personality persists.

Screenshot

Quick Start

Prerequisites

  • Docker & Docker Compose (recommended), or
  • Python 3.11+, Node.js 18+, Neo4j 5.15+, Ollama

Option A: Docker (easiest)

git clone https://github.com/nikmcfly/MiroFish-Offline.git
cd MiroFish-Offline
cp .env.example .env

# Start all services (Neo4j, Ollama, MiroFish)
docker compose up -d

# Pull the required models into Ollama
docker exec mirofish-ollama ollama pull qwen2.5:32b
docker exec mirofish-ollama ollama pull nomic-embed-text

Open http://localhost:3000 — that's it.

Option B: Manual

1. Start Neo4j

docker run -d --name neo4j \
  -p 7474:7474 -p 7687:7687 \
  -e NEO4J_AUTH=neo4j/mirofish \
  neo4j:5.15-community

2. Start Ollama & pull models

ollama serve &
ollama pull qwen2.5:32b      # LLM (or qwen2.5:14b for less VRAM)
ollama pull nomic-embed-text  # Embeddings (768d)

3. Configure & run backend

cp .env.example .env
# Edit .env if your Neo4j/Ollama are on non-default ports

cd backend
pip install -r requirements.txt
python run.py

4. Run frontend

cd frontend
npm install
npm run dev

Open http://localhost:3000.

Configuration

All settings are in .env (copy from .env.example):

# LLM — points to local Ollama (OpenAI-compatible API)
LLM_API_KEY=ollama
LLM_BASE_URL=http://localhost:11434/v1
LLM_MODEL_NAME=qwen2.5:32b

# Neo4j
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=mirofish

# Embeddings
EMBEDDING_MODEL=nomic-embed-text
EMBEDDING_BASE_URL=http://localhost:11434

Works with any OpenAI-compatible API — swap Ollama for Claude, GPT, or any other provider by changing LLM_BASE_URL and LLM_API_KEY.

Architecture

This fork introduces a clean abstraction layer between the application and the graph database:

┌─────────────────────────────────────────┐
│              Flask API                   │
│  graph.py  simulation.py  report.py     │
└──────────────┬──────────────────────────┘
               │ app.extensions['neo4j_storage']
┌──────────────▼──────────────────────────┐
│           Service Layer                  │
│  EntityReader  GraphToolsService         │
│  GraphMemoryUpdater  ReportAgent         │
└──────────────┬──────────────────────────┘
               │ storage: GraphStorage
┌──────────────▼──────────────────────────┐
│         GraphStorage (abstract)          │
│              │                            │
│    ┌─────────▼─────────┐                │
│    │   Neo4jStorage     │                │
│    │  ┌───────────────┐ │                │
│    │  │ EmbeddingService│ ← Ollama       │
│    │  │ NERExtractor   │ ← Ollama LLM   │
│    │  │ SearchService  │ ← Hybrid search │
│    │  └───────────────┘ │                │
│    └───────────────────┘                │
└─────────────────────────────────────────┘
               │
        ┌──────▼──────┐
        │  Neo4j CE   │
        │  5.15       │
        └─────────────┘

Key design decisions:

  • GraphStorage is an abstract interface — swap Neo4j for any other graph DB by implementing one class
  • Dependency injection via Flask app.extensions — no global singletons
  • Hybrid search: 0.7 × vector similarity + 0.3 × BM25 keyword search
  • Synchronous NER/RE extraction via local LLM (replaces Zep's async episodes)
  • All original dataclasses and LLM tools (InsightForge, Panorama, Agent Interviews) preserved

Hardware Requirements

Component Minimum Recommended
RAM 16 GB 32 GB
VRAM (GPU) 10 GB (14b model) 24 GB (32b model)
Disk 20 GB 50 GB
CPU 4 cores 8+ cores

CPU-only mode works but is significantly slower for LLM inference. For lighter setups, use qwen2.5:14b or qwen2.5:7b.

Use Cases

  • PR crisis testing — simulate the public reaction to a press release before publishing
  • Trading signal generation — feed financial news and observe simulated market sentiment
  • Policy impact analysis — test draft regulations against simulated public response
  • Creative experiments — someone fed it a classical Chinese novel with a lost ending; the agents wrote a narratively consistent conclusion

License

AGPL-3.0 — same as the original MiroFish project. See LICENSE.

Credits & Attribution

This is a modified fork of MiroFish by 666ghj, originally supported by Shanda Group. The simulation engine is powered by OASIS from the CAMEL-AI team.

Modifications in this fork:

  • Backend migrated from Zep Cloud to local Neo4j CE 5.15 + Ollama
  • Entire frontend translated from Chinese to English (20 files, 1,000+ strings)
  • All Zep references replaced with Neo4j across the UI
  • Rebranded to MiroFish Offline
排名相邻
同类项目