MiroFish Guide Skill
Use this skill when the task touches MiroFish operations, documentation, experiments, or repository maintenance.
MiroFish is a multi-stage engine:
- source material is uploaded and chunked;
- Zep graph extraction runs;
- entities are filtered for simulation;
- OASIS profiles are generated;
- simulation config is generated by an LLM;
- Twitter and Reddit environments run;
- a report agent analyzes the result.
The best way to work on MiroFish is to identify the stage first, then inspect the artifacts and constraints for that stage.
Reference Routing
Load only the file you need:
references/workflow.md
Use for end-to-end architecture, stage ownership, and code-grounded defaults.
references/debugging.md
Use for setup problems, missing artifacts, weak runs, report issues, or proxy problems.
references/graph-build-runbook.md
Use for sparse ontology output, graph build failures, Zep ingestion trouble, or entity-normalization issues.
references/seed-templates.md
Use for reusable source-material patterns and stronger simulation requirements.
references/experiments.md
Use for empirical tuning observations, model comparisons, and cost-quality tradeoffs.
references/operator-workflow.md
Use for the practical operator loop: pilot run, artifact checks, scaling, and post-run audit.
references/runtime-forensics.md
Use when a run technically completed but you need to judge whether it produced meaningful multi-agent behavior.
references/report-audit.md
Use when verifying report claims against raw artifacts and tool logs.
references/evidence-taxonomy.md
Use when classifying claims or verifying whether a report assertion is actually supported.
references/evaluation-rubric.md
Use when scoring simulation quality or report quality.
references/experiment-protocol.md
Use when planning a reproducible comparison across models, prompts, or runtime settings.
references/model-proxy-guidance.md
Use when validating model routes, OpenAI-compatible proxies, or structured-output reliability.
references/anti-patterns.md
Use when preventing common operator mistakes before they waste time or API budget.
references/glossary.md
Use for short definitions of MiroFish, OASIS, Zep, GraphRAG, and report-stage terms.
references/project-context.md
Use for background questions: who backs/built MiroFish, how popular it is, release timeline, how much to trust its predictions, the local-deployment forks, and how it compares to other simulators. Dated snapshot; the rest of the guide is version-neutral.
Operating Rules
- Separate
code-confirmed facts from experiment-confirmed observations.
- Prefer fixing source material and simulation requirements before patching engine internals.
- Debug from generated artifacts first, not from vague impressions of the final report.
- Do not assume round count equals reasoning depth.
- Treat the report as a summary layer and verify important claims against raw artifacts.
What Usually Matters Most
Source material
This is the main quality lever.
Strong input usually contains:
- named stakeholders;
- explicit relationships between actors;
- dates, numbers, and concrete events;
- multiple perspectives on the same topic;
- one clear scenario instead of mixed unrelated topics.
Weak input usually produces weak graphs, generic personas, and shallow reports.
Simulation requirement
The requirement should say what the engine should explore, over what timeframe, and with which focal variables.
Good requirement pattern:
[topic] over [timeframe].
Focus on [3-5 factors].
Watch for [risks, scenarios, or stakeholder reactions].
Bad requirement pattern:
What will happen?
Agent quality
MiroFish does not start from a handcrafted agent roster.
Agent quality depends on:
- extracted entities;
- enriched context from the graph;
- profile generation quality;
- model quality.
If agents look generic, inspect entity relevance before blaming the profile layer.
Debugging Heuristics
If the run is weak
Check in this order:
- source material
- graph quality
- filtered entities
- generated profiles
- simulation config
- runtime artifacts
- report logs
If the simulation ends too quickly
Inspect:
state.json
simulation_config.json
run_state.json
- per-platform
actions.jsonl
- per-platform simulation databases
Fast completion can mean the environment only produced initial actions and did not do much per-round reasoning.
If a proxy behaves strangely
Inspect request and response compatibility separately from model quality.
Known failure pattern:
- assistant output may need to be represented as
output_text rather than input_text in OpenAI-compatible flows.
If environment variables look ignored
Remember:
- MiroFish loads the project root
.env
- loading uses override semantics
So the root .env can silently replace values you thought were inherited from a parent process.
High-Value Facts
- the engine accepts
pdf, md, txt, and markdown uploads;
- graph build uses chunking before Zep ingestion;
- generated runtime artifacts live under
backend/uploads/simulations/<simulation_id>/ in a MiroFish checkout;
- report artifacts live under
backend/uploads/reports/<report_id>/ in a MiroFish checkout;
- report generation is often the most reasoning-heavy stage;
- the report agent uses tool-backed section generation and logs its work to
agent_log.jsonl.
When Maintaining This Repository
Keep the repository strict about evidence:
- guide files should stay compact;
- detailed facts belong in
references/;
- experiment notes should stay clearly marked as empirical;
- if upstream MiroFish changes behavior, update the affected stage rather than scattering edits everywhere.
1---2name: mirofish-guide3description: Companion skill for the MiroFish multi-agent simulation engine. Use when planning or running MiroFish simulations, writing source material or simulation requirements, debugging graph/entity/profile/config/runtime/report stages, evaluating run quality, validating model or proxy routes, interpreting generated artifacts, or maintaining a repository of MiroFish best practices.4---56# MiroFish Guide Skill78Use this skill when the task touches MiroFish operations, documentation, experiments, or repository maintenance.910MiroFish is a multi-stage engine:11121. source material is uploaded and chunked;132. Zep graph extraction runs;143. entities are filtered for simulation;154. OASIS profiles are generated;165. simulation config is generated by an LLM;176. Twitter and Reddit environments run;187. a report agent analyzes the result.1920The best way to work on MiroFish is to identify the stage first, then inspect the artifacts and constraints for that stage.2122## Reference Routing2324Load only the file you need:2526- `references/workflow.md`27 Use for end-to-end architecture, stage ownership, and code-grounded defaults.2829- `references/debugging.md`30 Use for setup problems, missing artifacts, weak runs, report issues, or proxy problems.3132- `references/graph-build-runbook.md`33 Use for sparse ontology output, graph build failures, Zep ingestion trouble, or entity-normalization issues.3435- `references/seed-templates.md`36 Use for reusable source-material patterns and stronger simulation requirements.3738- `references/experiments.md`39 Use for empirical tuning observations, model comparisons, and cost-quality tradeoffs.4041- `references/operator-workflow.md`42 Use for the practical operator loop: pilot run, artifact checks, scaling, and post-run audit.4344- `references/runtime-forensics.md`45 Use when a run technically completed but you need to judge whether it produced meaningful multi-agent behavior.4647- `references/report-audit.md`48 Use when verifying report claims against raw artifacts and tool logs.4950- `references/evidence-taxonomy.md`51 Use when classifying claims or verifying whether a report assertion is actually supported.5253- `references/evaluation-rubric.md`54 Use when scoring simulation quality or report quality.5556- `references/experiment-protocol.md`57 Use when planning a reproducible comparison across models, prompts, or runtime settings.5859- `references/model-proxy-guidance.md`60 Use when validating model routes, OpenAI-compatible proxies, or structured-output reliability.6162- `references/anti-patterns.md`63 Use when preventing common operator mistakes before they waste time or API budget.6465- `references/glossary.md`66 Use for short definitions of MiroFish, OASIS, Zep, GraphRAG, and report-stage terms.6768- `references/project-context.md`69 Use for background questions: who backs/built MiroFish, how popular it is, release timeline, how much to trust its predictions, the local-deployment forks, and how it compares to other simulators. Dated snapshot; the rest of the guide is version-neutral.7071## Operating Rules72731. Separate `code-confirmed` facts from `experiment-confirmed` observations.742. Prefer fixing source material and simulation requirements before patching engine internals.753. Debug from generated artifacts first, not from vague impressions of the final report.764. Do not assume round count equals reasoning depth.775. Treat the report as a summary layer and verify important claims against raw artifacts.7879## What Usually Matters Most8081### Source material8283This is the main quality lever.8485Strong input usually contains:8687- named stakeholders;88- explicit relationships between actors;89- dates, numbers, and concrete events;90- multiple perspectives on the same topic;91- one clear scenario instead of mixed unrelated topics.9293Weak input usually produces weak graphs, generic personas, and shallow reports.9495### Simulation requirement9697The requirement should say what the engine should explore, over what timeframe, and with which focal variables.9899Good requirement pattern:100101```text102[topic] over [timeframe].103Focus on [3-5 factors].104Watch for [risks, scenarios, or stakeholder reactions].105```106107Bad requirement pattern:108109```text110What will happen?111```112113### Agent quality114115MiroFish does not start from a handcrafted agent roster.116Agent quality depends on:117118- extracted entities;119- enriched context from the graph;120- profile generation quality;121- model quality.122123If agents look generic, inspect entity relevance before blaming the profile layer.124125## Debugging Heuristics126127### If the run is weak128129Check in this order:1301311. source material1322. graph quality1333. filtered entities1344. generated profiles1355. simulation config1366. runtime artifacts1377. report logs138139### If the simulation ends too quickly140141Inspect:142143- `state.json`144- `simulation_config.json`145- `run_state.json`146- per-platform `actions.jsonl`147- per-platform simulation databases148149Fast completion can mean the environment only produced initial actions and did not do much per-round reasoning.150151### If a proxy behaves strangely152153Inspect request and response compatibility separately from model quality.154155Known failure pattern:156157- assistant output may need to be represented as `output_text` rather than `input_text` in OpenAI-compatible flows.158159### If environment variables look ignored160161Remember:162163- MiroFish loads the project root `.env`164- loading uses override semantics165166So the root `.env` can silently replace values you thought were inherited from a parent process.167168## High-Value Facts169170- the engine accepts `pdf`, `md`, `txt`, and `markdown` uploads;171- graph build uses chunking before Zep ingestion;172- generated runtime artifacts live under `backend/uploads/simulations/<simulation_id>/` in a MiroFish checkout;173- report artifacts live under `backend/uploads/reports/<report_id>/` in a MiroFish checkout;174- report generation is often the most reasoning-heavy stage;175- the report agent uses tool-backed section generation and logs its work to `agent_log.jsonl`.176177## When Maintaining This Repository178179Keep the repository strict about evidence:180181- guide files should stay compact;182- detailed facts belong in `references/`;183- experiment notes should stay clearly marked as empirical;184- if upstream MiroFish changes behavior, update the affected stage rather than scattering edits everywhere.