Live data from Hacker News

Multi-agent chatbot murder mystery

ai-murder-mystery.onrender.com

1–10 of 135 posts

Re: Multi-agent chatbot murder mystery

#2
Sharing a little open-source game where you interrogate suspects in an AI murder mystery. As long as it doesn't cost me too much from the Anthropic API I'm happy to host it for free (no account needed).

The game involves chatting with different suspects who are each hiding a secret about the case. The objective is to deduce who actually killed the victim and how. I placed clues about suspects’ secrets in the context windows of other suspects, so you should ask suspects about each other to solve the crime.

The suspects are instructed to never confess their crimes, but their secrets are still in their context window. We had to implement a special prompt refinement system that works behind-the-scenes to keep conversations on-track and prohibit suspects from accidentally confessing information they should be hiding.

We use a Critique & Revision approach where every message generated from a suspect first gets fed into a "violation bot" checker, checking if any Principles are violated in the response (e.g., confessing to murder). Then, if a Principle is found to be violated, the explanation regarding this violation, along with the original output message, are fed to a separate "refinement bot" which refines the text to avoid such violations. There are global and suspect-specific Principles to further fine-tune this process. There are some additional tricks too, such as distinct personality, secret, and violation contexts for each suspect and prepending all user inputs with "Detective Sheerluck: "

The entire project is open-sourced here on github: https://github.com/ironman5366/ai-murder-mystery-hackathon

If you are curious, here's the massive json file containing the full story and the secrets for each suspect (spoilers obviously): https://github.com/ironman5366/ai-murder-mystery-hackathon/b...

Re: Multi-agent chatbot murder mystery

#4

Sharing a little open-source game where you interrogate suspects in an AI murder mystery. As long as it doesn't cost me too much from the Anthropic API I'm happy to host it for free (no account needed). The game involves chatting with different suspects who are each hiding a secret about the case. The objective is to deduce who actually killed the victim and how. I placed clues about suspects’ secrets in the context…

>As long as it doesn't cost me too much from the Anthropic API

Watch this like a hawk while it's up on HN.

Re: Multi-agent chatbot murder mystery

#5

Sharing a little open-source game where you interrogate suspects in an AI murder mystery. As long as it doesn't cost me too much from the Anthropic API I'm happy to host it for free (no account needed). The game involves chatting with different suspects who are each hiding a secret about the case. The objective is to deduce who actually killed the victim and how. I placed clues about suspects’ secrets in the context…

Doesn't seem to reply to me. So I guess the limit has been reached?

Re: Multi-agent chatbot murder mystery

#6
This looks very cool! I’ll have to patently wait for the HN crowd to thin out before being able to play tho.

Considered spinning this off into a service where user can create their own murder mysteries for others to play?

Re: Multi-agent chatbot murder mystery

#8

Sharing a little open-source game where you interrogate suspects in an AI murder mystery. As long as it doesn't cost me too much from the Anthropic API I'm happy to host it for free (no account needed). The game involves chatting with different suspects who are each hiding a secret about the case. The objective is to deduce who actually killed the victim and how. I placed clues about suspects’ secrets in the context…

Very cool, I wonder how it would play if run with local models, e.g. with ollama and gemma2 or llama3

Re: Multi-agent chatbot murder mystery

#9
This is delightful! It makes me wonder what a Where in the World is Carmen Sandiego would be like with an AI twist like this. It allows for greater flexibility I think than some of the text based games where I (at least) struggled at times to say/ask the right thing.

Re: Multi-agent chatbot murder mystery

#10

Sharing a little open-source game where you interrogate suspects in an AI murder mystery. As long as it doesn't cost me too much from the Anthropic API I'm happy to host it for free (no account needed). The game involves chatting with different suspects who are each hiding a secret about the case. The objective is to deduce who actually killed the victim and how. I placed clues about suspects’ secrets in the context…

You just made front page. Definitely keep an eye on usage :)
Post reply on HN