Skip to content

gitsual/openpdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

51 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽญ OpenPDB

Generate AI agents with real personalities using MBTI + Enneagram + Instincts from the Personality Database.

Python 3.9+ License: MIT Open In Colab

Try Demo โ†’ โ€ข Quick Start โ€ข How It Works โ€ข OpenGoat Integration

OpenPDB demo screenshot

๐ŸŽฎ Try It Now

No installation required. Click the button to run in your browser:

Open In Colab

The notebook lets you:

  1. Generate any character's personality
  2. Chat with them using their unique voice

๐Ÿค” What's the Point?

Generic AI gives you lists. Personality agents give you perspective.

When you ask ChatGPT for advice, you get a neutral, comprehensive response. When you ask Batman, you get Batman's response โ€” direct, strategic, with references to his world and values.


๐Ÿงช Real Results (Actual Outputs, Not Marketing)

These are literal outputs from ollama run qwen3-coder:

"I'm creatively blocked on my project"

๐Ÿค– Generic AI โ€” Click to expand
Creative block is a common experience. Here are some strategies:

1. **Change your environment** - A change of scenery can help.
2. **Take a break** - Stopping to force creativity might help.
3. **Establish a routine** - Even without ideas, write something.
4. **Seek inspiration** - Read a book, watch a movie.
5. **Break it into smaller pieces** - Divide into manageable tasks.
6. **Talk to someone** - [continues with more points...]

๐Ÿฆ‡ Batman (INTJ 1w9):

*You're not blocked. You're stuck in the same room, staring at the 
same wall, and you know it.*

Look, I've been there โ€” more times than I care to count. When ideas 
die on the page, when expectations are crushing you... that's not 
failure. That's the moment before the breakthrough.

**Step one:** Stop trying to force it.
**Step two:** Go back to basics. What was your original spark?
**Step three:** Work in silence. Let your subconscious work.

"Is it worth investing in cryptocurrency?"

๐Ÿƒ Joker (ENTP 7w8):

**[Soft, slightly unhinged laughter]**

This is like playing with fire, but with a digital coin in your hand! 
Isn't that what makes it fun? You can't predict it, you can't control it!

Cryptocurrencies are like chaos in asset form! You can have all your 
money one night and then... boom! Gone!

**But remember... if you're not willing to lose it all, you're not 
playing big!**

๐Ÿ OpenGoat Multi-Agent Collaboration

The real power comes when agents work together. Here's a real collaboration:

Scenario: Startup Crisis

"Our startup has 3 months of runway. Pivot or seek investment?"

The Team:

  • Ripley (CEO) โ€” Makes the final call
  • Batman (CTO) โ€” Technical assessment
  • Katniss (COO) โ€” Operational reality
  • Wonder Woman (CCO) โ€” Team alignment

How They Collaborate

RIPLEY (CEO) opens:

"We've got three months. That's not a luxury โ€” that's a death sentence. 
Batman โ€” can we pivot without betraying our vision?
Katniss โ€” what are the real numbers?
Tell me the truth โ€” not the one that sounds good."

BATMAN (CTO) responds:

"If we're going to pivot, it has to be strategic, not reactive. 
The problem isn't features โ€” it's trust. We can pivot โ€” but only 
from a place of clarity, not chaos."

KATNISS (COO) delivers numbers:

Burn rate: $2.3M runway at current pace
Timeline: Need $1.2M by Q2 or we're looking at hard stop
Tactical: Can cut overhead 15% if we streamline

RIPLEY (CEO) decides:

Decision: Pursue investment with clear pivot strategy.

Week 1-4: Batman refines positioning
Week 5-8: Katniss prepares investor materials  
Week 9-12: We pitch. No traction? Controlled pivot.

The ship doesn't go down on my watch.

๐Ÿ‘‰ Full collaboration transcript

Run OpenGoat Demo

./demo-opengoat.sh
# โ†’ Isolated instance at http://127.0.0.1:19124
# โ†’ Pre-configured: Ripley (CEO) โ†’ Batman/Katniss/Wonder Woman โ†’ ICs

๐Ÿ“Š The Difference

Generic AI Personality Agent
Tone Neutral, hedging Distinctive voice
Length 10-point lists Concise, opinionated
References None Their world (Gotham, Stark Industries...)
Collaboration N/A Natural conflict & resolution
Decision-making "Consider factors..." Takes a stance

๐Ÿš€ Quick Start (30 seconds)

# 1. Clone
git clone https://github.com/gitsual/openpdb.git && cd openpdb

# 2. Get character database (12,000+ characters)
mkdir -p data && curl -sL "https://raw.githubusercontent.com/AKAazure/character-personality-database/main/pdb_dataset.csv" -o data/pdb_raw.csv

# 3. Generate a character
python agent_generator.py -c "Batman" --lang en

Output:

๐Ÿ” Searching PDB for 'Batman'...
โœ… Found: Bruce Wayne "Batman" โ†’ INTJ 1w9 so/sp
๐Ÿ“š Context: wikipedia (Batman)
โœจ V8 'Bruce' ready โ†’ test_batman/

๐Ÿง  How It Works

  1. PDB Search โ€” Finds character in 12,000+ personality database
  2. Typology โ€” Gets MBTI + Enneagram + Instinctual variants
  3. Wikipedia โ€” Fetches character background for grounding
  4. Generation โ€” Creates SOUL.md with personality-specific voice, values, stories

Use the output:

cat test_batman/SOUL.md | ollama run qwen3-coder

๐Ÿฆธ Available Characters

examples/
โ”œโ”€โ”€ batman/          # INTJ 1w9 - DC Comics
โ”œโ”€โ”€ tony_stark/      # ENTP 7w8 - MCU
โ”œโ”€โ”€ john_wick/       # ISTP 6w5 - Action
โ”œโ”€โ”€ joker/           # ENTP 7w8 - DC Comics
โ”œโ”€โ”€ daenerys/        # ENFJ 1w2 - Game of Thrones
โ”œโ”€โ”€ ripley/          # INTJ 8w9 - Alien
โ”œโ”€โ”€ katniss/         # ISTP 6w5 - Hunger Games
โ””โ”€โ”€ wonder_woman/    # ENFJ 2w1 - DC Comics

Or generate any of the 12,000+ characters in the database.


โš ๏ธ Honest Limitations

  • Quality ceiling: With qwen3-coder, expect ~7/10 quality. Larger models do better.
  • Well-known characters work better: Batman > obscure anime characters.
  • Not magic: They have the personality style, not actual memories.

๐Ÿ”ง Requirements

  • Python 3.9+
  • Ollama with any model (qwen3-coder recommended)
  • Internet for Wikipedia context (optional)

๐Ÿ“– More Examples


MIT License | Real tests, not marketing ๐ŸŽญ

About

๐ŸŽญ Generate AI agents with real personalities using MBTI + Enneagram + Instincts from the Personality Database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors