How parety/miro-fish works
MiroFish is a multi-agent forecasting engine: users provide seed material and a prediction question, then build a knowledge graph, configure a simulated environment, run social-platform simulations, generate a report, and interact with the simulated world. The graph preserves these documented stages and the major report, memory, and agent-profile capabilities. Some backend implementation was not sampled; README workflow statements support the stage links, while internal links are limited to references visible in the source index or excerpts.
Main entry points: graph.py Graph endpoints · report.py Report endpoints · simulation.py Simulation endpoints · simulation_manager.py Simulation manager
Components 32
User workflow
- Project home
frontend/src/views/Home.vue - Upload workflow
frontend/src/views/Process.vue - Project workspace
frontend/src/views/MainView.vue - Graph explorer
frontend/src/components/GraphPanel.vue - Environment setup
frontend/src/components/Step2EnvSetup.vue - Simulation controls
frontend/src/components/Step3Simulation.vue - Report viewer
frontend/src/components/Step4Report.vue - World interaction
frontend/src/components/Step5Interaction.vue - Pending upload state
frontend/src/store/pendingUpload.js - Graph API client
frontend/src/api/graph.js - Simulation API client
frontend/src/api/simulation.js - Report API client
frontend/src/api/report.js
Knowledge preparation
- Graph endpoints
backend/app/api/graph.py - Seed text extraction
backend/app/utils/file_parser.py - Ontology extraction
backend/app/services/ontology_generator.py - Graph construction
backend/app/services/graph_builder.py - Project state
backend/app/models/project.py
Simulation engine
- Simulation endpoints
backend/app/api/simulation.py - Graph entity reader
backend/app/services/zep_entity_reader.py - Agent profiles
backend/app/services/oasis_profile_generator.py - Simulation configuration
backend/app/services/simulation_config_generator.py - Simulation manager
backend/app/services/simulation_manager.py - Simulation runner
backend/app/services/simulation_runner.py - Simulation IPC
backend/app/services/simulation_ipc.py - Temporal memory updates
backend/app/services/zep_graph_memory_updater.py
Reports and interaction
- Report endpoints
backend/app/api/report.py - Report agent
backend/app/services/report_agent.py - Graph query tools
backend/app/services/zep_tools.py - Report records
backend/app/api/report.py
Other components
- User
- Zep graph memory
- LLM service
Connections 32
- User → Project home: provides input
README.md - Project home → Upload workflow: starts upload
frontend/src/views/Home.vue - Upload workflow → Pending upload state: stores pending
frontend/src/store/pendingUpload.js - Upload workflow → Graph API client: requests graph
frontend/src/views/Process.vue - Project workspace → Graph explorer: renders
frontend/src/views/MainView.vue - Project workspace → Environment setup: renders
frontend/src/views/MainView.vue - Environment setup → Simulation API client: requests setup
frontend/src/components/Step2EnvSetup.vue - Simulation controls → Simulation API client: controls runs
- Report viewer → Report API client: requests reports
frontend/src/components/Step4Report.vue - World interaction → Report API client: requests dialogue
- Graph API client → Graph endpoints: calls endpoints
- Graph endpoints → Seed text extraction: parses uploads
backend/app/api/graph.py - Graph endpoints → Ontology extraction: generates ontology
backend/app/api/graph.py - Graph endpoints → Graph construction: builds graph
backend/app/api/graph.py - Graph endpoints → Project state: updates project
backend/app/api/graph.py - Simulation API client → Simulation endpoints: calls simulation API
frontend/src/api/simulation.js - Simulation endpoints → Graph entity reader: filters entities
backend/app/api/simulation.py - Simulation endpoints → Simulation manager: manages simulations
backend/app/api/simulation.py - Simulation manager → Agent profiles: generates profiles
backend/app/services/simulation_manager.py - Simulation manager → Simulation configuration: generates configuration
backend/app/services/simulation_manager.py - Simulation endpoints → Simulation runner: starts runs
backend/app/api/simulation.py - Simulation runner → Simulation IPC: communicates through
backend/app/services/simulation_runner.py - Simulation runner → Temporal memory updates: updates memory
backend/app/services/simulation_runner.py - Temporal memory updates → Zep graph memory: writes temporal memory
- Report API client → Report endpoints: calls report API
- Report endpoints → Report agent: generates reports
backend/app/api/report.py - Report endpoints → Simulation manager: loads simulation
backend/app/api/report.py - Report endpoints → Report records: lists reports
backend/app/api/report.py - Report agent → Graph query tools: uses query tools
backend/app/services/report_agent.py - Report agent → LLM service: requests reasoning
- Report endpoints → Graph query tools: searches graph
backend/app/api/report.py - Graph query tools → Zep graph memory: queries memory