💡 Inspiration
We have endless tools to debug our code, but almost no tools to debug our brains. Modern life—and especially software development—leaves us running with high "mental RAM" usage. We carry background processes like imposter syndrome, unfinished tasks, and general anxiety that slow us down.
We asked: What if you could run git reset --hard on your emotions?
// PURGE_CACHE isn't a productivity tool. It is a digital ritual. It is designed to take the abstract weight of stress and turn it into something concrete, visual, and deletable.
🤖 What it does
// PURGE_CACHE is a terminal-based experience that acts as a "System Cleaner" for the human mind.
- Input: The user initiates a purge sequence and types their current worry or stressor.
- Analysis (The Core): We utilize Google Gemini (Flash Model) with a custom "Stoic OS" persona. Instead of offering generic advice, "The Core" analyzes the emotional weight of the text.
- Visual Feedback: The system calculates a "System Load" percentage (e.g., 89% Load) and shifts the entire UI color scheme to match the sentiment (Red for critical errors/anger, Blue for cooling/melancholy).
- The Patch: The AI generates a "System Patch"—a single, short, stoic sentence designed to reframe the user's perspective instantly.
- The Purge: When the user clicks "REBOOT," the worry is visually glitched out of existence, clearing the interface and the user's mental cache.
⚙️ How we built it
- Frontend: Built with React and Vite for a snappy, instant experience.
- AI Engine: Powered by Google Gemini 1.5 Flash. We chose Flash for its speed—the feedback loop needs to be instant to feel real.
- Prompt Engineering: We moved away from "chatbot" prompts. We instructed Gemini to return strictly formatted JSON with "System Load" estimates and hex codes, forcing it to act like a deterministic operating system rather than a language model.
- The "Vibe": We avoided modern UI trends. No rounded corners, no white space. We used raw CSS to create CRT scanlines, text glow, and chromatic aberration (glitch effects) to immerse the user in a cyberpunk environment.
🧠 Challenges we ran into
The hardest part was personality. Default AI models are too helpful and "chatty." They want to fix your problem with a list of 10 steps. We had to aggressively tune the system prompt to make "The Core" sound cold yet insightful—like a machine that understands human pain but isn't burdened by it. We also had to optimize the API calls to ensure the "Color Shift" happened instantly to maintain immersion.
🏆 Accomplishments that we're proud of
We are most proud of the "Color Theory" engine. Having the terminal turn a deep, angry red or a sickly envious green based only on the text you typed feels magical. It makes the user feel like the machine actually "understands" the mood, not just the words.
🚀 What's next for // PURGE_CACHE
We plan to add "Audio Feedback"—humming fan noises that get louder as the "System Load" increases, and a satisfying "click" sound when the cache is finally cleared.
Built With
- artificial-intelligence
- css3
- google-gemini
- javascript
- react
- vite
Log in or sign up for Devpost to join the conversation.