git clone https://github.com/ironman5366/ai-murder-mystery-hackathon.git
cd ai-murder-mystery-hackathon
nano api/.env
export ANTHROPIC_API_KEY="YOUR_API_KEY_HERE"
(<ctrl+x , y, enter> to save changes and exit nano)
web/npm i
bash api_start.sh
bash web_start.sh
git clone https://github.com/ironman5366/ai-murder-mystery-hackathon.git
cd ai-murder-mystery-hackathon
export ANTHROPIC_API_KEY="YOUR_API_KEY_HERE"
docker compose up
This should start three containers (the database, Python API, and React frontend) and create a persistent volume for the database.
If you change any files (for example, changing the Anthropic model in /api/settings.py
), then you will likely need to rebuild the images:
docker compose up --build
CTRL-C
or click the stop button in the Docker GUI. To clean up, use the Docker GUI to delete all containers then go to the "Volumes" tab to delete the associated database volume.
You can read the full murder story by checking out web/src/characters.json, which contains the full context provided to each character.
To see how our prompting system works, including our critique and revision approach, check out api/ai.py.
Twitter thread on the game: https://x.com/humanscotti/status/1810777932568399933
AI Alibis was created by Paul Scotti and Will Beddow.