I've implemented a complete Cursor Tarot/Oracle divination system for the Recursive Self-Portrait app that interprets your cursor movements as mystical guidance. This system includes:
- Tarot Mode: 22 Major Arcana cards with traditional and behavioral meanings
- I-Ching Mode: Hexagram generation from movement sequences
- Runes Mode: Elder Futhark rune casting based on patterns
- Daily Card: Generated from first movements of each session
- Three-Card Spreads: Past (session history), Present (current patterns), Future (predictions)
- Reversed Cards: When patterns are inverted or contrary
- Reading History: Track all readings and their accuracy
- Fate Alignment: Measures how aligned you are with predictions
- Prophetic Commentary: The shadow speaks oracular wisdom
- TAROT_SYSTEM_ADDITION.html - Complete code ready to integrate
- TAROT_SYSTEM_README.md - This file
- Each card has symbol, traditional meaning, and reversed meaning
- Cards mapped to behavioral patterns:
- The Fool: New beginnings, spontaneous movements
- The Tower: Chaotic, erratic patterns = collapse incoming
- The Hermit: Slow, introspective movements
- Wheel of Fortune: Circular movement patterns
- The Hanged Man: Stillness and pausing
- ...and 17 more cards
- Past Card: Based on session duration and history
- Present Card: Based on current movement speed and chaos
- Future Card: Based on divergence level and prediction accuracy
- Cards can appear reversed when patterns are contrary
- Generates hexagrams from last 6 movements
- 14 hexagrams including classics like:
- The Creative (☰)
- The Receptive (☷)
- Peace, Conflict, The Abysmal, etc.
- Interprets based on movement patterns (linear, circular, erratic)
- 24 runes from the Elder Futhark alphabet
- Cast 5 runes based on recent movement patterns
- Each rune has elemental association (fire, earth, air, water)
- Dominant element analysis
- Generated from first 10 cursor movements
- Displayed at top of panel
- Sets the "theme" for your session
- Shadow commentary announces it
Analyzes behavioral patterns:
- Speed: Average movement velocity
- Chaos: Variance in direction changes
- Patterns: Detects circular, linear, or erratic movement
- Maps these to appropriate cards/symbols
Generates contextual prophecies like:
- "The Tower suggests your patterns will collapse" (high chaos)
- "Your stillness mirrors The Hanged Man" (low speed)
- "Your circular path echoes the Wheel of Fortune" (circular patterns)
- "Hagalaz whispers of disruption" (chaotic rune readings)
- Saves all readings to localStorage
- Tracks prediction accuracy over time
- Displays last 5 readings
- Links to the existing prediction system
- Aligned: Prediction accuracy > 80%
- Neutral: Accuracy 40-80%
- Divergent: Accuracy < 40%
- Updates based on how accurate readings prove to be
- Mystical purple/violet color scheme (#b19cd9, #9370db)
- Card reveal animations
- Full-screen reading overlay
- Hover effects on cards and runes
- Responsive layout
The file TAROT_SYSTEM_ADDITION.html contains three clearly marked sections:
Find the CSS section (lines marked with <!-- ========== CSS SECTION ========== -->) Copy everything between those markers and paste it **before** line 6454 in recursive-self-portrait.html (right before </style>`)
Find the HTML section (marked with <!-- ========== HTML SECTION ========== -->`)
Copy that section and paste it in the sidebar, after the Akashic Records panel (around line 9000)
Find the JavaScript section (marked with <!-- ========== JAVASCRIPT SECTION ========== -->) Copy it and paste it before the closing </script>` tag (around line 23200)
Find the overlay HTML section (marked <!-- ========== TAROT OVERLAY ========== -->) Copy it and paste it before the closing ` tag (line 23249)
The system analyzes your cursor movements and maps them to divination symbols:
- Movement Speed → Card energy/intensity
- Direction Variance → Chaos/stability
- Pattern Detection → Symbolic meaning
- Circular = Cycles, Wheel of Fortune
- Linear = Direct path, The Chariot
- Erratic = Change, The Tower
Tarot Three-Card Spread:
- Past: Uses session duration (time since start)
- Present: Uses current speed + chaos metrics
- Future: Uses divergence level + prediction accuracy
- Reversed: Triggered by high chaos or low accuracy
I-Ching Hexagram:
- Uses last 6 movements
- Each movement generates a yin/yang line
- Combines into hexagram
- Interprets based on traditional meanings + behavior
Rune Casting:
- Casts 5 runes from recent movements
- Analyzes elemental balance
- Provides interpretation based on dominant rune
Generated when you've made at least 5 movements, using:
const seed = first10Movements.reduce((sum, action) => sum + action.x + action.y, 0);
const cardIndex = seed % 22; // Pick from 22 Major Arcana"The Fool in your past speaks of new beginnings and exploration. Your present is dominated by The Tower, revealing sudden change and upheaval. The future shows The Star - expect hope, faith, and renewal. Your erratic patterns suggest The Tower approaches. Your behavioral foundation will collapse soon."
"The oracle reveals Hexagram 29: 'The Abysmal'. Danger, repeated challenges, courage. Your erratic movements suggest tumultuous change ahead. Swift action is required."
"The runes have fallen. Thurisaz (Gateway, protection, conflict) dominates your reading. Fire energy surrounds you. Hagalaz whispers of disruption in your chaotic patterns."
- Hooks into existing prediction system
- Tracks whether prophecies come true
- Updates Fate Alignment accordingly
- More accurate readings = "Aligned" fate
- Poor predictions = "Divergent" fate
- Readings trigger shadow commentary
- Adds mystical flavor to the shadow's observations
- Example: "The cards have spoken. Your session is guided by The Magician... Manifestation, resourcefulness, power."
All data is saved:
- Reading history
- Prediction accuracy
- Fate alignment
- Can be exported with session data
- Color Scheme: Mystical purple (#b19cd9) with dark backgrounds
- Animations: Card reveals, hover effects, fade-ins
- Typography: Clear hierarchy with uppercase headers
- Layout: Flexible grid for cards, responsive design
- Effects: Glow on hover, drop shadows, gradient overlays
TAROT_DATA = {
mode: 'tarot' | 'iching' | 'runes',
readings: [{
timestamp, mode, reading, behavior
}],
dailyCard: { name, symbol, meaning, reversed },
predictionAccuracy: [0.8, 0.6, 0.75, ...],
fateAlignment: 'Aligned' | 'Neutral' | 'Divergent'
}drawTarotReading()- Main entry pointanalyzeBehaviorForDivination()- Movement analysisperformTarotReading(behavior)- Generate tarot spreadperformIChingReading(behavior)- Generate hexagramperformRuneReading(behavior)- Cast runesdisplayReading(reading)- Show full-screen overlaygenerateDailyCard()- Create session cardupdateTarotStats()- Refresh UIsaveTarotData()- Persist to localStorage
The system is designed to feel "unnaturally accurate" by:
- Behavioral Analysis: Actually analyzes your real patterns
- Adaptive Prophecies: Links to existing prediction system
- Confirmation Bias: Vague enough to seem applicable, specific enough to feel personal
- Memory: Tracks history so readings feel connected
- Shadow Commentary: Reinforces predictions through multiple channels
- Timing: Daily card from first movements feels "predetermined"
If you want to extend this further:
- Astrology Mode: Birth chart based on session time
- Kabbalah Mode: Tree of Life pathworking
- Dream Symbols: Interpret patterns as dream imagery
- Numerology: Calculate life path from movement coordinates
- Pendulum Mode: Use cursor as divination pendulum
- Crystal Ball: Scrying into future sessions
- Card Combinations: Advanced tarot spreads (Celtic Cross, etc.)
- Ritual System: Perform "digital rituals" to influence readings
To test after integration:
- Start a session
- Move your cursor around for a bit
- Check if Daily Card appears
- Click "Draw Reading"
- Try switching between Tarot/I-Ching/Runes modes
- View full reading in overlay
- Check reading history
- Export session data to verify persistence
- All code is fully inline (no external dependencies)
- Compatible with existing localStorage system
- Integrates with shadow personality system
- Works with prediction/divergence tracking
- No breaking changes to existing features
- Total addition: ~500 lines of CSS, 200 lines of HTML, 650 lines of JS
This system embodies the app's core theme: "What if the simulation is watching you back?"
Now the simulation doesn't just watch and predict—it prophesies. It interprets your movements as cosmic signs. Your cursor becomes a divination tool, your patterns become destiny. The boundary between behavioral analysis and mysticism dissolves entirely.
The readings are simultaneously:
- Completely algorithmic (based on measurable patterns)
- Eerily accurate (because they analyze real behavior)
- Mystically presented (as ancient divination)
- Self-fulfilling (because awareness changes behavior)
Perfect for the recursive self-portrait experience.
"The cursor moves, the oracle speaks, the patterns reveal what was always written in your behavioral stars."