Edith Second Brain

io.github.Rchari1由 GitHub 账号 Rchari1 发布v0.1.0更新于 Oct 24, 2026

Claude distils its past sessions into linked Markdown notes on disk and searches them later.

发布方自己的服务:BrainDog

概览

AI 生成的概览

一个本地 Markdown「第二大脑」应用,把 Claude Code 会话记录与互链笔记开放给助手搜索、读取和写入。

可以做什么
  • 搜索、读取并列出本地 Markdown 笔记库中的笔记
  • 把新的笔记与洞见写回笔记库
  • 列出过往 Claude Code 会话,并读取单条已去除工具噪声的会话记录
  • 按需把过往会话提炼成带来源信息的互链笔记
  • 导入已有的 Markdown、文本或粘贴内容,可原样保存或提炼为概念
适用场景
适合在 Mac 上使用 Claude Code、希望有一个持久且纯 Markdown 的知识库,让助手从自己过往的会话中填充并日后查阅的人。也适合偏好磁盘文件、可用任意编辑器修改,而不想用托管笔记服务的人。
运行要求
需要 Apple Silicon 的 Mac、macOS 13 或更新版本,以及终端或 VS Code 扩展中的 Claude Code。必须安装并运行 Edith 桌面应用,它在 127.0.0.1:4319 本地提供 MCP 服务。读写笔记无需账号或 API 密钥。从源码构建需要 Node.js 22.12 或更新版本以及 Xcode 命令行工具。
安装前请注意
首次启动会修改自身文件夹之外的文件:在 ~/.claude.json(以及 Claude Desktop 配置)中加入服务器条目,并在 ~/.claude 下加入会话启动钩子和技能。它会读取 ~/.claude/projects 下的本地 Claude Code 会话记录,因此会话内容会被处理并可能写入笔记。可选的「提炼为概念」导入模式会发起一次 API 调用,可能产生费用。笔记会一直留在磁盘上,直到删除笔记库文件夹。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Edith Second Brain,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Edith]

Edith Second Brain

A second brain for AI.

edithapp.ai · Download for macOS · VS Code extension

Edith is a local, plain-Markdown knowledge base that Claude can read from and write to. Ask Claude to review your past sessions and it distils them into linked notes itself - no API key, no account, no inference of its own.

