local-first · open source · your disk

The chat ends.The memory stays.

second-brain captures every AI session into Markdown on your machine. Switch models, clear the window, close the laptop. Nothing walks away.

or ./install.shStar on GitHubApache-2.0
01

Your disk, not their cloud

Memory is Markdown under your home folder. Export is a folder copy.

02

Any model, same vault

Claude, GPT, Gemini, Grok. The brain does not move when the chat does.

03

Context that stays lean

Recall only what matters. Skip the slow compaction tax on every long thread.

works with

Claude Codehooks, todayClaude Desktopvia MCP, soonChatGPTvia MCP, soonCursorvia MCP, soon

The vault is plain files, so any model can read it now. Automatic capture and recall land in the other apps through a small MCP server we're building next.

The context tax

Fill. Compact. Clear.
Or write it to disk.

Long chats re-send their history on every turn. Past half full, you pay for bloat you already know. second-brain puts the hard parts in Markdown so the vault grows and the window stays light.

01 · fill12%

scroll to play

Without second-brain

Everything lives in the window

session working
session / context35%
chat memory (vendor)25%
~/vault (Obsidian)size 0.0 KB

nothing on disk — all in the window

session transcriptre-carry lean
  • debugging rate-limit on the API…
  • jittered retry on 429 works

extra tokens re-carried this session

0

History stays in the chat. Nothing hits disk.

With second-brain

Vault rises. Session stays light.

capturing
session / context19%
Obsidian vault0 notes · 0 KB
~/vault (Obsidian)size 0.0 KB

waiting for capture…

session transcriptre-carry lean
  • debugging rate-limit on the API…
  • jittered retry on 429 works

extra tokens above 50% line

0

Work happens. Notes land in Obsidian. Session stays thin.

Scroll to run the loop. Left fills the window. Right writes the vault and stays under the tax line.

Past 50% on a 1M window

Every query past half full
re-pays for history.

On a 1M-token window, everything above 50% is optional bloat you re-send each turn. Math: extra = 1M × (usage% − 50%). Prices use Claude Opus 4.8 input at $5/MTok. Output cost is separate.

at 90% context

400k

extra tokens re-sent every query

extra cost / query

$2

Opus 4.8 · $5/MTok input only

saved if you stay ≤50%

$80/day

40 queries/day · 90% → ≤50%

Context usedExtra tokens / queryExtra $ / queryExtra $ / day40 queriesKept with second-brainstay ≤50% · /mo (22d)
60%(600k carried)+100,000+$0.50+$20$440 /mo
70%(700k carried)+200,000+$1+$40$880 /mo
80%(800k carried)+300,000+$1.50+$60$1,320 /mo
90%(900k carried)+400,000+$2+$80$1,760 /mo
100%(1000k carried)+500,000+$2.50+$100$2,200 /mo

How to read this. At 90% you re-send 900k tokens every query. Only 500k sits under the 50% line — the other 400k is pure tax ($2 / query). second-brain keeps durable memory on disk and recalls a small slice, so you can /clear and live under 50%. “Saved” is that input tax going to zero — not free tokens, just not re-paying Opus for history you already wrote down.

why it exists

Memory on your disk,
not in the chat.

Vendor memory is a moat. second-brain is a folder. That is the whole product thesis, stated plainly.

01

It never forgets last week

The retry params you set on Tuesday, the bug you fixed last session, the decision you already paid for. It lands in Obsidian and stays. Clear the chat; the vault still knows.

02

Project A carries into project B

One linked vault, not a silo per repo. What you learned shipping A shows up when you start B. Skills stack across projects instead of dying in dead chats.

03

Own it. Switch freely.

Plain files on your disk. Jump between ChatGPT, Claude, Gemini, and Grok. The memory follows you because it was never trapped in a vendor.

04

Just Markdown. No account.

Wikilinked .md files. Offline, git-versioned, no server, no login. Uninstall the tool tomorrow and every note remains yours.

05

Never run out. Never compact.

Memory lives outside the window. Recall only what matters for this prompt, and skip the slow compaction that burns tokens to remember badly.

06

It fills itself

Obsidian-compatible notes, captured as you work. The vault you meant to keep by hand, building on its own. Always remembering.

Local files. Any model. No account.

Local, file-based, cross-model, hands-free. Most tools manage one.

swipe the table →

 second-brainChatGPT memoryClaude memorymem0Basic Memory
Where it's storedyour diskOpenAI cloudAnthropic cloudDB / cloudyour disk
You own & export itlimitedself-host
Works across models
Auto-captures sessionsautoauto
No account, no server

Where peers beat us: Basic Memory and Pieces add semantic search; mem0 adds knowledge-graph retrieval at agent scale. second-brain trades that for zero-infra, no-account ownership and native Claude Code fit: grep and plain Markdown over a database.