second-brain-memory

second-brain-memory is a plugin for Claude Code from tonydzi/second-brain-starter-kit. Its token cost is not measured, scanned A, original, MIT.

A persistent memory service for Claude Code that searches a personal collection of Markdown notes. It uses SQLite to combine meaning-based search with links between notes.

In plain words
What is it for?
Use it to look up facts, decisions, and connected topics in a personal notes collection while working in Claude Code.
Why use it?
It lets an agent recall information from notes across conversations instead of relying only on the current chat. The notes must first be indexed, and the search setup includes a large optional embeddings dependency.

Plugin for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_DATA} variable. Also seen: mentions Claude Code.

Good fit Use it to look up facts, decisions, and connected topics in a personal notes collection while working in Claude Code.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add tonydzi/second-brain-starter-kit
/plugin install second-brain-memory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for second-brain-memory

README.md
[![agentmods](https://agentmods.dev/badge/plugins/tonydzi/second-brain-starter-kit/memory/github.svg)](https://agentmods.dev/plugins/tonydzi/second-brain-starter-kit/memory)
Your own site
<a href="https://agentmods.dev/plugins/tonydzi/second-brain-starter-kit/memory"><img src="https://agentmods.dev/badge/plugins/tonydzi/second-brain-starter-kit/memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for second-brain-memory

Your own site · 80×15
<a href="https://agentmods.dev/plugins/tonydzi/second-brain-starter-kit/memory"><img src="https://agentmods.dev/badge/plugins/tonydzi/second-brain-starter-kit/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

second-brain-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/memory/.claude-plugin/plugin.json · 36 lines

What it actually says

{
  "name": "second-brain-memory",
  "description": "Persistent memory for Claude Code over your own markdown notes: registers the sqlite-graph-memory MCP server (vector + wikilink-graph recall on plain SQLite). Separate from the skills plugin because on first start it downloads the [lite] ONNX runtime (about 155 MB) and the embedding model files (about 1.1 GB). Layers and design: https://github.com/tonydzi/second-brain-starter-kit/blob/master/MEMORY.md",
  "version": "0.2.0",
  "author": {
    "name": "Anton Dziatkovskii / Palo Alto AI Research Lab",
    "url": "https://github.com/tonydzi"
  },
  "homepage": "https://github.com/tonydzi/sqlite-graph-memory",
  "license": "MIT",
  "userConfig": {
    "index_dir": {
      "type": "directory",
      "title": "Index directory",
      "description": "The folder `sgm-index` wrote for your notes (BRAIN_INDEX_DIR). Build it once with: uvx --python 3.12 --from 'sqlite-graph-memory[lite]>=0.3.6,<0.4' sgm-index <your notes folder>",
      "required": true
    }
  },
  "mcpServers": {
    "sgm-mcp": {
      "command": "uvx",
      "args": [
        "--python",
        "3.12",
        "--with",
        "sqlite-graph-memory[lite]>=0.3.6,<0.4",
        "sqlite-graph-memory"
      ],
      "env": {
        "BRAIN_INDEX_DIR": "${user_config.index_dir}",
        "TURNSTATE_DB": "${CLAUDE_PLUGIN_DATA}/turnstate.db"
      }
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed 5ac0653f511d
  2. 24d ago Changed · +2 lines 657d02e499fb
  3. 1mo ago First seen · 34 lines scan A d53437ba5da0

Subscribe to this mod's changes

second-brain-memory is a plugin published in the GitHub repository tonydzi/second-brain-starter-kit (16 stars, last pushed 3d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.

Related

second-brain-memory compared with plugins from other repositories

second-brain-memory next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
second-brain-memorytonydzi/second-brain-starter-kitPlugin163d agoMITA—Claude Code
obsidian-second-braineugeniughelbur/obsidian-second-brainPlugin5.5ktodayMITA—Claude Code
llm-brainkimsanguine/llm-brainPlugin1017d agoMITA—Claude Code
superbrainm3talux/superbrainPlugin433mo agoMITA—Claude Code
humanizerblader/humanizerPlugin75k10d agoMITA—Claude Code
claude-plugins-official marketplaceanthropics/claude-plugins-officialPlugin49kyesterdayApache-2.0A—Claude Code
nextjsvercel/next.jsPlugin144ktodayMITA—Claude Code