ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 jamubc

instantnotes

Claude Code 外挂,可通过 InstantNotes MCP 服务器或本地 `instantnotes mcp`,在终端的面板中搜索、阅读和记录 InstantNotes 笔记。

已翻译

关于这个 mod

instantnotes 是 jamubc 制作的 Claude Code 外挂,会把 InstantNotes 资料库带到 Claude Code 旁边的面板中。通过 /plugin marketplace add jamubc/toolbox 和 /plugin install instantnotes@toolbox 安装。命令包括:/notes 打开包含最近笔记的面板,/notes <words> 搜索整个资料库,/note <text> 保存新笔记(第一行会成为标题)。在面板中,可以边输入边筛选、以 Markdown 打开笔记、在提示中提及笔记让 Claude 通过 MCP 读取、粘贴或复制笔记文本,以及创建新笔记。它通过正在运行的 instantnotes MCP 服务器,或按请求运行 instantnotes mcp 来访问 InstantNotes,并从 ~/.claude.json、.mcp.json、/Applications/InstantNotes.app、~/Applications 或 PATH 中查找程序。需要 InstantNotes 0.9.0+,并在 Settings › Agents 中启用 Access;只有将笔记加入提示后,Claude 才能收到笔记内容,而且外挂只与本地程序通信,从不访问网络。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add jamubc/toolbox
claude plugin install instantnotes
原文 / README

instantnotes

Your InstantNotes library, directly in Claude Code. Search, read and capture notes without leaving the terminal.

The InstantNotes pane in Claude Code after /notes: a search field above four recent notes (Weekend pancakes, Grocery list, Trip ideas, Book notes), each with a one-line excerpt

Every note you have, one command away.

Install

Add the marketplace:

/plugin marketplace add jamubc/toolbox

Install the plugin:

/plugin install instantnotes@toolbox

Usage

| Command | What it does | | --- | --- | | /notes | Opens a pane with your recent notes. | | /notes <words> | Opens the pane searching for those words or a title. | | /note <text> | Saves the text as a new note. The first line becomes the title. |

In the pane:

  • Type to filter the notes already listed; Enter searches the whole library. An empty search lists recent notes.
  • A note opens as Markdown with its spaces, tags and when it last changed. b goes back.
  • mention in prompt (u) puts a reference to the note in your prompt, so Claude can read it through the InstantNotes MCP server. paste into prompt (p) puts the note's text itself there. copy (c) copies it.
  • + new note opens a field: write the note and press Enter. It opens once saved.
  • Notes you have opened are kept for a minute, so going back and forth is instant; reload (r) reads one again.

How it reaches InstantNotes

The plugin uses what InstantNotes › Settings › Agents sets up, in this order:

  1. The instantnotes MCP server Claude Code already runs, once you ran the claude mcp add instantnotes … command from that page. This is the fast path: the server stays up, and every request is a call to it.
  2. instantnotes mcp run by the plugin, one request at a time. It finds the program from what claude mcp add wrote in ~/.claude.json or the project's .mcp.json (the exact program and library you use), from /Applications/InstantNotes.app or ~/Applications/InstantNotes.app, or on your PATH.

When none of these can start, the pane says so and lists the steps.

<details> <summary>Setup details</summary> <br>
  • Needs InstantNotes 0.9.0 or later, with Access turned on in Settings › Agents.
  • /config → InstantNotes program names the program when the plugin cannot find it. /config → Notes library names a library other than the one the app or claude mcp add uses; the attachments folder is read beside it.
  • With nothing set, the app's own library is used: ~/.local/share/com.instantnotes.app on Linux, ~/Library/Application Support/com.instantnotes.app on macOS.
</details> <details> <summary>Functions</summary> <br>
  • hooks/register.tsx draws the pane and answers /notes and /note.
  • hooks/library.ts finds the program and library from your configuration, and shapes text for the pane.
  • Each request is one MCP tools/call, through the connected server or one instantnotes mcp process, so the plugin follows the same rules as any agent.
  • /clear and /compact leave the search and the open note in the pane.
</details> <details> <summary>Privacy</summary>
  • Notes reach Claude only when you put one in your prompt (mention or paste) and send it.
  • It writes only when you save a note (/note, or the field in the pane).
  • It talks only to the local instantnotes program or the MCP server you connected, never the network. ~/.claude.json is read only to find that server's command line.
</details>

Development

claude --plugin-dir plugins/instantnotes   # load it; edits hot-reload
claude plugin validate plugins/instantnotes
claude plugin test plugins/instantnotes

更多类似作品