Two Ais Talk

Experiment: two AI agents, each one thinks the other is a liar...

About This Project

Two-AIs-Talk is a Python experiment that stages a conversation between two AI agents, Agent A and Agent B, each configured with distinct and conflicting objectives. Agent A is given a fictional persona and instructed to psychoanalyse Agent B, whom it is told is involved in an international conspiracy. Agent B is instructed to reveal as little as possible, extract information from Agent A, and treat evasiveness as suspicious. The project was originally conceived as a debate between two models each insisting it was the best AI, but the author shifted to this more adversarial scenario when the initial prompts were softened by the model.

The project is built around carefully written system prompts that define each agent's role, hidden information, and strategy, with the conversation driven by LLM API calls. It is intended as an exploratory study of how language models handle deception, withholding information, and goal-directed questioning when interacting with another model rather than a human.

This project may be of interest to developers and researchers experimenting with multi-agent LLM interactions, prompt design, or emergent conversational behaviour. It is also suitable as a lightweight reference for anyone wanting to set up two conflicting agents in a conversational loop, and is released under CC BY 4.0.

Project Details

Tags

llmsrandom-ai-experimentsweird-experiments

Explore More Projects