Skip to content

feat(frontend): add Simple/Advanced toggle with AI-assisted seed + pr…#22

Open
armonkolaei wants to merge 1 commit intonikmcfly:mainfrom
armonkolaei:main
Open

feat(frontend): add Simple/Advanced toggle with AI-assisted seed + pr…#22
armonkolaei wants to merge 1 commit intonikmcfly:mainfrom
armonkolaei:main

Conversation

@armonkolaei
Copy link
Copy Markdown

🚀 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

sceenshot_1 sceenshot_2

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant