feat(frontend): add Simple/Advanced toggle with AI-assisted seed + pr…#22
Open
armonkolaei wants to merge 1 commit intonikmcfly:mainfrom
Open
feat(frontend): add Simple/Advanced toggle with AI-assisted seed + pr…#22armonkolaei wants to merge 1 commit intonikmcfly:mainfrom
armonkolaei wants to merge 1 commit intonikmcfly:mainfrom
Conversation
…ompt generation Introduced a UI toggle between Simple and Advanced modes for simulation setup. Simple mode allows users to enter a single high-level prompt, which is then used to automatically generate both the Reality Seed and Simulation Prompt via the existing API. Advanced mode preserves the original manual workflow with separate inputs for Reality Seed and Prompt. Improves usability for non-technical users and streamlines simulation creation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Feature: Simple / Advanced Simulation Input (AI-Assisted Setup)
Overview
This PR introduces a dual-mode input system for creating simulations in MiroFish:
Simple Mode (default) → single prompt, AI generates everything
Advanced Mode → full manual control (existing behavior)
This significantly reduces friction for users who don’t know how to construct a proper Reality Seed + Simulation Prompt.
✨ What’s New
🔹 Simple Mode (NEW – Default)
Users can now enter a single natural-language request, such as:
“Predict oil prices with in the next week, and recommend stocks to purchase”
The system will:
Use the existing LLM API
Automatically generate:
Reality Seed
Simulation Prompt
Feed both into the simulation engine
🔹 Advanced Mode (Existing)
Retains current workflow:
Manual Reality Seed input
Manual Prompt input
Designed for power users and fine-tuned simulations
🔹 Toggle UI
Added a toggle between:
Simple
Advanced
Default = Simple
Seamless switching between modes
🧠 Why This Matters
Currently, users often:
Leave the app
Use ChatGPT or similar tools
Manually generate seed + prompt
Return to MiroFish
This PR eliminates that external step and brings it directly into the product.
🔄 User Experience Improvement
Before
Required structured inputs
High cognitive load
Not beginner-friendly
After
One input → full simulation setup
Faster iteration
Accessible to non-technical users
🏗️ Technical Notes
Frontend
Added state for mode toggle (Simple vs Advanced)
Conditional rendering of input UI
New flow for AI-assisted generation
Backend
No breaking changes
Reuses existing API + LLM pipeline
🧪 Example Flow
Input (Simple Mode):
System:
Generates Reality Seed (market context)
Generates Simulation Prompt (agent behavior)
Executes simulation