This project is a proof-of-concept for a revolutionary approach to manufacturing R&D. It's a simple, interactive application that demonstrates how a role-based AI agent, powered by a Large Language Model (LLM), can understand natural language, interpret structured data (BOM), and control 3D modeling software to automate the initial product design process.
This isn't just about designing hats. It's about proving a new way of working.
In modern manufacturing, the most critical challenge is the permanent loss of expert knowledge when talented engineers leave. This project is the first step toward solving this "Knowledge Drain" by creating an AI system that can learn, execute, and preserve the core knowledge of our best designers and engineers.
The "AI Hat Design Studio" serves as a simple, elegant, and visually intuitive testbed to validate this grand vision.
- Persona-Driven AI (
Forma
): The core of the system is an AI agent namedForma
, whose role, personality, and knowledge are defined in an externalpersona_forma.yml
file. This makes the AI's behavior predictable and controllable. - Natural Language Interface: Interact with
Forma
using plain English. Simply tell it what you want, from changing a color to applying a complex style like a "cowboy hat." - BOM-Aware Logic (
BoMi
): The system's initial agent,BoMi
, parses a Bill of Materials (bom_data.csv
) to understand available parts, materials, and costs, grounding the AI's suggestions in reality. - Live 3D Assembly & Modification:
Forma
translates your commands into actions, controlling a live 3D viewer to assemble parts and modify the design in real-time.
This MVP demonstrates a powerful concept: separating the AI's 'brain' (LLM) from its 'hands' (Python code & APIs), orchestrated by a human architect.
- User Input: The user provides a natural language command (e.g., "make it a cowboy hat").
- Persona Imprinting: The
app.py
sends the user's command along withForma
's entire persona (persona_forma.yml
) and the list of available parts (bom_data.csv
) to the Gemini LLM. - LLM as the 'Brain': The LLM, now acting as
Forma
, doesn't just translate words. It understands the request based on its given knowledge and returns a structured JSON command (e.g.,{"action": "apply_style", "style_name": "cowboy hat", ...}
). - Python as the 'Hands': The
app.py
receives this structured command and executes it. It looks up the correct 3D models from the BOM and updates the 3D viewer.
This clear separation of roles is the core of the MirrorMind philosophy.
-
Clone the repository:
git clone [https://github.com/HWAN-OH/AI-Hat-Design-Studio.git](https://github.com/HWAN-OH/AI-Hat-Design-Studio.git) cd AI-Hat-Design-Studio
-
Install dependencies:
pip install -r requirements.txt
-
Set up your API Key:
- Get your Google AI API key from Google AI Studio.
- Deploy this app to Streamlit Community Cloud and add your key to the
Secrets
management. The key name should beGOOGLE_AI_API_KEY
.
-
Run the app:
streamlit run app.py
This project was architected and developed by OH SEONG-HWAN, a leader with deep expertise across the energy, manufacturing, and technology sectors, as a proof-of-concept for a new paradigm in human-AI collaboration.
This project is licensed under the MIT License. Copyright (c) 2025, OH SEONG-HWAN.