Context windows are the wrong solution to AI memory

rahilpirani2 pts0 comments

Second Brain — Your AI Tools Finally Remember You

Skip to content

Built on Cloudflare

free tier · your account

Memory layer for your AI tools<br>v1 · MIT

Your AI finally remembers what you told it last Tuesday.

Second Brain is a self-hosted memory layer for Claude, ChatGPT, Cursor, and every other MCP-compatible tool. One URL. Three minutes to deploy. Free forever on Cloudflare.

Deploy in two minutes<br>See how it works

Star on GitHub

60

3.1k views on r/Cloudflare

Obsidian verified

Claude · Tuesday, 9:14 AM<br>session_01

Refactoring checkout — going with React Query instead of Redux.

stored to brain

Got it. React Query fits this case well. Want me to sketch the migration?

three hours later — fresh session

Claude · Tuesday, 12:38 PM<br>session_02

What state library am I using for checkout?

recalled · 96% match

React Query. You moved off Redux this morning.

No re-explaining. No copy-paste. Just continuity.

2 min<br>setup

$0<br>forever, on cloudflare

100%<br>your data, your account

every<br>mcp-compatible tool

works with<br>One memory layer for every AI tool you use.

any client that speaks MCP — that's all of them now

If it speaks the Model Context Protocol , it plugs in. One Worker URL, every tool.

the problem<br>You've explained your project to Claude forty-seven times this week.

Every new conversation, you re-paste context. The tech stack. The architecture decisions. What you agreed on last Thursday. The file structure. The naming conventions. Again. And again.

The model is brilliant in the moment and completely blank at the start of the next session. You burn ten minutes per chat re-establishing context that should already exist.

Built-in memory features are black boxes. You can't search them. You can't audit what's stored. You can't export them. You can't control when they trigger. They occasionally remember the right thing. Mostly they don't.

Second Brain is different. It's a memory layer you actually control — searchable, exportable, self-hosted, and yours.

how it works<br>Up and running in three steps

STEP 01

One-click deploy

Click the button. Cloudflare provisions your D1 database, Vectorize index, and Worker. Schema auto-creates on first request. Nothing to configure.

STEP 02

Connect your tools

Paste your Worker URL into Claude Desktop, Claude Code, claude.ai, Cursor, or any MCP-compatible client. One URL, every tool.

STEP 03

It remembers

Context gets stored automatically as you work. At the start of each new session, the relevant parts surface. You stop re-explaining. Forever.

proof<br>See it in action

Watch the same question asked across ChatGPT, Claude, and Cursor — all returning consistent answers thanks to Second Brain.

features<br>Built to be trusted

Memory that's auditable, exportable, and entirely yours — not a vendor's black box.

Time-aware recall

Recent memories rank higher. When a decision changes, the latest version surfaces first.

Semantic search

Finds memories by meaning. "Users drop off at checkout" surfaces when you search "conversion problems."

Web dashboard

Browse, search, and edit memories from a clean UI at your Worker URL. No CLI required.

Your account, your keys

Everything lives in your own Cloudflare account. No third party ever touches your memories.

Works everywhere

Claude, Cursor, Windsurf — every MCP-compatible client. One memory layer, every tool.

Obsidian sync

Verified Obsidian plugin syncs your vault directly. Your knowledge base becomes AI context.

Smart chunking

Long notes split into overlapping segments — specific paragraphs surface precisely.

Duplicate detection

Near-exact matches blocked before storing. Your memory stays clean and dense.

the dashboard<br>A full UI at your Worker URL.

No separate service. No extra deploy. Open your Worker URL in any browser — auth is handled client-side, your token lives in localStorage.

VIEW 01

Recall

Semantic search across your whole brain — not keyword matching. "payment drop-off" finds "users abandoning checkout" . Each result shows match score, tags, source, and timestamp.

VIEW 02

Recent

Every entry in reverse chronological order. Filter by tag to review what you stored under work or decision this week. Append updates or forget entries inline.

VIEW 03

Remember

Type a note and hit save. Drop #tags anywhere in the text — the UI strips them and stores them as tags. Works from your phone browser too.

integrations<br>Capture from anywhere

iOS Shortcuts

Capture thoughts as they happen. Voice memo while walking, a quick text note, or save from any app's share sheet — straight to your AI's memory.

Brain Dump · voice<br>Text Brain Dump<br>Save to Brain

Download a shortcut template below.

Open it in the Shortcuts app and tap Add Shortcut .

Replace YOUR_WORKER_URL and YOUR_TOKEN with your values.

Say "Hey Siri, Brain Dump" or invoke from the share sheet.

Brain Dump<br>Text Dump<br>Save to Brain<br>View all →

Obsidian Plugin

Turn your entire Obsidian vault into AI context. Sync everything or just tagged notes,...

brain memory claude context cloudflare tool

Related Articles