Who it is forA logistics analyst who must justify a change in robot count, charger use or task mix and needs evidence before proposing it.
The problemJudging a proposed change from intuition is risky, and testing it on the live system is not an option.
The outcomeA side-by-side comparison of 12 metrics against a baseline, plus a tick-by-tick diff that shows where the two runs first diverge, with the live system left untouched.
What you need first
- Node 18 or newer
- Python 3.11 (conda or venv)
- Git
- Optional: an OpenAI API key in backend/.env for LLM mode, otherwise the app runs in demo mode with no key
Steps
- Start the backend with
uvicorn app.main:app --reload --port 8000from the backend folder afterpip install -r requirements-dev.txt - Start the frontend with
npm installthennpm run devfrom the frontend folder - Open the What-if panel, choose the injections to test and run a 1 to 10 minute simulation
- Read the 12-metric comparison against the baseline that uses the same seed
- Optionally replay across up to 5 seeds and check the min, median and max per KPI, then use the event diff to find the first divergence
Prompt for your agent
Using the WareTwin repo at https://github.com/WayneChou-bot/WareTwin, run a what-if simulation that injects <scenario> into the live twin and compare the 12 metrics with the baseline. Output a table of each metric with baseline value, scenario value and difference. Verify the live simulation state was not changed after the run.
Caveat. The multi-seed range shows the model's internal variability, not a statistical prediction interval, so it should not be read as a forecast.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for WayneChou-bot/WareTwin and "Compare a fleet change against a baseline with what-if runs"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer