r/secondbrain • • 3h ago

I built a 100% zero-inference agent memory engine in Node + SQLite WAL: 74.3% Top-5 on LoCoMo-10 (~5.8 ms/q, 0 embeddings, 0 Docker)

2 Upvotes

Most agent memory setups require a vector DB, an embedding model, Docker, or extra LLM calls just to retrieve context. I wanted to see how far a **100% zero-inference** engine could go using only local Markdown/JSON + `node:sqlite` (WAL) with zero npm dependencies.

**The ceiling I hit**

Pure lexical search (BM25/FTS5) and naive graph spreading hit a hard wall around ~65.6% on multi-session dialogue. High-frequency hubs hijack the top slots, and multi-hop or conversational references fail when there is no embedding model bridging the gap.

**What I implemented in HebbMesh (v1.7) to break that wall without an LLM**

- **Hebbian plasticity + homeostasis:** co-activated memories strengthen their edges, with homeostatic scaling so popular hubs don't drown out specific memories.

- **Phase interference & Pauli-style marginal coverage:** instead of naive additive spreading, non-resonant paths cancel out (destructive interference) and Top-K selection penalizes slot redundancy to force genuine context diversity.

- **Dialogue physics:** in real conversations, meaning lives in speaker continuity and immediate turn-window context rather than isolated messages or question-type dictionaries.

**Results on public LoCoMo-10 (1,982 questions)**

- **74.3% Top-5** (**81.5% Top-10**) — nearly **+19 pts** over standard BM25.

- **~5.8 ms/query** on a regular desktop CPU (no GPU, no external API).

- **20/20** pass rate against Context/Memory Injection (CMI) poisoning probes.

**Honest caveats**

- Because it uses zero embeddings, pure paraphrase queries with zero lexical/graph bridge can still miss compared to dense SOTA retrievers.

- This is strictly the retrieval/memory layer, not a full agent framework (still running End-to-End QA + LongMemEval next).

Open-source under **AGPL-3.0** (`Node >= 22.5`, 0 dependencies). Happy to answer questions on the math, the LoCoMo-10 eval script, or where it breaks.

- **GitHub:** https://github.com/victormunoz-sec/hebbmesh

- **Release v1.7.0 & Paper (EN/ES):** https://github.com/victormunoz-sec/hebbmesh/releases/tag/v1.7.0

- **Zenodo DOI:** https://doi.org/10.5281/zenodo.24514028


r/secondbrain • • 5h ago

How did you start your second brain: one messy folder first, or a structure first?

4 Upvotes

The first step of my AI second brain was one habit: saving everything I use for my work into one folder. Files, notes, prompts, the instructions I wrote for my AI assistants, the steps of my workflows. A messy folder was completely fine at that stage.

Spread out across old chats, personal instructions and all the different tools, that knowledge is really hard to use together, for you and for any AI.

When the folder holds most of what you know about your work, you can open it in an AI tool that can read and write files (the Claude desktop app working on your files, Claude Code or Codex all do this) and let it sort everything. This is the prompt I share for that:

"This folder holds everything I use for my work and my business: files, notes, prompts, instructions for my AI assistants, and my workflows.

Step 1: Read all the files and propose a clear folder structure, grouped by topic (for example: about me, my business, my clients, my offers, my workflows, my AI instructions). Show me the plan and ask me questions before you move anything.

Step 2: When I approve, move the files into that structure. Never delete a file. If something looks duplicated or outdated, put it in a folder called _review.

Step 3: Add references between the files: at the end of each file, list the related files with their paths. Then create a README file at the top that explains what each folder holds."

It shows you the plan first, and nothing moves until you approve it.

Many of you probably started the other way round, with a structure or a template first. So I'd like to hear:

- Did you start with one big dump, or with a structure?

- What would you do differently if you started again?

- Do you let AI sort your notes, or do you keep that part by hand?


r/secondbrain • • 5h ago

How do you use your 12 favorite problems in your second brain

4 Upvotes

I've been building my second brain for a few years now. It's been a slow and steady process, every year I adopt a few new practices from Tiago's book and course along with some of my own developments. Recently, I've been looking for a way to bring more intentionality to how I capture and filter my notes. That's why I came back to the idea of the favorite problems.

Tiago got the inspiration for this idea from the Noble Prize wining physicist Richard Feynman. The core idea is that favorite problems are open questions you keep coming back to. They work as a filter for what to capture, a guide for what to pay attention to, and a north star for choosing projects and goals.

I've already come up with a solid set of favorite problems, now I'm trying to figure out how what is the best way to integrate them as filters in my day to day. I am planning to review them weekly during my check-ins and reassess them during my yearly reviews. Another idea I'm exploring is to create some structures to save notes into buckets related to these questions.

For those of you who have adopted this practice, how does the rubber meet the road for you?