Recipes Overview
Recipes
Section titled “Recipes”This section contains practical, copy-paste-ready patterns for common MindFry use cases. Each recipe demonstrates a specific cognitive behavior.
Featured Recipes
Section titled “Featured Recipes” 🤖 Chatbot Memory Conversation context that naturally fades over time, keeping recent exchanges vivid while old history becomes hazy.
🧠 PTSD Simulator Model trauma responses where trigger words cause amplified, rigid reactions while suppressing related content.
📈 Zeitgeist Watcher Track trending topics by filtering only high-energy memories, surfacing what's currently 'hot'.
Recipe Structure
Section titled “Recipe Structure”Each recipe follows a consistent format:
- The Problem: What cognitive behavior are we modeling?
- The Pattern: MindFry primitives used (bonds, decay, mood)
- The Code: Working TypeScript implementation
- The Insight: Why MindFry makes this natural
Core Primitives Reference
Section titled “Core Primitives Reference”Before diving into recipes, here’s a quick reference of MindFry primitives:
| Primitive | Purpose | Example |
|---|---|---|
lineage.create | Create a memory | { key: 'topic', energy: 0.8 } |
lineage.stimulate | Add energy (cascade) | { key: 'topic', delta: 0.5 } |
bond.connect | Link memories | { from, to, strength, polarity } |
system.setMood | Adjust accessibility | 0.8 (euphoric) |
query.neighbors | Find connected memories | Key lookup |
Polarity Quick Reference
Section titled “Polarity Quick Reference”graph LR
A[Source] -->|+1 Synergy| B[Target: +E]
A -->|0 Neutral| C[Target: ±0]
A -->|-1 Antagonism| D[Target: -E]
Ready to start? Pick a recipe from the sidebar or continue with the Chatbot Memory pattern.