CoolFace
Apppublic

build-small-hackathon/aube-nova

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
App README

[image]

🌌 AUBE NOVA

Humanity's First Autonomous Extraterrestrial Colony

![HuggingFace Space](https://huggingface.co/spaces/build-small-hackathon/aube-nova) ![Model](https://huggingface.co/openbmb/MiniCPM4.1-8B) ![Python](https://python.org) ![License](LICENSE) ![Hackathon](https://huggingface.co/build-small-hackathon) ![Demo](https://www.youtube.com/watch?v=encFNZv0uVU)


🎬 Demo

[β–Ά Watch the demo video](https://www.youtube.com/watch?v=encFNZv0uVU)

🌐 Social

[πŸ“£ LinkedIn post about this build](https://www.linkedin.com/feed/update/urn:li:activity:7472435029697282048/)

πŸ‘₯ Team

NameHugging Face
Reinaldoreinaldog

Aube Nova is a living civilization simulator powered entirely by small language models. 12 colonists arrive on a distant world with nothing but their wits, their tools, and each other. Every decision, every crisis response, and every newspaper headline is generated by MiniCPM4.1-8B β€” in real time, ~80 tokens at a time. You don't control them. You watch them survive.

πŸ† Built for the [Build Small Hackathon](https://huggingface.co/build-small-hackathon) Β· Track: Thousand Token Wood

πŸš€ What It Does

πŸ”§ SystemπŸ“– Description
πŸ‘₯ 12 LLM AgentsEach colonist acts autonomously β€” their weekly action is generated by MiniCPM4.1-8B (~80 tokens in/out)
⏱️ Tick EngineEach week resources deplete, crises erupt, breakthroughs happen, colonists age and die
πŸ“° The Aube ChronicleA newspaper front page written by the LLM at year-end, with milestone entries for deaths, births, and discoveries
πŸ”Š NarrationChronicle entries read aloud by VoxCPM2; gracefully falls back to gTTS on CPU
πŸ“Š Live AnalyticsResource trends, population by generation, and cultural trait drift β€” all charted in real time
🧬 Cultural DNAColonist personalities drift as conditions change β€” crises breed pragmatism, breakthroughs breed optimism
πŸ–±οΈ Colonist ProfilesClick any portrait or map token to see a colonist's traits, memories, notable actions, and health

✨ Features

SystemDescription
πŸ—ΊοΈ Colony MapSci-fi SVG map with dome, habitat module, greenhouse, reactor, and animated colonist tokens
πŸ‘€ Colonist ProfilesClick any portrait or map token to see traits, memories, notable actions, and health
⚑ Resource EngineOxygen, food, energy, credits β€” balanced production vs. consumption per tick
πŸ’₯ CrisesOxygen plant failure, greenhouse blight, solar storm, credit crisis
πŸ’‘ BreakthroughsPermanent knowledge gains (closed-loop Oβ‚‚, hydroponic yield, reactor load balancing)
πŸ“° ChronicleNewspaper-style annual dispatches + milestone entries with audio narration
πŸ“ˆ AnalyticsResource history, population by generation, cultural trait drift β€” all live

πŸ› οΈ How to Run

bash
uv sync
cp .env.example .env   # add HF_TOKEN if using the Inference API
uv run python app.py

Open http://localhost:7860.

Controls:

ButtonAction
β–Ά ADVANCE WEEKTick the simulation forward one week
⏩ FF 10 WEEKSAdvance 10 weeks at once
πŸ—“οΈ FF 1 YEARFast-forward a full colony year (52 weeks with random crises/breakthroughs)
πŸ’₯ INJECT CRISISTrigger a random crisis
πŸ’‘ BREAKTHROUGHFire an explanatory breakthrough (permanent building bonus)
β†Ί NEW COLONYReset to a fresh colony

πŸ—οΈ Architecture

app.py (Gradio UI)
β”œβ”€β”€ simulation/   ← world state, colonists, resources, events, genetics
β”œβ”€β”€ llm/          ← agent actions, chronicle, narration (VoxCPM2 + gTTS fallback)
└── ui/           ← SVG map, portraits, HUD, chronicle view, analytics charts

All agent decisions use MiniCPM4.1-8B via the Hugging Face Inference API. Narration uses VoxCPM2 (openbmb/VoxCPM2) loaded via from_pretrained with audio caching; gracefully falls back to gTTS on CPU-only environments.


πŸ’­ Philosophy

"Problems are inevitable. Problems are soluble." β€” David Deutsch

The Breakthrough mechanic is inspired by The Beginning of Infinity: the colony doesn't just survive crises β€” it generates permanent explanatory knowledge that makes it more resilient. Every breakthrough is a small piece of the colony's growing understanding of its world.

The setting does narrative work for free: when oxygen is at 12% and the Reactor is critical, you don't need an engineer to explain why it matters.


πŸ“„ License

MIT