Claude session ──MCP──▶      Edith.app      ──▶  the graph lights up                              │                              └── vault/notes/*.md

What it does

  • No API key. No account. No inference. Claude reads and writes your notes through its own session, on the plan you already pay for. Edith is the store and the canvas.
  • Claude fills it for you. Ask "review my recent sessions and save anything worth keeping" and Claude reads your transcripts with list_sessions / read_session, then writes the notes back with save_note.
  • Serves Claude over MCP. search_brain, read_note, list_notes, and save_note. Claude both reads from and writes to the brain mid-session.
  • Shows you the retrieval. A search dims-glows what Claude considered; opening a note brightly glows what it actually used. Highlights fade over 30 seconds.
  • Mini mode beside your session. Minimize Edith and it becomes a narrow panel docked to the left edge of the screen, drawing your brain and lighting up the notes Claude reaches for - the window and the panel are never up at the same time. With the window closed or minimized, the panel also opens on its own when a Claude session starts. It never takes focus, folds to a strip the width of the rail or shrinks to a small square in the corner - both just the live graph - and stays closed for the rest of a session once you close it. Turn off the automatic opening under Connection.
  • Takes your own content too. Add content imports .md, .markdown, .txt, and .mdx files, or anything you paste. Files keep their existing frontmatter, so importing a Markdown vault preserves ids and links instead of duplicating notes. Import as written, or distil into concepts.
  • Plain Markdown. Files on disk are the source of truth. Edit them in any editor. Delete the index and it rebuilds.

Install

Edith runs on a Mac with Apple Silicon, macOS 13 or later. You also need Claude Code, in the terminal or the VS Code extension.

Download Edith — signed and notarised by Apple, so it opens with no security warnings. Open the .dmg, drag Edith into Applications, and open it from there. Restart any Claude Code sessions that were already running.

On Windows? The Windows build lives at Edith-Windows.

In VS Code

The Edith extension registers Edith as an MCP server in the editor, so there is no mcp.json to write and no port to look up:

bash
code --install-extension raghavchari.edith-second-brain

It finds the running app and hands the editor a live connection. If Edith is not running when the editor goes to start the server, the extension offers to open it. The source is in vscode-extension/.

Edith is also listed in the official MCP registry as io.github.Rchari1/edith-second-brain, so clients that read the registry can find it without any of this.

Or build it yourself

Needs Node.js 22.12 or newer, and the Xcode command line tools (xcode-select --install) for the native database module:

bash
git clone https://github.com/Rchari1/Edith-SecondBrain.gitcd Edith-SecondBrainnpm installnpm run dist

The .dmg lands in release/. A build you make yourself is not notarised, but it opens anyway, because macOS trusts what you compiled on your own machine.

What happens on first launch

Edith starts its brain server on 127.0.0.1:4319 and connects itself to Claude. There is no account and no API key: ask Claude to "review my recent sessions and save anything worth keeping" and it fills the brain itself.

Outside its own folder, Edith adds:

WhatWhere
Its server entry, so Claude can reach the brain~/.claude.json, plus Claude Desktop's config if you have it
A session-start hook that tells Claude the brain exists~/.claude/settings.json
The /edith command~/.claude/skills/edith
A handful of starter skills~/.claude/skills/, managed from the Skills panel

Your notes are plain Markdown in ~/Library/Application Support/Edith/vault.

Updating

bash
cd Edithgit pullnpm installnpm run dist

Quit Edith, then drag the new build into Applications to replace the old one.

Troubleshooting

  • Edith quits the moment it opens. If you launched it from a VS Code terminal, open it from Applications or the Dock instead - VS Code's terminal sets an environment variable that stops the app from starting.
  • Claude never uses the brain. Restart Claude Code after Edith's first launch, then open Connection in Edith and check that the session primer says installed.

Uninstalling

Quit Edith and delete it from Applications. Then remove what it added: the edith entry under mcpServers in ~/.claude.json, the hook in ~/.claude/settings.json whose command ends in # edith:session-context, the ~/.claude/skills/edith folder, and any starter skills you no longer want. Your notes stay in ~/Library/Application Support/Edith until you delete that folder too.

How it works

StageWhat happens
Watchchokidar on ~/.claude/projects, waiting for a session to go quiet
ParseJSONL to a canonical Session, following leafUuid to skip abandoned branches
StoreMarkdown + YAML frontmatter, indexed in SQLite FTS5
ServeIn-process MCP server over local HTTP
Light upEvery tool call emits an event straight to the renderer

Tools Claude gets

ToolWhat it does
search_brainSearch the notes
read_noteRead one note in full
list_notesSee what the brain holds
save_noteWrite an insight back
list_sessionsSee past Claude sessions, and which are already captured
read_sessionRead one transcript, tool noise stripped

The last two are what let Claude do the distilling itself, on your plan, with no key anywhere.

Edith hosts the MCP server itself rather than spawning it. That is what makes the highlighting instant: a tool call and the glow are the same tick.

Adding your own content

Add content in the sidebar opens an import dialog with two modes:

ModeWhat it doesCost
Keep as writtenStores the file or text verbatim as a notefree
Distil into conceptsRuns the same extraction used on sessionsone API call

Re-importing a file deepens the existing note rather than creating a duplicate, so syncing a folder repeatedly is safe. A file with broken frontmatter loses its metadata, not its content.

Note format

markdown
---id: dynamic-port-bindingtitle: Dynamic Port Bindingtype: conceptcreated: 2026-08-25updated: 2026-08-25origin: distilledsources:  - session: 11111111-2222-3333-4444-555555555555    project: -Users-u-myapp    at: 2026-08-25T10:00:00Zlinks: [mcp-registration]---Bind the next free port and rewrite the MCP config to match.

Every note records the sessions it came from. That provenance is written from day one, so tracing a concept back to its conversations is a view rather than a migration.

Things worth knowing

Upgrading from the old name. Edith was previously called SecondBrain. On first launch it copies your existing vault and settings across from the old location, and replaces the stale secondbrain entry in ~/.claude.json with edith so Claude does not see two identical tool sets. The old directory is left untouched as a fallback.

An API key does not give access to claude.ai history. The Messages API is stateless; there is no endpoint listing past conversations. Edith reads Claude Code's local transcripts. The API key is used only to distill them.

Most .jsonl files under ~/.claude/projects are not sessions. Subagent and workflow transcripts nest under session directories and typically outnumber real sessions by roughly 9:1. Edith classifies by path shape so they never become notes.

Transcripts are trees. Interrupting Claude forks the history and leaves the abandoned branch in the file. The parser walks back from last-prompt.leafUuid so only what actually happened gets distilled.

Your config is safe. Registration merges a single key into ~/.claude.json, writes atomically, and backs the file up before first modification.

Development

bash
npm run dev        # run the app with hot reloadnpm test           # 235 testsnpm run typecheck  # tsc --noEmitnpm run build      # bundle main, preload, renderernpm run icon       # rebuild the icon set from assets/wordmark.svgnpm run release:mac  # signed and notarised, needs the certificate and the edith-notary profile

Tests cover path classification, fork resolution, malformed-line tolerance, vault merge semantics, config-write safety, a live MCP client over HTTP, and the full pipeline end to end with the API call mocked.

Not in v1

claude.ai export import - session-layer graph rendering - cross-machine sync - semantic search. Search sits behind a SearchProvider interface, so adding hybrid retrieval later touches one file.

License

Edith is source-available under the Functional Source License, Version 1.1, MIT Future License (FSL-1.1-MIT). You can read, use, modify and share it for anything except offering it, or something substantially similar, as a competing commercial product or service. Each release becomes MIT-licensed two years after it is published.

© 2026 Raghav Chari and Kate Bonner.

来源:README.md,提交 7694fed

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 22, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Brain 集成