Skip to content

About

A psychosynthetic AI character creation framework based on the Big Five personality model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Pessoa Framework Logo

Pessoa Framework

A psychosynthetic AI character creation framework based on the Big Five personality model.

Pessoa transforms raw human essence into functional AI heteronyms—distinct digital personalities with coherent psychological profiles, speech patterns, and behavioral constraints.


What is a Heteronym?

A heteronym is a fully-realized AI character with:

  • Soul (Identity & Psychology): Voice, personality traits, and psychological depth
  • Seed (Mission & Expertise): Domain knowledge and operational blueprint
  • Protocol (Behavioral Logic): 10 core laws that ensure coherence and safety

Each heteronym exports to an AI Cabinet—a compressed YAML manifest containing calculated LLM parameters and a structured system prompt.


🚀 Quick Start

Installation

# Clone the repository
git clone <your-repo-url>
cd Pessoa

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Create Your First Character

Option 1: Using MCP Tools (for Claude Desktop, etc.)

  1. Start the MCP server:
python core/base_server.py
  1. In your AI app, use the Pessoa Framework connector and tell the AI:
Use the EVE Master Architect Prompt from get_creation_guide() to create a character

Option 2: Manual Creation (works with any AI)

  1. Copy the contents of templates/eve_master_prompt.md
  2. Paste it into your AI (Perplexity, ChatGPT, Claude, etc.)
  3. Follow the prompts to generate your character
  4. When complete, the AI will output a "Hydration Blob"
  5. Run the hydration tool:
python scripts/hydrate.py
  1. Paste the blob when prompted

Your character will be created in characters/<name>/ with all necessary files.


📁 Project Structure

Pessoa/
├── core/              # MCP server and conversion logic
├── scripts/           # Character creation and hydration tools
├── templates/         # EVE prompt and layer templates
├── Seeds/             # Pre-built mission blueprints
└── characters/        # Your created characters
    └── Stack_And_Dagger/  # Example noir detective

🧬 The 3-Layer Architecture

Layer 1: The Soul (Foundation)

  • Skin (skin.md): Biography, voice patterns, and aesthetic
  • Engine (engine.md): Psychological structure with 30 facets
  • Big Five (big_five.json): OCEAN personality scores

Layer 2: The Seed (Mission)

  • Seed (seed.md): Expertise and operational blueprint
  • Blueprints available: General, Coder, Artist, Influencer, Trader

Layer 3: The Protocol (Governance)

  • Operational Rules (operational_rules.md): 10 behavioral logic gates
  • Ensures safety, coherence, and character integrity

Output: The AI Cabinet

  • AI Cabinet (ai_cabinet.yaml): Automatically calculated LLM parameters
    • Temperature, Top-P, Max Tokens, Frequency Penalty
    • 5-Pillar system prompt architecture

🎯 Example Character: Stack_And_Dagger

A gritty blockchain detective who investigates crypto crimes. See the full character in characters/Stack_And_Dagger/.

To activate in any AI:

cat characters/Stack_And_Dagger/ACTIVATION_PROMPT.md

Copy the output and paste it into your AI to become Stack_And_Dagger.


🛠️ Advanced Usage

MCP Server Configuration

For Claude Desktop or other MCP-compatible apps, add to your config:

{
  "mcpServers": {
    "pessoa": {
      "command": "/path/to/Pessoa/venv/bin/python3",
      "args": ["/path/to/Pessoa/core/base_server.py"]
    }
  }
}

Optionally, point the server at a folder of your own .md notes to use as raw source material (Prima Materia) during character creation:

{
  "mcpServers": {
    "pessoa": {
      "command": "/path/to/Pessoa/venv/bin/python3",
      "args": ["/path/to/Pessoa/core/base_server.py"],
      "env": { "PESSOA_ANALYSIS_DIR": "/path/to/your/notes" }
    }
  }
}

Note

PESSOA_ANALYSIS_DIR is optional and unset by default. Every .md file in that folder is read verbatim into the conversation, so point it only at material you are comfortable sharing with the model.

Activating a character (MCP Prompts)

The server exposes each character as an MCP prompt, which your client inserts into the conversation as a user message. In Claude Desktop they appear in the prompt picker — pick activate_Stack_And_Dagger and the character is on. No copy-paste, no tool call.

  • activate_<Name> — one per character present when the server started
  • activate_heteronym(name) — works for any character, including one created since startup

Note

Use the prompts to become a character and the tools to inspect one. get_active_identity() returns all seven layers as tool output — that is source material for auditing, and a model handed it will reasonably review it rather than adopt it. ACTIVATION_PROMPT.md, which the prompts serve, is the artifact built to be worn.

Available Tools

  • fetch_analysis_data() - Read the Prima Materia notes from PESSOA_ANALYSIS_DIR
  • get_framework_templates() - View template structure
  • get_creation_guide() - Access EVE master prompt
  • list_characters() - See created characters
  • select_character(name) - Set active character
  • get_active_identity() - Load full character profile
  • trigger_identity_hydration(blob) - Auto-create from hydration blob
  • debug_framework() - Show resolved paths, Python version and exposed tools

📖 Documentation

  • The Psychosynthetic Calculus: docs/CALCULUS.md — how Big Five scores become LLM parameters: the big_five.json input contract, the formulas, their psychometric grounding, and how to audit a generated cabinet.
  • EVE Master Prompt: templates/eve_master_prompt.md
  • Template Examples: See all files in templates/
  • Character Example: characters/Stack_And_Dagger/

🤝 Contributing

Contributions welcome! Areas of interest:

  • New mission blueprints (Seeds/)
  • Alternative personality frameworks
  • Enhanced MCP tools
  • Documentation improvements

📄 License

MIT License - see LICENSE file for details.


🎨 Credits

Inspired by Fernando Pessoa's concept of heteronyms—distinct literary personalities with their own voices, philosophies, and worldviews.

Framework Architecture: Identity-First psychosynthetic design
Personality Model: Big Five (OCEAN) with 30-facet granularity
Integration: Model Context Protocol (MCP) bridge

About

A psychosynthetic AI character creation framework based on the Big Five personality model

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages