Dangerously skip permissions - Generative UI Global Hackathon: Agentic Interfaces
AI Tinkerers - Prague
Hackathon Showcase

Dangerously skip permissions

Team led by Jan Šťastný, an AI Engineer at Mindwell and ČVUT alumnus with experience at PwC, specializing in technical problem-solving and engineering fundamentals.

1 member Watch Demo
https://drive.google.com/file/d/1rjbr2Ao0R2DVVZAORjEcbGOgLbPC6S6R/view?usp=sharing

Mental Gym is a generative cognitive training platform built around a simple idea:

as we outsource more thinking to AI, we should also intentionally train the way we think.

Instead of static exercises or predefined levels, Mental Gym generates interactive games directly inside the chat. You can type things like “play chess,” “give me a memory drill,” or “make a snake game controlled with arrow keys,” and the system creates a fully interactive experience in real time.

The interface renders actual game surfaces — boards, grids, and live sandboxed environments — directly in the conversation. Not screenshots or mockups, but working interfaces that respond to every interaction.

The platform includes seven built-in games:

Memory Grid
Focus Flow
Number Quest
Word Web
Lateral Riddle
Tic-tac-toe
Full Chess against a heuristic AI

These games are generated and rendered through A2UI component arrays in a single tool call.

For open-ended requests, Mental Gym uses E2B sandboxes. Gemini generates a complete single-file HTML5 game, E2B spins up a sandboxed environment, and the live result streams back into the chat as an interactive iframe — usually within about 15 seconds.

There is also an AI-vs-AI chess mode where Claude and GPT play against each other while the move log streams live into the interface.

On top of the games sits a personalized coaching layer. Every session is logged to SQLite, allowing the system to answer questions like:

“How am I improving?”
“What should I train more?”
“Which games am I best at?”

The stack is built with Next.js 16, A2UI, CopilotKit, OpenRouter, E2B, SQLite, React, and chess.js. A2UI powers the declarative render layer, CopilotKit handles the custom cream-themed chat interface, OpenRouter routes model calls, and E2B provides live sandboxed execution environments for generated games.

Mental Gym turns chat into an interactive cognitive training environment — a modern gym for the brain.

AI Tinkerers Google DeepMind
Summarizing URL...