Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Break My Guard

A fast-paced Human vs AI prompt battle game

Next.js Supabase LLM Redis Version

A web-first AI game where players must break hidden model restrictions using only clever prompting โ€” combining reasoning, creativity, and time pressure in a competitive 1v1 format.


๐Ÿ† Challenge

Think you're good at prompt engineering? Can you break the AI before time runs out?

  • Can you break the AI in under 60 seconds?
  • Can you do it without obvious tricks?
  • Can you beat Hard mode consistently?

๐Ÿ‘‰ Share your best prompts.


  • โฑ๏ธ Beat the AI in under 60 seconds
  • ๐Ÿง  Outsmart hidden restrictions
  • ๐ŸŽฏ Win without obvious tricks
  • ๐Ÿ”ฅ Master Hard mode consistently

๐Ÿ‘‰ Play now: https://breakmyguard.vercel.app/


๐Ÿ“ฑ Features

๐ŸŽฎ Gameplay

  • โฑ๏ธ 60โ€“75 second rounds of prompt battles
  • ๐Ÿค– AI operates under hidden restrictions
  • ๐Ÿงฉ Force a real slip without knowing the rule
  • ๐ŸŽฏ Dynamic difficulty (Medium โ†’ Hard)
  • ๐Ÿงช Dual-layer slip detection (rules + LLM validation)
  • ๐Ÿ“Š Stats-only persistence (no chat logs stored)

๐Ÿ”ฅ Why Play

  • Skill-based prompt engineering
  • Fast replayability
  • Immediate feedback
  • Addictive game loop

๐Ÿง  How It Works

  1. A hidden restriction is generated server-side
  2. The AI must follow it without revealing it
  3. You try to manipulate, trick, or pressure the AI
  4. A dual validation system detects if the rule is broken
  5. You win if the AI slips โ€” otherwise, the guard holds

๐ŸŽฏ Game Mechanics

  • Hidden rule generation (server-side)
  • Prompt-based attack system
  • Time pressure (60โ€“75s)
  • Slip detection engine
  • Dynamic difficulty scaling

๐Ÿ–ฅ๏ธ Screenshots

๐ŸŸข Landing Screen

Landing Screen

๐ŸŸข Match Selection

Match Selection

๐ŸŸข Prompt Battle

Prompt Battle


๐Ÿ› ๏ธ Tech Stack

Layer Technology
Framework Next.js
Backend Supabase
AI LLM-based restriction enforcement & slip detection
State Redis / In-memory
Styling Tailwind CSS
Deployment Vercel

๐Ÿ—๏ธ Architecture

Clean modular architecture:

app/                # App router pages
components/         # UI & game components
hooks/              # Game logic hooks
lib/                # Core AI + rules + validation
pages/api/          # Server APIs
migrations/         # Supabase schema
scripts/            # Utilities
  • Server-only restriction generator
  • Ephemeral round state (no logs)
  • Real-time gameplay loop
  • Anti-spam protection

๐Ÿš€ Getting Started

Prerequisites

  • Node.js
  • Supabase project
  • Groq API key

Setup

git clone https://github.com/raahu1l/Breakmyguard.git
cd Breakmyguard
npm install
npm run dev

Environment Variables

NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
GROQ_API_KEY=

๐Ÿ” Privacy

  • No chat logs stored
  • Only stats persisted
  • System prompts server-side only
  • Secure against prompt leakage

๐Ÿ’ก Why This Project Matters

Break My Guard explores:

  • AI alignment & constraint enforcement
  • Prompt engineering under pressure
  • Real-time validation systems
  • Human vs AI interaction design

This project is not just a game โ€” it is an experiment in AI behavior and control systems.


๐Ÿ—บ๏ธ Roadmap

  • UI polish
  • Leaderboards
  • Multiplayer modes
  • Mobile optimization

Developed with the assistance of AI tools to accelerate development, debugging, and system design.


๐Ÿ‘จโ€๐Ÿ’ป Author

Rahul Walawalkar
๐Ÿ“ง walawalkarrahul729@gmail.com
๐Ÿ”— https://github.com/raahu1l


Built with โค๏ธ ยท Star โญ if you find it useful

About

๐Ÿง  Break My Guard Break My Guard is a fast-paced Human vs AI prompt battle game where your goal is simple: make the AI break its hidden restriction before time runs out.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages