ai-murder-mystery-hackathon  by ironman5366

AI Alibis: Multi-agent LLM murder mystery game

Created 2 years ago
250 stars

Top 100.0% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This project provides an interactive, multi-agent LLM-powered murder mystery game. It targets developers and enthusiasts interested in exploring advanced AI interaction models, offering an engaging platform for AI-driven narrative experiences.

How It Works

The game leverages multiple Large Language Models (LLMs) to simulate distinct characters, each with their own alibis and motivations. A core innovation is its critique and revision prompting system, detailed in api/ai.py, which refines AI responses for coherence and narrative consistency. The architecture comprises a React frontend and a Python API, with optional PostgreSQL integration for persistent conversation storage.

Quick Start & Requirements

  • Installation: Clone the repository. For manual setup, install Node dependencies (web/npm i), configure api/.env with an Anthropic API key, and start the API (bash api_start.sh) and web interface (bash web_start.sh) in separate terminals.
  • Docker Setup: Alternatively, clone the repo, set ANTHROPIC_API_KEY as an environment variable, and run docker compose up. The game is accessible at http://localhost:3000/. Rebuild images with --build if files change.
  • Prerequisites: An Anthropic API key is mandatory. Node.js and npm are required for manual setup. Docker is needed for the containerized deployment.
  • Resources: Docker setup creates a persistent database volume.
  • Docs: Full character context is in web/src/characters.json. Prompting logic is in api/ai.py.

Highlighted Details

  • Employs a multi-agent LLM approach for dynamic character interactions.
  • Features a sophisticated critique and revision prompting mechanism for enhanced AI dialogue.
  • Supports optional PostgreSQL integration for storing game state and conversations.
  • Provides comprehensive character backstories and context within web/src/characters.json.

Maintenance & Community

  • Created by Paul Scotti and Will Beddow.
  • A Twitter thread discussing the game is available: https://x.com/humanscotti/status/1810777932568399933.

Licensing & Compatibility

  • The repository's README does not specify a software license.
  • Compatibility for commercial use or integration into closed-source projects is undetermined due to the lack of licensing information.

Limitations & Caveats

  • Requires an active Anthropic API key, which may incur usage costs.
  • The primary deployment target appears to be local development environments.
  • No explicit license is provided, posing potential adoption risks for commercial or derivative works.
Health Check
Last Commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.