DEV Community

MORC
MORC

Posted on

Fibonacci Memory Manager for Notion — Nature Forgets by Addition

What I Built

A biologically-inspired memory management tool for Notion that uses the Fibonacci sequence to automatically compress and organize your pages — just like human memory during sleep.

Instead of deleting old notes, the system bundles them into hierarchical layers, preserving importance while reducing detail. The deeper the layer, the older and coarser the memory.

GitHub: https://github.com/morcb13-bit/fibonacci-notion-memory


The Idea: Nature Forgets by Addition

Human memory doesn't delete — it compresses. During sleep, the brain reorganizes experiences, pushing less relevant details into deeper layers while keeping recent, important memories sharp.

I wrote a paper exploring this principle:

"Nature Forgets by Addition: A Fibonacci-Based Model for Hierarchical Memory Compression and Weighted Fractal Forgetting"

The core insight: the Fibonacci sequence (1, 1, 2, 3, 5, 8, 13...) defines natural growth through addition alone. We can use the same principle for memory compression.


How It Works

Fibonacci Layers

Each layer has a capacity from the Fibonacci sequence:

Layer 0: capacity 1  ← newest, most detailed
Layer 1: capacity 1
Layer 2: capacity 2
Layer 3: capacity 3
Layer 4: capacity 5  ← oldest, most compressed
Enter fullscreen mode Exit fullscreen mode

When a layer overflows, items are bundled and pushed to the next layer — cascading automatically.

Weighted Fractal Extension

Each Notion page receives a Fibonacci weight automatically:

Newest page  → weight 377
2nd newest   → weight 233
3rd newest   → weight 144
...
Enter fullscreen mode Exit fullscreen mode

This means recent, important pages stay prominent even after compression.

Notion MCP Integration

The tool connects directly to your Notion workspace via the Notion API, reads your pages, runs the Fibonacci compression algorithm, and writes a structured Memory Report back to Notion automatically.


Demo

============================================================
🧠 Fibonacci Memory Manager for Notion
============================================================

📡 Fetching pages from Notion...
   12 pages retrieved

⚙️  Running Fibonacci Forgetting...

📊 Layer State:
   layer_0: [░] 0/1 (cap=1)
   layer_1: [░] 0/1 (cap=1)
   layer_2: [░░] 0/2 (cap=2)
   layer_3: [█░░] 1/3 (cap=3)
   layer_4: [░░░░░] 0/5 (cap=5)

⭐ Top 5 Most Important:
   [377] Weekly Review 2025-03
   [233] Project Requirements
   [144] Ideas & Notes
   [ 89] Reading Log
   [ 55] Backlog

📝 Creating report in Notion...
✅ Done! Report created in your Notion workspace.
Enter fullscreen mode Exit fullscreen mode

The report is automatically written back to Notion:

## Summary
Pages retrieved: 12
Algorithm: Fibonacci Forgetting (Weighted Fractal Extension)

## Layer State
- layer_0: 0/1 (capacity=1)
- layer_1: 0/1 (capacity=1)
- layer_2: 0/2 (capacity=2)
- layer_3: 1/3 (capacity=3)

## Top 10 by Importance (Fibonacci weights)
- [377] Weekly Review 2025-03
- [233] Project Requirements
...

## Reference Paper
Nature Forgets by Addition
by moroc.b13 (2024)
Enter fullscreen mode Exit fullscreen mode

Setup

git clone https://github.com/morcb13-bit/fibonacci-notion-memory
cd fibonacci-notion-memory
pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

Create a .env file:

NOTION_TOKEN=ntn_your_token_here
Enter fullscreen mode Exit fullscreen mode

Run:

python fibonacci_memory.py <your_notion_page_id>
Enter fullscreen mode Exit fullscreen mode

Why This Matters

Most productivity tools fight information overload with deletion — archive, trash, purge.

But biological systems don't delete. They compress with purpose, keeping what matters and abstracting what doesn't.

Fibonacci Forgetting brings this principle to your Notion workspace:

  • No manual archiving
  • Importance is preserved automatically
  • The system self-organizes like a fractal

This is what "human-in-the-loop" AI workflows should feel like — intelligent compression that works with you, not against you.


The Paper

Full paper on dev.to: Nature Forgets by Addition

GitHub: https://github.com/morcb13-bit/fibonacci-notion-memory

Built for the Notion MCP Challenge 2025 🏆

Top comments (0)