Murder.Ai / GEMINI.md
Justxd22's picture
Enhance game mechanics and UI: Update Gradio version, improve suspect card formatting, and add phone number handling for suspects
e7dcd7e
|
raw
history blame
2.62 kB

Murder.Ai Project Context

Project Overview

Murder.Ai is an AI-powered murder mystery game designed as a Gradio application. In this game, Large Language Models (LLMs) take on specific rolesβ€”Detective, Murderer, and Witnessesβ€”to generate and solve unique crime scenarios.

The core concept involves an "MCP Story Generator" that creates consistent murder mystery cases. Users can watch the AI agents interact in "Spectator Mode" or actively participate in "Interactive Mode". The project is intended for deployment on Hugging Face Spaces.

Current Status

The project is currently in the initialization phase.

  • Detailed Plan: A comprehensive design document exists in PLan.md outlining the game flow, data structures, and UI design.
  • Implementation: The app.py file is currently a basic "Hello World" Gradio placeholder. The folder structure and core logic defined in the plan have not yet been implemented.

Architecture & Design

Based on PLan.md, the target architecture includes:

Tech Stack

  • Frontend: Gradio 5.x with custom HTML/CSS/JS.
  • Backend: Python 3.11+ with FastAPI (embedded in Gradio).
  • AI/LLM: Integration with Anthropic Claude, OpenAI GPT-4, Google Gemini, and Meta Llama.
  • Tools: Model Context Protocol (MCP) tools for in-game actions like get_location, get_footage, and get_dna_test.

Planned Structure

The roadmap suggests the following structure (to be implemented):

murder-ai/
β”œβ”€β”€ app.py                 # Main Gradio app
β”œβ”€β”€ requirements.txt       # Dependencies
β”œβ”€β”€ game/                  # Game logic (scenario generator, engine, LLM manager)
β”œβ”€β”€ mcp/                   # MCP tool definitions and server
β”œβ”€β”€ ui/                    # Custom Gradio components and styles
β”œβ”€β”€ prompts/               # Role-specific system prompts
β”œβ”€β”€ scenarios/             # Pre-scripted fallback cases
└── assets/                # Images and media

Development Conventions

Building & Running

Since the project is a Gradio app:

  1. Install Dependencies: (When requirements.txt is created)
    pip install -r requirements.txt
    
  2. Run the Application:
    python app.py
    
    or
    gradio app.py
    

Key Directives

  • Follow the Plan: All development should align with the specifications in PLan.md.
  • Gradio 6: Use the latest Gradio features, particularly for custom UI components and state management.
  • MCP Integration: Tools should be designed to simulate real investigative data retrieval.