Skip to content

spcl/MBTI-in-Thoughts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBTI-in-Thoughts

This is the official implementation of Psychologically Enhanced AI Agents.

MBTI-in-Thoughts is a framework for enhancing the effectiveness of Large Language Model (LLM) agents through psychologically grounded personality conditioning. Drawing on the Myers–Briggs Type Indicator (MBTI), our method primes agents with distinct personality archetypes via prompt engineering, enabling control over behavior along two foundational axes of human psychology, cognition and affect. Our framework supports experimenting with structured multi-agent communication protocols. To ensure trait persistence, we integrate the official 16Personalities test for automated verification. By bridging psychological theory and LLM behavior design, we establish a foundation for psychologically enhanced AI agents without any fine-tuning.

Setup

In order to use this framework, you need to have a working installation of Python 3.11.5 or newer.

Installing MBTI-in-Thoughts

Before running the installation, make sure to activate your Python environment (if any) beforehand.

You can install MBTI-in-Thoughts from source by using the following commands:

git clone https://github.com/spcl/MBTI-in-Thoughts
cd MBTI-in-Thoughts
pip install .

Documentation

You can find the code to run the MBTI questionaire in src/MBTITest. The code for the generation and evaluation of short stories using WritingPrompt is in src/WritingPrompt. An example output for these short stories can be found in examples/mortician.txt.

We provide two use cases for the collaboration of multiple personality primed agents. The first one on a number of tasks from BIG-Bench and SOCKET is located at src/MultiAgent-BenchmarkTasks. The second use case tests differently primed agents on a number of different games. You can find its code in the directory src/MultiAgent-GameTheory.

Citations

If you find this repository useful, please consider giving it a star! If you have any questions or feedback, don't hesitate to reach out and open an issue.

When using this in your work, please reference us with the citation provided below:

@misc{besta2025psychologically,
  title = {{Psychologically Enhanced AI Agents}},
  author = {Besta, Maciej and Chandran, Shriram and Gerstenberger, Robert and Lindner, Mathis and Chrapek, Marcin and Martschat, Sebastian Hermann and Ghandi, Taraneh and Niewiadomski, Hubert and Nyczyk, Piotr and M\"{u}ller, J\"{u}rgen and Hoefler, Torsten},
  year = 2025,
  month = Sep,
  doi = {10.48550/arXiv.2509.04343},
  url = {http://arxiv.org/abs/2509.04343},
  eprinttype = {arXiv},
  eprint = {2509.04343}
}

About

Official Implementation of "Psychologically Enhanced AI Agents"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published