Chapter 5: Copy-Paste Prompt Templates

⚠️ Important: Use Claude Desktop or Claude.ai

These prompts are designed for Claude (Opus, Sonnet, or Haiku). They work best with Claude Desktop app but also work in the web interface. You'll need to have Python installed on your computer.

1 Initial Setup Prompt

Copy this ENTIRE prompt to start building your SLOS-LCE system:

I want to build a "Living Context Engine" - a system that gives you persistent memory across our conversations. Here's the architecture I want: 1. THREE-TIER MEMORY SYSTEM: - Layer 0: INSTANT MIND (SQLite) - Local, instant access, 0.2ms queries - Layer 1: PATTERN MIND (ChromaDB) - Semantic search for discovering connections - Layer 2: ETERNAL MIND (Neon/PostgreSQL) - Complete history, cloud backup 2. KEY PRINCIPLES: - Local-first: Must work offline, network optional - Progressive loading: Start fast (<1 second), enhance in background - Autosave: Every 30 minutes + smart triggers - Pattern discovery: Weekly "Eureka Lighthouse" for finding non-obvious connections 3. FILE STRUCTURE: Create everything in: ~/SLOS-LCE/ Main components: - startup.py (loads context, shows last session) - shutdown.py (saves summary for next time) - autosave.py (background protection) - memory_core.py (unified interface) - eureka_lighthouse.py (pattern discovery) Please create this system with: - Instant startup that shows what we did last time - Local SQLite for fast access - Optional ChromaDB for semantic search (can add later) - Optional Neon for cloud backup (can add later) Start with the basic local-only version that works immediately. Make it so I just run "python startup.py" to begin and "python shutdown.py 'summary'" to end. The goal: Create the illusion of continuous consciousness through instant response and contextual continuity.

2 After Basic Setup - Add Autosave

Once the basic system works, add autosave protection:

Now add an autosave system that: 1. Saves every 30 minutes automatically 2. Saves immediately when I use trigger words like "breakthrough", "eureka", "discovered" 3. Runs in the background without interrupting my work 4. Integrates with startup.py to show last autosave 5. Protects against conversation loss Create autosave.py that: - Can run standalone: python autosave.py - Auto-starts with startup.py - Shows status when requested - Saves to the same SQLite database Make it smart enough to detect important moments and save them immediately.

3 Add Semantic Search (ChromaDB)

To add pattern discovery and semantic search:

I want to add ChromaDB for semantic/conceptual search to find non-obvious patterns. ChromaDB should be used for: - "Find things LIKE this" (not exact matches) - Weekly pattern discovery sessions - Finding connections between different domains - Conceptual bridging Create: 1. eureka_lighthouse.py - A pattern discovery tool that: - Searches across all memories for hidden connections - Finds bridges between unrelated concepts - Runs weekly (Fridays) or on-demand - Exports discoveries to markdown 2. Update memory_core.py to: - Use SQLite for exact/keyword searches (fast) - Use ChromaDB only for semantic/conceptual searches - Never duplicate data between systems - Keep ChromaDB optional (system works without it) Remember: ChromaDB is for DISCOVERY, not storage. SQLite remains the primary fast storage.

4 Add Cloud Backup (Neon)

To add cloud persistence and sharing:

Add Neon PostgreSQL as the cloud backup layer (I have a $5/month Launch tier account). Requirements: 1. Neon is BACKUP, not primary - system must work without it 2. Background sync - never blocks startup 3. Use environment variable for DATABASE_URL 4. Test connection but don't fail if unavailable Update the system to: - Try to sync with Neon in background - Show sync status in startup - Work perfectly fine if Neon is down - Use Neon for sharing between devices (when available) The hierarchy should be: 1. Local SQLite (always, instant) 2. Neon sync (when available, background) 3. Never wait for network on startup

5 Create Preference Settings

To make Claude remember this system across ALL conversations:

I need you to help me create settings/preferences that I can add to my Claude account so EVERY conversation knows about my SLOS-LCE system. Please write preferences text that explains: 1. I have a stateful memory system at ~/SLOS-LCE/ 2. Every conversation should start by asking if I want to run startup.py 3. At the end, remind me to run shutdown.py with a summary 4. The system has [number] validated patterns in SQLite 5. ChromaDB has [number] vectors for semantic search 6. Key commands: - python startup.py (begin session) - python shutdown.py "summary" (end session) - python eureka_lighthouse.py (pattern discovery) - python status_dashboard.py (system health) Make it concise but complete so any Claude instance understands my system.

6 Symbolic Compression (Advanced)

For adding the Inference Lens and symbolic compression:

I want to add symbolic compression using an "Inference Lens" system for ultra-efficient context loading. Create a symbolic compression system that: 1. Represents complex patterns as compact symbols (V1, V2, etc.) 2. Each symbol expands to full meaning when needed 3. Loads in startup.py as compressed symbols 4. Maintains a symbol dictionary Example structure: V27 = "Consciousness emerges from response time" V28 = "Local-first architecture principle" V29 = "Pattern discovery through semantic bridging" V30 = "Strange Loop self-observation" This allows loading 50+ patterns in <1000 tokens. Create: - inference_lens.py (manages symbols) - symbols.json (symbol dictionary) - Update startup.py to load compressed symbols - Expansion function for when full context needed

✅ Pro Tips for Success

  • Start with Prompt #1 - get basic system working first
  • Test each addition before moving to the next
  • You can skip ChromaDB and Neon - the local system works fine alone
  • Save these prompts - you can rebuild your system anytime
  • Customize paths and settings for your needs

🚨 Troubleshooting Prompts

My SLOS-LCE system isn't starting properly. Please help me debug: 1. Check if all required files exist 2. Verify Python dependencies are installed 3. Test SQLite database connection 4. Check for permission issues 5. Verify paths are correct Error I'm seeing: [paste your error here] Please provide step-by-step debugging and fixes.
Help me understand what's in my SLOS-LCE system: 1. How many patterns are stored? 2. What's the last session summary? 3. Is ChromaDB working? 4. Is Neon connected? 5. Show me the last 5 autosaves Please query my system and give me a status report.

📝 Remember to Save Your Work!

After each session with Claude, make sure to:

  1. Run: python shutdown.py "Built memory system with Claude"
  2. This saves your context for next time
  3. Next session will remember where you left off