Spaces:
Running
A newer version of the Gradio SDK is available:
5.34.1
title: The Genesis Agent - An AI That Creates AI Apps
emoji: π§¬
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.33.1
app_file: app.py
pinned: true
license: apache-2.0
tags:
- agent-demo-track
𧬠The Genesis Agent: An AI That Creates AI Apps
When an Agent Becomes a Creator
An autonomous, hyper-creative AI that transcends its role as a tool. When faced with a vague goal like "make something fun," it autonomously designs, codes, and launches a brand new, fully interactive Gradio application within its own interface.
This project is a submission for the Agentic Demo Showcase track in the Agents & MCP Hackathon.
π₯ Witness the Creation: Demo Video
(Click the image to watch the Genesis Agent create a new reality from scratch)
Note: Please replace your-video-id-here
with your actual YouTube video ID.
β¨ Beyond Execution: The Genesis Philosophy
This is not just another agent that follows instructions. The Genesis Agent explores what happens when an AI is given creative freedom. It represents a fundamental shift from a passive tool to a proactive creator.
π§ Creative Initiative / μ°½μ‘°μ μ£Όλμ±
- EN: It doesn't ask for clarification on vague goals. Instead, it activates its Creative Imperative Protocol, interpreting ambiguity as a license to create. It decides what to build and how to build it.
- KR: "μ¬λ°λ κ±° λ§λ€μ΄μ€"μ κ°μ λͺ¨νΈν λͺ©νμ λν΄ λλ¬»μ§ μμ΅λλ€. λμ , λ΄μ₯λ **'μ°½μ‘°μ νμ κ·μ½'**μ λ°λνμ¬, μ£Όμ΄μ§ λͺ¨νΈν¨μ μ°½μ‘°μ κΈ°νλ‘ ν΄μν©λλ€. 무μμ, μ΄λ»κ² λ§λ€μ§ μ€μ€λ‘ κ²°μ ν©λλ€.
π οΈ Meta-Creation: An Agent Building an Agent / λ©ν-μ°½μ‘°: μμ΄μ νΈλ₯Ό λ§λλ μμ΄μ νΈ
- EN: The agent's ultimate creative act is to build another fully functional Gradio app (an interactive Snake Game). This demonstrates a powerful "meta" capabilityβan agent that can spawn new, independent applications.
- KR: μ΄ μμ΄μ νΈμ κΆκ·Ήμ μΈ μ°½μ‘° νμλ μλ²½νκ² μλνλ λ λ€λ₯Έ Gradio μ±(μνΈμμ©ν μ€λ€μ΄ν¬ κ²μ)μ λ§λλ κ²μ λλ€. μ΄λ μμ΄μ νΈκ° μλ‘μ΄ λ 립 μ ν리μΌμ΄μ μ νμμν€λ κ°λ ₯ν 'λ©ν' λ₯λ ₯μ 보μ¬μ€λλ€.
π Live Environment Integration / μ€μκ° νκ²½ ν΅ν©
- EN: The newly created application isn't just code in a file. The Genesis Agent launches it on the server and seamlessly embeds it within its own UI using an
<iframe>
. The user can interact with the new creation instantly, without leaving the agent's environment. - KR: μλ‘ λ§λ€μ΄μ§ μ±μ λ¨μν μ½λ νμΌμ 머무λ₯΄μ§ μμ΅λλ€. μ λ€μμ€ μμ΄μ νΈλ μ΄ μ±μ μλ²μμ μ€ννκ³ ,
<iframe>
μ ν΅ν΄ μμ μ UI λ΄λΆμ μλ²½νκ² ν΅ν©ν©λλ€. μ¬μ©μλ μμ΄μ νΈ νκ²½μ λ²μ΄λμ§ μκ³ λ μλ‘μ΄ μ°½μ‘°λ¬Όκ³Ό μ¦μ μνΈμμ©ν μ μμ΅λλ€.
- EN: The newly created application isn't just code in a file. The Genesis Agent launches it on the server and seamlessly embeds it within its own UI using an
π The Genesis Saga: A Narrative Experience / μ°½μ‘° μμ¬: μ΄μΌκΈ°λ‘μμ κ²½ν
- EN: Every step of the creation process is logged as part of an epic narrative. The UI doesn't just show logs; it tells a story of creation, from "Interpreting the Void" to "Breathing Life into the Creation," making the user a witness to a digital birth.
- KR: μ°½μ‘°μ λͺ¨λ λ¨κ³λ νλμ μ₯μν μμ¬μμ μΌλΆλ‘ κΈ°λ‘λ©λλ€. UIλ λ¨μν λ‘κ·Έλ₯Ό 보μ¬μ£Όλ λμ , "곡νλ₯Ό ν΄μνλ€"λΆν° "μ°½μ‘°λ¬Όμ μλͺ μ λΆμ΄λ£λ€"μ μ΄λ₯΄κΈ°κΉμ§, μ¬μ©μκ° λμ§νΈ νμμ λͺ©κ²©μκ° λλ μ°½μ‘°μ μ΄μΌκΈ°λ₯Ό λ€λ €μ€λλ€.
π― Hackathon Track Contribution: Agentic Demo Showcase
The Genesis Agent is the epitome of the Agentic Demo track. It pushes the boundaries of what an "agent" can be.
- True Autonomy: It operates with minimal human intervention, making high-level creative decisions based on abstract goals.
- Complex, Multi-Stage Planning: It autonomously generates and executes a complex plan: creating a directory, writing a multi-line Python file, installing dependencies (
pip install
), and launching a background process. - Dynamic Self-Correction: If a step fails (e.g., a dependency installation error), its underlying logic is designed to analyze the
stderr
and adapt its plan, demonstrating robust problem-solving skills. - Novel Human-AI Interaction: It transforms the user's role from a "commander" to a "muse," providing the initial spark of inspiration for the AI's creative process. This redefines the user experience in agentic systems.
π οΈ Under the Hood: The Architecture of Creation
- Brain:
Mistral AI
'sCodestral-latest
model serves as the agent's mind, interpreting goals and formulating high-level plans in a structured JSON format. - Hands: Python's
subprocess
andshlex
modules are its hands, allowing it to precisely execute terminal commands, write files, install packages, and manage background processes in a secure Linux environment. - Soul: The core agent loop, written in Python, orchestrates the entire process. It maintains state, communicates with the LLM, executes commands, and updates the user interface, creating the narrative flow.
- Face:
Gradio
provides the interactive and dynamic web interface, including the real-time "Genesis Saga" log and the embedded<iframe>
for the final creation.
π How to Witness the Genesis / μ°½μ‘°λ₯Ό λͺ©κ²©νλ λ°©λ²
The experience is designed to be simple and awe-inspiring.
Provide the Spark / μκ°μ λΆκ½μ μ 곡νμΈμ:
- EN: In the "State Your Goal" textbox, enter an abstract, creative prompt.
- KR: "State Your Goal" μ λ ₯μ°½μ μΆμμ μ΄κ³ μ°½μμ μΈ λͺ©νλ₯Ό μ λ ₯νμΈμ.
Recommended Prompts:
Make something fun for me.
Create a cool game.
Surprise me.
μ¬λ°λ κ±° λ§λ€μ΄μ€.
Begin Creation / μ°½μ‘°λ₯Ό μμνμΈμ:
- EN: Click the "βΆοΈ Begin Creation" button.
- KR: "βΆοΈ Begin Creation" λ²νΌμ λλ₯΄μΈμ.
Watch the Saga Unfold / μμ¬μκ° νΌμ³μ§λ κ²μ μ§μΌλ³΄μΈμ:
- EN: On the right, in "The Genesis Saga" panel, you will see the agent think, plan, and act in real-time. Follow along as it builds the new application step-by-step.
- KR: μ€λ₯Έμͺ½μ "The Genesis Saga" ν¨λμμ μμ΄μ νΈκ° μ€μκ°μΌλ‘ μκ°νκ³ , κ³ννκ³ , νλνλ κ²μ λ³Ό μ μμ΅λλ€. μλ‘μ΄ μ ν리μΌμ΄μ μ΄ λ¨κ³λ³λ‘ λ§λ€μ΄μ§λ κ³Όμ μ λ°λΌκ° 보μΈμ.
Interact with the New World / μλ‘μ΄ μΈκ³μ μνΈμμ©νμΈμ:
- EN: Once the agent's status shows "Creation is Complete," a new interactive application (the Snake Game) will appear at the bottom right. Play with it directly!
- KR: μμ΄μ νΈμ μνκ° "Creation is Complete"κ° λλ©΄, μ€λ₯Έμͺ½ νλ¨μ μλ‘μ΄ μνΈμμ©ν μ ν리μΌμ΄μ (μ€λ€μ΄ν¬ κ²μ)μ΄ λνλ©λλ€. λ°λ‘ νλ μ΄ν΄λ³΄μΈμ!