A sophisticated AI personality system that creates and manages dynamic AI personalities with evolving traits, relationships, and conversation styles.
- Dynamic Personalities: AI personalities that grow and evolve through interactions
- Relationship Management: Tracks and develops relationships between AI and users
- Autonomous Conversations: AI personalities can chat with each other
- Personality Evolution: Personalities update based on interactions
- Diverse Conversations: Natural topic transitions and varied discussions
- Memory Management: Summarizes and preserves important relationship details
my-personality/
├── ai/
│ ├── jack/
│ │ ├── core-identity.json
│ │ ├── interests-values.json
│ │ └── emotional-framework.json
│ └── rob/
│ ├── core-identity.json
│ ├── interests-values.json
│ └── emotional-framework.json
└── users/
├── user1/
│ └── is_user
└── user2/
└── is_user
- Personality Files: JSON files defining core traits, interests, and emotional framework
- Dynamic Updates: Personalities evolve through conversations
- User Profiles: Simple marker-based user identification
- Relationship Tracking: Monitors interactions and emotional dynamics
- Automatic Summarization: Creates comprehensive summaries every 200 lines
- Context Preservation: Maintains important relationship details
- Data Reset: Clears old data after summarization to manage context window
- Natural Flow: Smooth transitions between topics
- Topic Diversity: Introduces new subjects regularly
- Response Structure:
- Acknowledges previous messages
- Introduces new topics
- Ends with open-ended questions
- Personality Updates: Occurs every 5 messages during interactions
- AI-to-AI Interaction: Enables conversations between AI personalities
- Personality Evolution: Both AIs learn from their interactions
- Regular Updates: Personality files update every 10 turns
-
Setup:
python main.py
-
Create/Select Personality:
- Choose an existing AI personality or create a new user profile
- AI personalities are stored in the
ai/
directory - User profiles are stored in the
users/
directory
-
Start Chatting:
- Chat with an AI personality
- Watch as the personality evolves through interactions
- Relationships develop and are tracked automatically
-
Autonomous Mode:
- Select two AI personalities to chat with each other
- Observe how they interact and learn from each other
- Monitor personality updates and relationship development
The system implements several mechanisms for personality growth:
-
Regular Updates:
- Every 5 messages in user interactions
- Every 10 turns in autonomous chat
- Updates include new interests, values, and traits
-
Relationship Development:
- Tracks interactions and emotional dynamics
- Creates comprehensive summaries
- Preserves important relationship context
-
Conversation Diversity:
- Natural topic transitions
- Regular introduction of new subjects
- Balanced exploration of topics
- Python 3.8+
- OpenAI API key
- Required packages: openai, python-dotenv
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file with your OpenAI API key:OPENAI_API_KEY=your_api_key_here
- The system uses GPT-4o-mini for all AI interactions
- Relationship data is summarized every 200 lines to manage context
- User profiles are minimal, focusing on relationship context
- AI personalities maintain comprehensive personality files