"The Danger Zone" of Automotive Manufacturing
This project is an advanced agentic simulation that demonstrates the critical importance of predictive intelligence in supply chain management. It models the interaction between Social Sentiment (Demand), Financial Health (Liquidity), and Global Logistics (Supply) to drive an autonomous Automotive OEM.
Real-world manufacturing has lead times. This simulation enforces a 4-step (approx. 8-second) commitment lag.
- Planning: The AI Oracle sets a target based on current signals.
- Locked: That target enters a queue and cannot be changed.
- Execution: The factory builds the cars 8 seconds later. Result: If the AI fails to predict a recession, the "Locked" pipeline will continue to churn out cars into a dead market, causing massive inventory bloat ("Lot Rot").
The simulation runs a full financial backend:
- Variable Costs: Parts & Labor ($32k/unit).
- Fixed Costs: Factory Overhead ($20M/cycle).
- Economies of Scale: Profitability requires high volume to absorb fixed costs. Low volume = Losses.
- Active Feedback: The AI actively monitors Profit Margin. If it drops below 2%, it triggers a "PROFIT WARNING" protocol, hiking prices and cutting costs to survive.
Three independent AI agents monitor the world:
- Social Agent: Scrapes "Twitter/X" trends and Ad conversion rates.
- Bank Agent: Monitors Interest Rates and Credit Rejection rates.
- Supply Agent: Tracks Lithium spot prices and shipping delays.
These signals are fused by the Oracle (Central Node) to make decisions.
- Cyberpunk UI: A "Dark Mode" command center aesthetic.
- Beam Visualization: Watch data packets travel from agents to the core.
- Stats Sidebar: Tracks "Lifetime Sales" and "Inventory Stockpile" to prove long-term performance.
- Financial Timeline: A real-time chart at the bottom visualizing Profit vs. Spend vs. Sales.
- Python 3.9+
- Node.js 16+
The backend is built with FastAPI and handles the agent logic.
cd backend
pip install -r requirements.txt
uvicorn main:app --reloadServer will start on http://localhost:8000
The frontend is a React application managing the visualization.
cd frontend
npm install
npm run devOpen http://localhost:5173 in your browser.
MIT
