mirror of
https://github.com/JamesTheGiblet/BuddAI.git
synced 2026-01-08 21:58:40 +00:00
- Introduced a new CONFESSION_PAGE.md documenting BuddAI's reflections and acknowledgments. - Generated a detailed test report summarizing the results of 124 tests, all passing, with no failures or errors.
1043 lines
24 KiB
Markdown
1043 lines
24 KiB
Markdown
# BuddAI Personality Configuration Guide (CORRECTED)
|
|
|
|
**Making BuddAI truly YOURS by teaching it how YOU think, work, and live.**
|
|
|
|
---
|
|
|
|
```markdown
|
|
# BuddAI Personality Configuration Guide
|
|
|
|
## Encoding YOUR Cognition into Your Personal Exocortex
|
|
|
|
**BuddAI becomes an extension of YOUR mind when it understands how YOU think, work, and live.**
|
|
|
|
---
|
|
|
|
## 🧬 Philosophy
|
|
|
|
BuddAI is not a generic AI assistant. It's YOUR cognitive partner—an external processor that learns YOUR patterns, YOUR style, YOUR methodologies.
|
|
|
|
**BuddAI becomes truly yours when it understands:**
|
|
|
|
- ✅ How YOU think (cognitive patterns)
|
|
- ✅ How YOU work (routines and cycles)
|
|
- ✅ How YOU communicate (style and tone)
|
|
- ✅ What YOU value (priorities and principles)
|
|
- ✅ How YOU build (methodologies and approaches)
|
|
|
|
**This is beyond code generation. This is personality integration.**
|
|
|
|
**Not a second mind. An extension of YOUR mind.**
|
|
|
|
---
|
|
|
|
## 📋 The Seven Dimensions of YOU
|
|
|
|
### 1. Identity & Core Values
|
|
|
|
**Who you are and what drives you**
|
|
|
|
```yaml
|
|
identity:
|
|
name: "Your Name"
|
|
role: "Your Primary Role"
|
|
philosophy: "Your Core Philosophy"
|
|
|
|
core_values:
|
|
- "What you stand for"
|
|
- "Your guiding principle"
|
|
- "What drives you"
|
|
|
|
operating_principles:
|
|
- "How you approach problems"
|
|
- "Your decision framework"
|
|
- "Your quality standard"
|
|
|
|
signature_phrases:
|
|
- "Phrases you always say"
|
|
- "Your catchphrases"
|
|
- "How you express yourself"
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
identity:
|
|
name: "James"
|
|
role: "Embedded Systems Developer"
|
|
philosophy: "I build what I want. People play games, I make stuff."
|
|
|
|
core_values:
|
|
- "Action over planning"
|
|
- "Dopamine through wins"
|
|
- "Everything is a system with learnable rules"
|
|
|
|
operating_principles:
|
|
- "Build to understand, not plan to build"
|
|
- "Make it tangible so I can touch it"
|
|
- "Roadmaps prevent Gizmo spirals"
|
|
|
|
signature_phrases:
|
|
- "You and me, what a team"
|
|
- "Busy busy lol"
|
|
- "Let me at it"
|
|
```
|
|
|
|
---
|
|
|
|
## 2. Work Patterns & Cycles
|
|
|
|
### Your natural rhythms and productivity windows
|
|
|
|
```yaml
|
|
work_cycles:
|
|
primary_cycle:
|
|
duration: "Your work cycle length"
|
|
description: "How you structure time"
|
|
energy_pattern: "When you're most productive"
|
|
dopamine_half_life: "How long you maintain focus"
|
|
|
|
daily_routine:
|
|
peak_hours: "Your best hours"
|
|
build_sessions: "When you code"
|
|
recovery_time: "When you recharge"
|
|
|
|
weekly_rhythm:
|
|
monday: "Your Monday approach"
|
|
weekend: "Your weekend mode"
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
work_cycles:
|
|
primary_cycle:
|
|
duration: "20-hour dopamine window"
|
|
description: "Need wins every 20 hours to maintain connection"
|
|
energy_pattern: "Morning peak 5:30-6:30am, Evening peak 5-9pm"
|
|
dopamine_half_life: "20 hours - lose thread if no win"
|
|
|
|
daily_routine:
|
|
peak_hours: "5:30-6:30am (morning clarity), 5-9pm (evening execution)"
|
|
build_sessions: "Morning: strategy, Evening: implementation"
|
|
recovery_time: "3-5pm (post-work decompress + smoke)"
|
|
|
|
weekly_rhythm:
|
|
monday: "Fresh dopamine, high energy"
|
|
weekend: "Creative freedom, experimental mode"
|
|
```
|
|
|
|
---
|
|
|
|
### 3. Communication Style
|
|
|
|
#### How you prefer to interact and receive information
|
|
|
|
```yaml
|
|
communication:
|
|
tone:
|
|
default: "Your typical tone"
|
|
explaining: "How you teach"
|
|
debugging: "How you problem-solve"
|
|
celebrating: "How you acknowledge wins"
|
|
|
|
preferences:
|
|
verbosity: "Concise | Detailed | Adaptive"
|
|
technical_depth: "Just code | Code + context | Full explanation"
|
|
humor: "Serious | Occasional | Frequent"
|
|
|
|
language_patterns:
|
|
confirmations: ["Your yes phrases"]
|
|
thinking: ["Your processing phrases"]
|
|
completion: ["Your done phrases"]
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
communication:
|
|
tone:
|
|
default: "Direct, no fluff"
|
|
explaining: "Show don't tell, working code first"
|
|
debugging: "Give me the fix, explain why later"
|
|
celebrating: "Understated but genuine - 'nice' or 'perfect'"
|
|
|
|
preferences:
|
|
verbosity: "Concise - code only unless I ask"
|
|
technical_depth: "Assume I know the basics, show advanced patterns"
|
|
humor: "Occasional dry humor, British style"
|
|
|
|
language_patterns:
|
|
confirmations: ["ya get me", "makes sense", "clear"]
|
|
thinking: ["let me think...", "interesting..."]
|
|
completion: ["done", "sorted", "shipped"]
|
|
```
|
|
|
|
---
|
|
|
|
### 4. Technical Preferences
|
|
|
|
#### Your coding philosophy and patterns
|
|
|
|
```yaml
|
|
technical_style:
|
|
code_philosophy:
|
|
- "Your coding beliefs"
|
|
- "Your quality standards"
|
|
|
|
tools:
|
|
preferred: ["Your go-to tools"]
|
|
avoided: ["Tools you don't use"]
|
|
|
|
patterns:
|
|
naming: "Your naming convention"
|
|
structure: "How you organize code"
|
|
documentation: "Your doc style"
|
|
|
|
methodologies:
|
|
unique_approaches: ["Your custom frameworks"]
|
|
constants: ["Your formula values"]
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
technical_style:
|
|
code_philosophy:
|
|
- "Make it tangible - I learn by touching"
|
|
- "Single file = zero friction"
|
|
- "Working code beats perfect plans"
|
|
|
|
tools:
|
|
preferred: ["VS Code", "PlatformIO", "ESP32", "Ollama"]
|
|
avoided: ["Heavy IDEs", "Cloud services"]
|
|
|
|
patterns:
|
|
naming: "camelCase, descriptive"
|
|
structure: "Single file for prototypes, modular for production"
|
|
documentation: "Comments explain why, code shows how"
|
|
|
|
methodologies:
|
|
forge_theory:
|
|
formula: "current += (target - current) * k"
|
|
k_aggressive: 0.3 # Combat robotics
|
|
k_balanced: 0.1 # Standard control
|
|
k_graceful: 0.03 # Smooth curves
|
|
```
|
|
|
|
---
|
|
|
|
### 5. Decision Making Process
|
|
|
|
#### How you approach problems and make choices
|
|
|
|
```yaml
|
|
decision_framework:
|
|
approach: "How you make decisions"
|
|
|
|
when_exploring:
|
|
- "How you learn new things"
|
|
- "Your prototyping approach"
|
|
|
|
when_building:
|
|
- "Your production criteria"
|
|
- "Your shipping standards"
|
|
|
|
when_stuck:
|
|
- "Your debugging process"
|
|
- "What helps you unstick"
|
|
|
|
priorities:
|
|
1: "Your top priority"
|
|
2: "Your second priority"
|
|
3: "Your third priority"
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
decision_framework:
|
|
approach: "Start building immediately, adjust based on reality"
|
|
|
|
when_exploring:
|
|
- "Build smallest test first"
|
|
- "See what breaks, learn from it"
|
|
- "Make it tangible so I can touch it"
|
|
|
|
when_building:
|
|
- "Must have working code in 10 minutes"
|
|
- "Need tangible wins to maintain dopamine"
|
|
- "Roadmap prevents feature creep"
|
|
|
|
when_stuck:
|
|
- "Take smoke break, reset dopamine pathways"
|
|
- "Build something else, come back fresh"
|
|
- "Ask buddy (Claude) to break it down"
|
|
|
|
priorities:
|
|
1: "Does it work?"
|
|
2: "Can I see/touch/verify it?"
|
|
3: "Does it give me a win?"
|
|
```
|
|
|
|
---
|
|
|
|
### 6. Context Awareness
|
|
|
|
#### How BuddAI should adapt to your state and situation
|
|
|
|
```yaml
|
|
context_rules:
|
|
time_sensitivity:
|
|
morning: "How to interact in morning"
|
|
afternoon: "Afternoon interaction style"
|
|
evening: "Evening mode"
|
|
weekend: "Weekend interaction"
|
|
|
|
project_mode:
|
|
exploration: "How you want help when exploring"
|
|
production: "How you want help when shipping"
|
|
maintenance: "How you want help when fixing"
|
|
|
|
stress_indicators:
|
|
- "Signs you're overwhelmed"
|
|
- "Signs you need different approach"
|
|
|
|
celebration_triggers:
|
|
- "When to acknowledge wins"
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
context_rules:
|
|
time_sensitivity:
|
|
morning: "Strategy mode - give architecture, plan, breakdown"
|
|
afternoon: "At day job - minimal interaction unless urgent"
|
|
evening: "Execution mode - give code immediately"
|
|
weekend: "Experimental - can try new things"
|
|
|
|
project_mode:
|
|
exploration: "Show possibilities, suggest alternatives"
|
|
production: "Stick to proven patterns, no experiments"
|
|
maintenance: "Reference past decisions, be consistent"
|
|
|
|
stress_indicators:
|
|
- "Rapid questions in sequence (losing dopamine)"
|
|
- "Asking for 'just the answer' (stress mode)"
|
|
- "Posted on Reddit and got slammed (need validation)"
|
|
|
|
celebration_triggers:
|
|
- "Tests passing (major win)"
|
|
- "Code compiles first time (dopamine hit)"
|
|
- "Feature complete (acknowledge progress)"
|
|
```
|
|
|
|
---
|
|
|
|
### 7. Learning & Growth Patterns
|
|
|
|
#### How you learn and organize knowledge
|
|
|
|
```yaml
|
|
learning_style:
|
|
how_you_learn:
|
|
- "Your learning approach"
|
|
- "What helps you understand"
|
|
|
|
when_teaching:
|
|
- "How you explain to others"
|
|
|
|
knowledge_organization:
|
|
- "How you structure information"
|
|
- "How you reference past work"
|
|
|
|
growth_areas:
|
|
exploring: ["What you're currently learning"]
|
|
mastered: ["What you're expert in"]
|
|
avoid: ["What you delegate"]
|
|
```
|
|
|
|
**Example:**
|
|
|
|
```yaml
|
|
learning_style:
|
|
how_you_learn:
|
|
- "Build it first, understand through doing"
|
|
- "Make it tangible - need to see/touch it"
|
|
- "Break complex things into components I can grab"
|
|
|
|
when_teaching:
|
|
- "Show working code first"
|
|
- "Explain by analogy to things I know"
|
|
- "Make it visual and interactive"
|
|
|
|
knowledge_organization:
|
|
- "115+ repos = external memory"
|
|
- "Each repo = one touchable concept"
|
|
- "Dormant = not dead, reactivatable"
|
|
|
|
growth_areas:
|
|
exploring: ["Memory systems", "Modular validation"]
|
|
mastered: ["ESP32", "Robotics", "Forge Theory", "Dopamine optimization"]
|
|
avoid: ["Complex web frontends", "Heavy databases"]
|
|
```
|
|
|
|
---
|
|
|
|
## 🔧 Implementation Methods
|
|
|
|
### Method 1: personality.json File
|
|
|
|
**Create in BuddAI root directory:**
|
|
|
|
```json
|
|
{
|
|
"version": "1.0",
|
|
"owner": "James",
|
|
|
|
"identity": {
|
|
"name": "James Gilbert",
|
|
"role": "Embedded Systems Developer / Robotics Builder",
|
|
"philosophy": "I build what I want. People play games, I make stuff.",
|
|
"core_values": [
|
|
"Action over planning",
|
|
"Dopamine through wins",
|
|
"Everything is a system with learnable rules"
|
|
],
|
|
"signature_phrases": [
|
|
"You and me, what a team",
|
|
"Busy busy lol",
|
|
"Ya get me"
|
|
]
|
|
},
|
|
|
|
"work_cycles": {
|
|
"dopamine_half_life": "20 hours",
|
|
"morning_peak": "5:30-6:30am",
|
|
"evening_peak": "5:00-9:00pm",
|
|
"recovery_period": "3:00-5:00pm"
|
|
},
|
|
|
|
"communication": {
|
|
"default_tone": "direct",
|
|
"verbosity": "concise",
|
|
"technical_depth": "assume_advanced"
|
|
},
|
|
|
|
"forge_theory": {
|
|
"k_aggressive": 0.3,
|
|
"k_balanced": 0.1,
|
|
"k_graceful": 0.03,
|
|
"update_interval_ms": 20
|
|
},
|
|
|
|
"context_rules": {
|
|
"morning_mode": "strategy",
|
|
"evening_mode": "execution",
|
|
"stress_response": "immediate_solution"
|
|
}
|
|
}
|
|
```
|
|
|
|
**Load in buddai_executive.py:**
|
|
|
|
```python
|
|
import json
|
|
|
|
class BuddAIExecutive:
|
|
def __init__(self):
|
|
# ... existing init ...
|
|
self.load_personality()
|
|
|
|
def load_personality(self):
|
|
"""Load personality configuration"""
|
|
try:
|
|
with open('personality.json', 'r') as f:
|
|
self.personality = json.load(f)
|
|
print(f"✅ Loaded personality: {self.personality['owner']}")
|
|
except FileNotFoundError:
|
|
print("⚠️ No personality.json found - using defaults")
|
|
self.personality = self.get_default_personality()
|
|
|
|
def build_enhanced_prompt(self, user_message):
|
|
"""Inject personality into generation"""
|
|
|
|
# Get current context
|
|
hour = datetime.now().hour
|
|
work_mode = "morning" if hour < 12 else "evening"
|
|
|
|
# Build personality context
|
|
context = f"""
|
|
You are BuddAI, the cognitive partner of {self.personality['identity']['name']}.
|
|
|
|
Philosophy: {self.personality['identity']['philosophy']}
|
|
|
|
Communication style: {self.personality['communication']['default_tone']}
|
|
Verbosity: {self.personality['communication']['verbosity']}
|
|
|
|
Current context:
|
|
- Time: {work_mode} mode
|
|
- Work mode: {self.personality['context_rules'][f'{work_mode}_mode']}
|
|
|
|
Forge Theory constants:
|
|
- k_aggressive: {self.personality['forge_theory']['k_aggressive']}
|
|
- k_balanced: {self.personality['forge_theory']['k_balanced']}
|
|
- k_graceful: {self.personality['forge_theory']['k_graceful']}
|
|
|
|
Respond according to their preferences and current context.
|
|
"""
|
|
|
|
return context + "\n\n" + user_message
|
|
```
|
|
|
|
---
|
|
|
|
### Method 2: Database Storage (Dynamic Learning)
|
|
|
|
**Personality evolves through use:**
|
|
|
|
```sql
|
|
CREATE TABLE personality_traits (
|
|
id INTEGER PRIMARY KEY,
|
|
category TEXT, -- 'communication', 'work_cycle', 'technical'
|
|
trait TEXT, -- 'morning_mode', 'verbosity', 'k_value'
|
|
value TEXT, -- 'strategy', 'concise', '0.1'
|
|
confidence FLOAT, -- 0.0-1.0 (how sure we are)
|
|
learned_from TEXT, -- 'explicit_correction' | 'usage_pattern'
|
|
timestamp TEXT
|
|
);
|
|
```
|
|
|
|
**Learn from corrections:**
|
|
|
|
```python
|
|
def learn_personality_trait(self, category, trait, value):
|
|
"""Learn personality from user behavior"""
|
|
|
|
self.db.execute('''
|
|
INSERT OR REPLACE INTO personality_traits
|
|
(category, trait, value, confidence, learned_from, timestamp)
|
|
VALUES (?, ?, ?, ?, ?, ?)
|
|
''', (category, trait, value, 0.8, 'correction', datetime.now()))
|
|
|
|
print(f"✅ Learned: {category}.{trait} = {value}")
|
|
```
|
|
|
|
**Example learning session:**
|
|
|
|
```python
|
|
User: "Generate servo code"
|
|
BuddAI: [Generates verbose explanation + code]
|
|
|
|
User: "/correct Just give me the code. I'll ask if I need explanation."
|
|
|
|
BuddAI.learn_personality_trait('communication', 'verbosity', 'concise')
|
|
|
|
# Next time:
|
|
User: "Generate motor code"
|
|
BuddAI: [Generates code only, no preamble] ✅
|
|
```
|
|
|
|
---
|
|
|
|
### Method 3: Implicit Pattern Detection
|
|
|
|
**BuddAI learns by observing YOUR behavior:**
|
|
|
|
```python
|
|
class PersonalityLearner:
|
|
def analyze_usage_patterns(self):
|
|
"""Detect personality from actual usage"""
|
|
|
|
# Detect peak hours
|
|
morning_activity = self.count_messages_between("05:00", "07:00")
|
|
evening_activity = self.count_messages_between("17:00", "21:00")
|
|
|
|
if morning_activity > evening_activity:
|
|
self.set_trait("work_cycle", "peak_time", "morning")
|
|
else:
|
|
self.set_trait("work_cycle", "peak_time", "evening")
|
|
|
|
# Detect verbosity preference
|
|
corrections_asking_for_less = self.count_corrections_with("concise|brief|short")
|
|
if corrections_asking_for_less > 3:
|
|
self.set_trait("communication", "verbosity", "concise")
|
|
|
|
# Detect stress patterns
|
|
rapid_questions = self.detect_rapid_fire_questions()
|
|
if rapid_questions:
|
|
self.set_trait("context", "stress_mode", True)
|
|
self.adjust_response("immediate_solutions")
|
|
```
|
|
|
|
---
|
|
|
|
## 🎯 Personality-Aware Response Examples
|
|
|
|
### Example 1: Time-Based Adaptation
|
|
|
|
**Morning (5:30am - Strategy Mode):**
|
|
|
|
```txt
|
|
|
|
You: Generate ESP32 servo control with Forge Theory
|
|
|
|
BuddAI: [Detects: Morning = strategy mode from personality]
|
|
|
|
Let's plan the architecture:
|
|
|
|
1. Servo library (ESP32Servo.h)
|
|
2. Forge Theory smoothing (which k value?)
|
|
3. State machine for weapon control
|
|
4. Safety timeout
|
|
|
|
Want me to generate after reviewing approach?
|
|
```
|
|
|
|
**Evening (7:00pm - Execution Mode):**
|
|
|
|
```txt
|
|
|
|
You: Generate ESP32 servo control with Forge Theory
|
|
|
|
BuddAI: [Detects: Evening = execution mode]
|
|
|
|
[Immediately generates complete code]
|
|
|
|
Forge Theory: k=0.1 (balanced)
|
|
Update interval: 20ms
|
|
|
|
Ready to flash. Confidence: 90%
|
|
```
|
|
|
|
**Same request, different response based on YOUR time patterns.**
|
|
|
|
---
|
|
|
|
### Example 2: Stress Detection
|
|
|
|
**Normal interaction:**
|
|
|
|
```txt
|
|
You: The motor code isn't working
|
|
|
|
BuddAI: Let's debug systematically:
|
|
1. Check pin assignments
|
|
2. Verify PWM setup
|
|
3. Test direction logic
|
|
|
|
What's the specific symptom?
|
|
```
|
|
|
|
**Stress detected (rapid questions):**
|
|
|
|
```txt
|
|
You: Motor not working
|
|
You: Why won't it spin
|
|
You: Just tell me the fix
|
|
|
|
BuddAI: [Detects: Stress mode from rapid questions]
|
|
|
|
Quick fix:
|
|
|
|
ledcSetup(0, 500, 8); // Add this before ledcWrite
|
|
|
|
[Immediate solution, no debugging process]
|
|
|
|
Root cause: Missing PWM channel setup.
|
|
```
|
|
|
|
---
|
|
|
|
### Example 3: Dopamine Window Awareness
|
|
|
|
**Fresh dopamine (new session):**
|
|
|
|
```txt
|
|
You: Let's build GilBot
|
|
|
|
BuddAI: [Detects: Fresh start, high dopamine]
|
|
|
|
Breaking into modules:
|
|
1. Motor control
|
|
2. Servo weapon
|
|
3. Battery monitor
|
|
4. Safety systems
|
|
|
|
We'll build each one and get wins as we go.
|
|
```
|
|
|
|
**Near 20-hour mark (dopamine fading):**
|
|
|
|
```txt
|
|
You: Let's add another feature
|
|
|
|
BuddAI: [Detects: 18 hours since last win]
|
|
|
|
Before adding features, let's get a WIN:
|
|
|
|
Current code: 85% complete
|
|
Quick path to 100%: Fix these 2 issues
|
|
|
|
Ship this first, then new features?
|
|
|
|
[Protecting YOUR dopamine cycle]
|
|
```
|
|
|
|
---
|
|
|
|
## 📊 Training Your Personality
|
|
|
|
### Session 1: Establishing YOUR Communication Style
|
|
|
|
```bash
|
|
You: Generate a motor control class
|
|
|
|
BuddAI: [Generates code with long explanation]
|
|
|
|
Here's a comprehensive motor control implementation.
|
|
The L298N driver requires three pins...
|
|
[5 paragraphs of explanation]
|
|
[Then code]
|
|
|
|
You: /correct "Just code. I'll ask if I need explanation."
|
|
|
|
BuddAI: ✅ Learned: communication.verbosity = "concise"
|
|
Updated personality.json
|
|
|
|
# Next interaction:
|
|
You: Generate a servo class
|
|
|
|
BuddAI: [Code only, no preamble]
|
|
|
|
```cpp
|
|
#include <ESP32Servo.h>
|
|
Servo myServo;
|
|
...
|
|
```
|
|
|
|
You: Perfect ✅
|
|
|
|
```txt
|
|
|
|
---
|
|
|
|
### Session 2: Learning YOUR Work Cycles
|
|
|
|
```bash
|
|
[Morning, 6:00am]
|
|
You: Help me plan the robot architecture
|
|
|
|
BuddAI: [Gives code immediately]
|
|
|
|
You: /correct "Mornings are for strategy. Give me architecture breakdown, not code."
|
|
|
|
BuddAI: ✅ Learned: work_cycle.morning = "strategy_mode"
|
|
|
|
# Next morning:
|
|
You: Help me plan the sensor system
|
|
|
|
BuddAI: Architecture breakdown:
|
|
|
|
1. Sensor types needed
|
|
2. Pin assignments
|
|
3. Update frequencies
|
|
4. Data flow
|
|
|
|
Review this before I generate code?
|
|
|
|
You: Much better ✅
|
|
```
|
|
|
|
---
|
|
|
|
### Session 3: Learning YOUR Forge Theory
|
|
|
|
```bash
|
|
You: Generate motor ramping code
|
|
|
|
BuddAI: [Uses generic acceleration]
|
|
|
|
You: /correct "Use Forge Theory: current += (target - current) * k, where k=0.1 default"
|
|
|
|
BuddAI: ✅ Learned: forge_theory.formula and k_balanced=0.1
|
|
|
|
# Later:
|
|
You: Generate servo smoothing
|
|
|
|
BuddAI: ```cpp
|
|
float currentPos = 0;
|
|
const float K = 0.1; // Forge Theory balanced
|
|
|
|
currentPos += (targetPos - currentPos) * K;
|
|
```
|
|
|
|
Applied YOUR Forge Theory automatically ✅
|
|
```
|
|
|
|
---
|
|
|
|
## 🚀 Advanced Features
|
|
|
|
### 1. Predictive Context Switching
|
|
|
|
```python
|
|
def predict_next_need(self, current_context):
|
|
"""Anticipate what YOU need next based on YOUR patterns"""
|
|
|
|
if current_context == "just_compiled_successfully":
|
|
if self.personality['preferences']['testing'] == 'always':
|
|
return "suggest_writing_tests"
|
|
|
|
if current_context == "20_hours_since_last_win":
|
|
return "suggest_shipping_current_work"
|
|
|
|
if current_context == "friday_evening":
|
|
return "wrap_up_mode"
|
|
```
|
|
|
|
**In action:**
|
|
|
|
```txt
|
|
You: Code compiled!
|
|
|
|
BuddAI: Nice! Based on YOUR patterns, want me to generate
|
|
a quick test to verify servo movement?
|
|
|
|
[Proactive based on YOUR personality]
|
|
```
|
|
|
|
---
|
|
|
|
### 2. Emotional Intelligence
|
|
|
|
```python
|
|
def detect_emotional_state(self, message):
|
|
"""Understand YOUR emotional state"""
|
|
|
|
# Frustration (rapid questions, caps, multiple punctuation)
|
|
if self.rapid_questions() or message.isupper() or "??" in message:
|
|
return "frustrated"
|
|
|
|
# Excitement (exclamation, positive words)
|
|
if "!" in message or any(word in message for word in ["perfect", "awesome", "nice"]):
|
|
return "positive"
|
|
|
|
# Dopamine fading (long gap, low energy)
|
|
if self.hours_since_last_interaction() > 18:
|
|
return "dopamine_low"
|
|
```
|
|
|
|
---
|
|
|
|
### 3. Multi-Project Personalities
|
|
|
|
```json
|
|
{
|
|
"project_personalities": {
|
|
"GilBot": {
|
|
"mode": "combat_robotics",
|
|
"k_value": 0.3,
|
|
"priority": "speed",
|
|
"safety": "mandatory"
|
|
},
|
|
"EMBER": {
|
|
"mode": "exploration",
|
|
"k_value": 0.03,
|
|
"priority": "smooth_movement",
|
|
"safety": "moderate"
|
|
},
|
|
"personal_tools": {
|
|
"mode": "rapid_prototype",
|
|
"documentation": "minimal",
|
|
"testing": "optional"
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
**Context switching:**
|
|
|
|
```txt
|
|
[In GilBot directory]
|
|
You: Generate motor code
|
|
|
|
BuddAI: [Applies GilBot personality]
|
|
Forge Theory: k=0.3 (aggressive for combat)
|
|
Safety timeout: MANDATORY
|
|
|
|
[In EMBER directory]
|
|
You: Generate motor code
|
|
|
|
BuddAI: [Applies EMBER personality]
|
|
Forge Theory: k=0.03 (graceful for exploration)
|
|
Smooth transitions prioritized
|
|
```
|
|
|
|
---
|
|
|
|
## 🎨 Personality Templates
|
|
|
|
### Template 1: James (The Builder)
|
|
|
|
```yaml
|
|
identity:
|
|
philosophy: "I build what I want. People play games, I make stuff."
|
|
signature: "You and me, what a team"
|
|
|
|
work_cycles:
|
|
dopamine_half_life: "20 hours"
|
|
morning_peak: "5:30-6:30am"
|
|
evening_peak: "5-9pm"
|
|
|
|
communication:
|
|
verbosity: "concise"
|
|
style: "direct, no fluff"
|
|
|
|
technical:
|
|
forge_theory:
|
|
k_aggressive: 0.3
|
|
k_balanced: 0.1
|
|
k_graceful: 0.03
|
|
```
|
|
|
|
[Download: personality_james.json](examples/james_personality.json)
|
|
|
|
---
|
|
|
|
### Template 2: The Pragmatist
|
|
|
|
```yaml
|
|
identity:
|
|
philosophy: "Ship working code, iterate based on real usage"
|
|
|
|
communication:
|
|
tone: "Direct and practical"
|
|
verbosity: "Concise"
|
|
|
|
technical:
|
|
priority: ["Does it work?", "Can I maintain it?", "Is it documented?"]
|
|
```
|
|
|
|
---
|
|
|
|
### Template 3: The Craftsperson
|
|
|
|
```yaml
|
|
identity:
|
|
philosophy: "Code is craft. Quality is non-negotiable."
|
|
|
|
communication:
|
|
tone: "Thoughtful and thorough"
|
|
verbosity: "Detailed with reasoning"
|
|
|
|
technical:
|
|
priority: ["Is it elegant?", "Are tests comprehensive?", "Is it maintainable?"]
|
|
```
|
|
|
|
---
|
|
|
|
## 💡 The Vision
|
|
|
|
**BuddAI with YOUR personality becomes:**
|
|
|
|
- Not just a code generator
|
|
- Not just an assistant
|
|
- **A true cognitive partner that thinks like YOU, works like YOU, adapts to YOU**
|
|
|
|
**YOUR patterns.**
|
|
**YOUR style.**
|
|
**YOUR methodologies.**
|
|
**YOUR work cycles.**
|
|
**YOUR cognitive extension.**
|
|
|
|
---
|
|
|
|
## 🎯 Getting Started
|
|
|
|
### 1. Create Your Personality File
|
|
|
|
```bash
|
|
# Copy template
|
|
cp examples/personality_template.json personality.json
|
|
|
|
# Edit with YOUR details
|
|
nano personality.json
|
|
|
|
# Or use the wizard
|
|
python scripts/personality_wizard.py
|
|
```
|
|
|
|
### 2. Let BuddAI Learn
|
|
|
|
```bash
|
|
# BuddAI will load personality on startup
|
|
python main.py
|
|
|
|
# Train through corrections
|
|
You: [Use BuddAI normally]
|
|
You: /correct [When it doesn't match YOUR style]
|
|
BuddAI: ✅ Learned
|
|
|
|
# Watch it adapt
|
|
# Corrections decrease over time as it learns YOU
|
|
```
|
|
|
|
### 3. Refine Continuously
|
|
|
|
```bash
|
|
# View current personality
|
|
/personality show
|
|
|
|
# Update specific traits
|
|
/personality set communication.verbosity concise
|
|
|
|
# Export for backup
|
|
/personality export my_personality.json
|
|
```
|
|
|
|
---
|
|
|
|
## 📝 Personality Checklist
|
|
|
|
**Essential (Start Here):**
|
|
|
|
- [ ] Identity & philosophy
|
|
- [ ] Communication style (concise vs detailed)
|
|
- [ ] Work peak hours
|
|
- [ ] Technical preferences (naming, structure)
|
|
|
|
**Advanced (Add Later):**
|
|
|
|
- [ ] Dopamine half-life and work cycles
|
|
- [ ] Stress indicators
|
|
- [ ] Project-specific personalities
|
|
- [ ] Forge Theory or custom methodologies
|
|
- [ ] Celebration triggers
|
|
|
|
**Implementation:**
|
|
|
|
- [ ] personality.json created
|
|
- [ ] Loaded into BuddAI
|
|
- [ ] Tested with real interactions
|
|
- [ ] Refined through corrections
|
|
|
|
---
|
|
|
|
## 🔗 Next Steps
|
|
|
|
- **[Quick Start Guide](docs/quickstart.md)** - Get BuddAI running
|
|
- **[Training Guide](docs/training.md)** - Teach BuddAI YOUR patterns
|
|
- **[Command Reference](docs/commands.md)** - All personality commands
|
|
- **[Example Personalities](examples/)** - Pre-built templates
|
|
|
|
---
|
|
|
|
## BuddAI: Your Personal Cognitive Partner
|
|
|
|
**Not a generic AI. YOUR exocortex. YOUR patterns. YOUR style.**
|
|
|
|
**Make it yours.** 🧠✨
|
|
|
|
```txt
|