Skip to main content

Run your decisions through a jury of 12 AI minds before you commit.

Project description

Twelve Angry Agents

CI Python License Ollama

Run your decisions through a jury of 12 AI minds before you commit.

Most people make important decisions alone or with one perspective. Twelve Angry Agents runs your topic through 12 AI personalities — a skeptic, an optimist, a devil's advocate, an ethicist, and 8 more — debating until they reach a unanimous verdict. Inspired by 12 Angry Men.

Fully local. Fully private. No API costs.

Requirements

  • Python 3.11+
  • Ollama installed and running

Installation

1. Install Ollama

brew install ollama      # macOS
# or download from https://ollama.com for Linux/Windows

2. Start the server and pull the model

ollama serve             # keep this running in the background

Then in a separate terminal:

ollama pull gemma4:e2b   # ~5 GB — default
ollama pull gemma4:e4b   # ~9 GB — higher quality, optional

3. Install Twelve Angry Agents in a virtual environment

python -m venv .venv
source .venv/bin/activate
pip install twelve-angry-agents

Usage

# Career decision with context
taa "I've been offered a senior engineer role at an early-stage startup — 30% pay increase, significant equity, but no runway visibility beyond 18 months. I have a mortgage and a family. Should I take it?"

# Architecture decision
taa "We're considering breaking our Django monolith into microservices. The team is 6 engineers, we deploy twice a week, and our main pain point is that a bug in the payments module blocks unrelated features from shipping."

# Pipe in a longer document
cat business_plan.txt | taa

# Use the larger model for higher quality
taa --model gemma4:e4b "We're debating whether to rewrite our mobile app in React Native or keep separate iOS and Android codebases. We have 2 mobile engineers and ship features every 2 weeks."

# Use custom agent personalities
taa --agents my_agents.yaml "Should we pivot from B2C to B2B?"

# Save the full debate transcript to a file
taa --output debate.txt "Should I accept this acquisition offer?"

How It Works

  1. The Foreman gathers any missing context with 2-3 targeted questions
  2. All 12 agents cast a blind vote — no peer influence
  3. If split: agents debate sequentially, each reading the full argument history
  4. After each round, all agents re-vote
  5. Repeat until unanimous (or a hung jury after 50 rounds)
  6. The Foreman delivers a prose verdict with the decisive arguments and key risks

The Jury

Agent Lens
The Analyst Data and evidence only
The Skeptic Questions every premise
The Optimist Opportunity and upside
The Pessimist Risk and failure modes
The Empath Human impact
The Ethicist Right vs. wrong
The Pragmatist What actually works
The Devil's Advocate Forces majority to justify itself
The Historian Precedents and patterns
The Visionary 10-year consequences
The Realist What's actually true right now
The Contrarian Last holdout — hardest to move

Customization

Edit config/agents.yaml to change any agent's personality or system prompt. The config validates that exactly 12 agents are defined.

Edit config/config.yaml to change the model, temperature, or debate limits.

License

CC BY-NC 4.0 — free for non-commercial use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twelve_angry_agents-1.0.1.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twelve_angry_agents-1.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file twelve_angry_agents-1.0.1.tar.gz.

File metadata

  • Download URL: twelve_angry_agents-1.0.1.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for twelve_angry_agents-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e5d85810b246d7dcf8e5800ba4f10806bd6cf09801fd01dc9095f08f3c253f56
MD5 37fd0949718e02cdd597ab7398f2bf1a
BLAKE2b-256 02be9b1e26c332fc83153c5ef2d715d21b35a77bc290acf28500b15d669d9b55

See more details on using hashes here.

Provenance

The following attestation bundles were made for twelve_angry_agents-1.0.1.tar.gz:

Publisher: publish.yml on hillolkallol/twelve-angry-agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file twelve_angry_agents-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for twelve_angry_agents-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1880dcb5d8f87608381a8c5eb3a4e14effac49f49cc63c5b97abac009c958df5
MD5 4ef3ecd66628c0a9d5f2562b44661901
BLAKE2b-256 8f0d3789f879ddf658229a2671f2d6933a5f1a3c392f6b069e904aa0264d6e27

See more details on using hashes here.

Provenance

The following attestation bundles were made for twelve_angry_agents-1.0.1-py3-none-any.whl:

Publisher: publish.yml on hillolkallol/twelve-angry-agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page