MiroFish
A social simulation scenario engine. Feed it documents describing any scenario, and MiroFish simulates AI agents reacting on social media to explore how events might unfold. Designed for agent-driven workflows — outputs include a machine-readable verdict.json alongside the full report.
Fork of 666ghj/MiroFish — fully translated to English, CLI-only, Claude/Codex CLI support added.
What it does
- Feed reality seeds — PDFs, markdown, or text files (news articles, policy drafts, financial reports, anything)
- Describe what to predict — natural language requirement
- MiroFish builds a world — extracts entities and relationships into a knowledge graph, generates AI agent personas with distinct personalities
- Agents simulate social media — dual-platform simulation (Twitter + Reddit) where agents post, reply, like, argue, and follow each other
- Get a prediction report — AI analyzes all simulation data and produces a report + machine-readable verdict with confidence scores and signals
Quick start
Prerequisites
- Python 3.11-3.12
- uv (Python package manager)
Setup
cp .env.example .env
# Default: claude-cli (uses your Claude Code subscription)
uv sync
Run a simulation
mirofish run \
--files docs/policy.pdf notes/context.md \
--requirement "Predict public reaction over 30 days" \
--json
# List prior runs (slim summary: run_id, status, created_at, artifact_count)
mirofish runs list --json
# Check run status (full manifest)
mirofish runs status <run_id> --json
# Export artifacts
mirofish runs export <run_id> --json
CLI options
mirofish run
--files FILE [FILE ...] Source files (pdf/md/txt) used to ground the
ontology and profiles
--requirement TEXT Plain-English simulation requirement
(e.g. "How would voters react to X?")
--platform parallel|twitter|reddit Simulation platform (default: parallel)
--max-rounds N Max simulation rounds (default: 10)
--output-dir PATH Run output directory
--json Machine-readable JSON output (stdout)
- Without
--json: rich visual pipeline display on stderr (respectsNO_COLORand non-tty stdout) - With
--json: machine-readable JSON on stdout, plain progress on stderr --help/--versionwork without a valid.env; other commands runConfig.validate()first- Exit code 0 = success, 1 = error (including config errors)
Run artifacts
Each run produces an immutable directory:
uploads/runs/<run_id>/
manifest.json
input/
requirement.txt
source_files/
ontology.json
simulation_config.json
graph/
graph.json
graph_summary.json
simulation/
timeline.json
top_agents.json
actions.jsonl
config.json
report/
verdict.json
summary.json
report.md
visuals/
swarm-overview.svg
cluster-map.svg
timeline.svg
platform-split.svg
logs/
run.log
LLM providers
Set LLM_PROVIDER in .env. Only claude-cli and codex-cli are accepted; any other value (e.g. openai) is rejected at startup with a config error and exit code 1.
| Provider | Config | Cost |
|---|---|---|
claude-cli |
LLM_PROVIDER=claude-cli (default) |
Uses your Claude Code subscription |
codex-cli |
LLM_PROVIDER=codex-cli |
Uses your Codex CLI subscription |
Architecture
app/
cli.py CLI entry point (primary interface)
cli_display.py Rich visual pipeline display
config.py Environment + validation
run_artifacts.py Immutable run storage
visual_snapshots.py SVG snapshot generation
core/ Workbench session, session registry, resource loader, tasks
resources/ Adapters for projects, documents, graph, simulations, reports
tools/ Composable pipeline (ingest, build, prepare, run, report)
services/
graph_storage.py JSON graph backend
graph_db.py Graph query facade
entity_extractor.py LLM-based extraction
graph_builder.py Ontology -> graph pipeline
simulation_runner.py OASIS simulation (subprocess)
report_agent.py Single-pass report generation
graph_tools.py Search, interview, analysis
utils/
llm_client.py CLI-only LLM client (claude-cli, codex-cli)
scripts/ OASIS simulation runner scripts
Acknowledgments
License
AGPL-3.0
Metadata
Release files for mirofish-cli 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mirofish_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for mirofish_cli-0.1.4-py3-none-any.whl |
Release files / mirofish_cli-0.1.4-py3-none-any.whl
| Download URL | mirofish_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 146.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e53cca8c13f74d65a362b3b683eb5823ed92f845d501696d5c53b3da6fdabb3
|
|
BLAKE2b-256 checksum How to use checksums |
625365e8a26335493d93c810e839199ed29317788a74be94a200d92fb7087f04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for mirofish-cli 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.