Community生產力與協作github.com

aradotso/mirofish-離線模擬

使用 Neo4j + Ollama 的完全本地化多代理群體智能模擬引擎,用於輿論、市場情緒和社會動態預測。

mirofish-離線模擬 是什麼?

aradotso/mirofish-offline-simulation 是一個完全離線、本地運行的多代理群體智能模擬引擎,專為預測輿論走向、市場情緒變化和社會動態而設計。它結合了 Neo4j 圖形資料庫來模擬代理之間的關聯網絡,並利用 Ollama 運行本地大型語言模型,讓每個代理能根據其角色、記憶和社會連線做出類似人類的推理與反應。此技能支援開發者自定義代理數量、互動規則、初始情緒和環境事件,適合在沒有網路連線的封閉環境中進行長時間模擬。主要平台包括 Claude Code、Cursor 和任何支援自訂工具的 AI 代理,透過標準化的技能介面即可呼叫。其工作流程包括初始化網路、分發代理腳本、執行多輪對話與決策、以及輸出結構化的模擬結果,供後續分析與可視化使用。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aradotso/trending-skills/tree/main/skills/mirofish-offline-simulation

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

mirofish-離線模擬 是做什麼的?

使用 Neo4j + Ollama 的完全本地化多代理群體智能模擬引擎,用於輿論、市場情緒和社會動態預測。

概述

此技能提供一個離線、自主運行的多代理模擬環境,每個代理由本地 LLM (透過 Ollama) 驅動,其互動與關係由 Neo4j 圖形資料庫管理。模擬可用於測試假設、預測真實世界趨勢,或生成合成數據。

支援的平台

  • Claude Code
  • Cursor
  • 任何支援自訂工具的 AI 代理

先決條件

  • Docker 或直接安裝 Neo4j
  • Ollama (推薦模型: llama3, mistral, mixtral)
  • Python 3.10+

安裝

pip install neo4j ollama-python numpy pandas

快速開始

  1. 啟動 Neo4j (預設密碼: password):
    docker run --name neo4j -p 7474:7474 -p 7687:7687 -e NEO4J_AUTH=neo4j/password neo4j:latest
    
  2. 確認 Ollama 正在執行:
    ollama serve
    
  3. 複製技能到你的工作目錄:
    git clone https://github.com/aradotso/mirofish-offline-simulation.git
    cd mirofish-offline-simulation
    
  4. 執行模擬:
    python run_simulation.py --agents 50 --rounds 10 --topic "氣候政策"
    

配置

編輯 config.yaml 以自訂:

neo4j:
  uri: bolt://localhost:7687
  user: neo4j
  password: password

ollama:
  model: llama3
  temperature: 0.7

simulation:
  agent_count: 50
  max_rounds: 20
  initial_topic: "未指定"
  interaction_mode: "random"  # 或 "network"

功能

  • 自主代理: 每個代理擁有獨特的人格、記憶與信念系統
  • 社交網絡: Neo4j 管理代理之間的動態關係與影響力
  • 離線推理: 使用 Ollama 進行完全本地的 LLM 推理
  • 可擴展: 支援數百到數千個代理
  • 結果導出: 模擬歷史可匯出為 JSON、CSV 或直接寫入 Neo4j

自訂代理

你可以透過修改 agents/profiles.json 定義代理:

[
  {
    "id": 1,
    "role": "環保倡導者",
    "personality": "熱情且具說服力",
    "knowledge": ["氣候科學", "政策分析"],
    "initial_belief": 0.8
  },
  {
    "id": 2,
    "role": "產業代表",
    "personality": "務實且謹慎",
    "knowledge": ["經濟學", "能源市場"],
    "initial_belief": 0.2
  }
]

使用方法

執行模擬

python run_simulation.py --rounds 15 --topic "疫苗接種

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

aradotso/724-office-ai-agent

Self-evolving AI agent system with 26 tools, three-layer memory, MCP plugins, and 24/7 self-repair in pure Python.

aradotso/agency-agents-ai-specialists

A collection of specialized AI agent personalities for Claude Code, Cursor, Aider, Windsurf, and other AI coding tools — covering engineering, design, marketing, sales, and more.

aradotso/agent-browser-automation

Headless browser automation CLI for AI agents using native Rust binary with Chrome DevTools Protocol

aradotso/antigravity-manager

AI coding agent skill for Antigravity Manager — a Tauri v2 + Rust desktop app and Docker service that manages multiple Google/Anthropic accounts and proxies them as standard OpenAI/Anthropic/Gemini API endpoints with intelligent account rotation.

aradotso/aracli-deploy-management

Guide to deploying and managing OpenClaw-compatible AI agent systems across cloud, bare metal, and hybrid infrastructure.

aradotso/autoresearchclaw-autonomous-research

Fully autonomous research pipeline that turns a topic idea into a complete academic paper with real citations, experiments, and conference-ready LaTeX.

aradotso/autoresearch-genealogy

Structured prompts, vault templates, and autonomous research workflows for AI-assisted genealogy using Claude Code.

aradotso/brreg

Search and retrieve Norwegian company data from Brønnøysundregistrene (the Norwegian Business Registry). Access all ~1.2 million registered companies in Norway.

aradotso/chrome-cdp-live-browser

Give AI agents access to your live Chrome session via CDP — interact with open tabs, logged-in accounts, and current page state

aradotso/claude-hud-statusline

A Claude Code plugin that displays a real-time HUD showing context usage, active tools, running agents, and todo progress in your terminal statusline.

aradotso/claude-peers-mcp

Enable multiple Claude Code instances to discover each other and exchange messages in real-time via a local broker daemon and MCP server.

aradotso/clui-cc-claude-overlay

Command Line User Interface for Claude Code — a floating macOS desktop overlay with multi-tab sessions, permission approval UI, voice input, and skills marketplace.

aradotso/cmux-terminal-multiplexer

AI-native terminal multiplexer with programmable socket API, full Playwright-equivalent browser automation, and agent team coordination — built for Claude Code and autonomous agent workflows

aradotso/code-review-graph

Build a persistent knowledge graph of your codebase so Claude reads only what matters — up to 49x fewer tokens on coding tasks.

aradotso/codex-autoresearch-loop

Self-directed iterative research skill for Codex that continuously cycles through modify, verify, retain or discard, and repeat until a measurable goal is reached.

aradotso/copaw-ai-assistant

Personal AI assistant framework supporting multiple chat channels (DingTalk, Feishu, QQ, Discord, etc.) with extensible skills, local/cloud deployment, and cron scheduling.

aradotso/corridorkey-green-screen

AI-powered green screen keyer that unmixes foreground colors and generates clean linear alpha channels using neural networks

aradotso/crucix-intelligence-dashboard

Personal intelligence agent that aggregates 27 OSINT data sources into a self-hosted Jarvis-style dashboard with Telegram/Discord bots, LLM analysis, and real-time alerts.

aradotso/daily-stock-analysis

LLM-powered A/H/US stock intelligent analysis system with multi-source data, real-time news, AI decision dashboards, and multi-channel push notifications via GitHub Actions.

aradotso/deepseek-ocr

Expert skill for using DeepSeek-OCR, a vision-language model for optical character recognition with context optical compression supporting documents, PDFs, and images.

相關技能