← all repositories
GoodStartLabs/AI_Diplomacy

Seven LLMs Negotiate, Betray, and Vie for Europe

It pits frontier LLMs against each other in Diplomacy to see if they can negotiate, maintain relationships, and detect betrayal across a full campaign.

676 stars Python AgentsDomain Apps
AI_Diplomacy
Not currently ranked — collecting fresh signals.
star history

What it does

Extends the open-source Diplomacy engine so each of the seven powers is controlled by a stateful LLM agent. Every agent maintains private goals, tracks diplomatic relationships on an Enemy-to-Ally scale, and negotiates via multi-round private and global messages before issuing orders. The system orchestrates the full game loop—initialization, negotiation, strategic planning, order generation, and state updates—while logging every LLM interaction.

The interesting bit

The memory architecture is deliberately human-scoped: each agent keeps a structured private diary of negotiations, orders, and phase results, then runs automatic yearly consolidation via Gemini Flash to prevent context overflow. It also detects betrayal by comparing what an agent promised in messages against the orders it actually submitted.

Key highlights

  • Supports multiple LLM providers (OpenAI, Claude, Gemini, DeepSeek, OpenRouter) and can assign a different model to each power
  • BFS pathfinding on the game map surfaces nearest threats and opportunities for context-aware order generation
  • Resume interrupted games or branch into “critical state analysis” runs from any phase
  • Batch experiment runner spins up parallel games with per-model token limits and custom prompt directories
  • Power-specific system prompts and instruction templates shape each agent’s diplomatic personality

Verdict

Worth a look if you’re benchmarking multi-agent negotiation, studying alliance dynamics, or just want to watch Claude backstab GPT-4o over the Balkans. Skip it if you need a lightweight LLM wrapper—this is a full game engine with heavy prompt orchestration.

Frequently asked

What is GoodStartLabs/AI_Diplomacy?
It pits frontier LLMs against each other in Diplomacy to see if they can negotiate, maintain relationships, and detect betrayal across a full campaign.
Is AI_Diplomacy open source?
Yes — GoodStartLabs/AI_Diplomacy is an open-source project tracked on heatdrop.
What language is AI_Diplomacy written in?
GoodStartLabs/AI_Diplomacy is primarily written in Python.
How popular is AI_Diplomacy?
GoodStartLabs/AI_Diplomacy has 676 stars on GitHub.
Where can I find AI_Diplomacy?
GoodStartLabs/AI_Diplomacy is on GitHub at https://github.com/GoodStartLabs/AI_Diplomacy.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.