Skip to content

What Is MindFry?

MindFry is not another database. It is a cognitive substrate — a foundation for building systems that remember like biological organisms.

Traditional databases are built on a flawed assumption: perfect memory is always desirable.

But in biological systems, forgetting is not a bug — it’s a survival feature:

  • Generalization: Forgetting irrelevant details enables pattern recognition
  • Efficiency: Maintaining every memory is metabolically expensive
  • Adaptation: Old information can become actively harmful (outdated beliefs, trauma)

MindFry embraces this insight and builds a database that can forget productively.

At MindFry’s core is the Tri-Cortex — a decision engine based on Balanced Ternary logic (inspired by the Soviet Setun computer):

graph LR
    Input[Input Signal] --> Cortex{Tri-Cortex}
    Cortex -->|+1| Excite[Excitation<br/>Amplify & Propagate]
    Cortex -->|0| Neutral[Neutral<br/>Pass Through]
    Cortex -->|-1| Inhibit[Inhibition<br/>Suppress & Dampen]

Every data operation passes through this decision layer, which considers:

  1. Current Mood — Is the system euphoric, neutral, or depressive?
  2. Personality Octet — 8-dimensional character traits
  3. Data Energy — How “alive” is this memory?
  4. Bond Context — What are this memory’s relationships?

Each memory exists in one of three states:

LUCID

High energy, readily accessible. Recently accessed or highly stimulated memories. Threshold: energy > 0.5 × (1 - mood)

DREAMING

Latent, may surface contextually. Memories below consciousness threshold but above dormancy. Can be “primed” by related memories.

DORMANT

Deep subconscious. Very low energy memories. Only accessible via Executive Override (forensic mode).

In quantum physics, observation changes the observed. In MindFry, querying a memory reinforces it.

// Every GET adds +0.01 energy (unless bypassed)
const memory = await brain.lineage.get('childhood')
// memory.energy is now slightly higher
// Forensic mode: observe without affecting
const forensic = await brain.lineage.get('childhood', 0x04) // NO_SIDE_EFFECTS

This creates natural consolidation: frequently accessed memories grow stronger, while neglected ones fade.

Memories don’t exist in isolation. They form bonds with polarities:

  • Synergy (+1): Activating “fire” also activates “heat”
  • Antagonism (-1): Activating “focus” suppresses “noise”
  • Neutral (0): Pure association without amplification
graph TD
    A[fire<br/>energy: 1.0] -->|+1 synergy| B[heat<br/>+0.5 cascade]
    A -->|-1 antagonism| C[ice<br/>-0.5 suppression]
    B -->|+1 synergy| D[burn<br/>+0.25 damped]

Propagation is physically damped (50% per hop) to prevent runaway activation.

MindFry enables applications that were previously impossible or awkward:

Use CaseTraditional ApproachMindFry Approach
Session memoryManual TTL + cleanup jobsOrganic decay
Context-aware AIEmbedding + vector searchEnergy-based recall
Trauma simulationHard-coded rulesAntagonistic bonds
Trending topicsCOUNT + ORDER BYHigh-energy filtering

Next: See how MindFry compares to Redis, Neo4j, and Vector DBs in MindFry vs. The World.