Skip to content

Releases

0.4.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 06:50

Anthropic-compatible providers, two protocol presets instead of a vendor list, and a tidier “Advanced options” heading.

  • Anthropic-compatible providers. Add a provider with Anthropic 兼容 to use Anthropic Claude, or any service that offers an Anthropic endpoint (for example https://api.deepseek.com/anthropic), through the native Messages API. Streaming, tool calls in the agent, model detection through /models, and reasoning effort (adaptive thinking, with the thinking summary shown above the answer) all work. If a service rejects thinking or the default output length, the plugin retries without thinking or with a lower limit.
  • Two presets. “Add provider” now offers only OpenAI 兼容 and Anthropic 兼容; you enter the endpoint yourself. Providers created from the old vendor presets (DeepSeek, Qwen, Ollama and others) keep working as OpenAI compatible.
  • “Advanced options” is a heading. It shows just the words “高级选项”, left-aligned with the same size and weight as “服务商”, and no longer lists what is inside. Click the row (or press Enter) to open and close it.

支持 Anthropic 兼容服务商,服务商预设由厂商列表改为两种接口协议,“高级选项”改为标题样式。

  • 支持 Anthropic 兼容服务商。 添加服务商时选择 Anthropic 兼容,即可通过原生 Messages API 使用 Anthropic Claude,或任何提供 Anthropic 接口的服务(例如 https://api.deepseek.com/anthropic)。支持流式输出、Agent 工具调用、通过 /models 检测模型,以及推理强度(自适应思考,思考摘要显示在回答上方)。若服务不支持思考或默认输出长度,插件会自动去掉思考或调低上限后重试。
  • 只保留两种预设。 “添加服务商”只提供 OpenAI 兼容 和 Anthropic 兼容 两项,Endpoint 由你填写。用旧厂商预设(DeepSeek、通义千问、Ollama 等)创建的服务商按 OpenAI 兼容照常使用。
  • “高级选项”改为标题。 只显示“高级选项”四个字,靠左,字号和粗细与“服务商”一致,不再列出其中的细分项。点击该行(或按 Enter)展开或收起。

0.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:49

New permission modes, a safety classifier for Auto mode, fixes for stopping the agent and for cloud-synced vaults, flat button icons and a simpler settings page.

  • Modes now work like Claude Code's permission modes. Manual (the new default) asks before every note change, delete and external tool call. Accept writes note edits directly (you can undo them) and still asks before deletes and external tools. Auto sends each action to a safety classifier: actions that match your request run, and anything suspicious asks you. The classifier sees only your own messages and the actions requested, never note contents. By default it uses the chat's model; you can pick another one under Settings → Advanced options → Agent. The read-only Ask mode is gone. Existing chats are migrated: Ask and Accept become Manual, Auto becomes Accept.
  • Stop works while tools run. Stop used to have no effect while a search was running. It now ends any running tool right away, including searching, reading, planning edits, MCP calls and connecting to MCP servers.
  • Cloud-synced vaults no longer freeze search. In vaults on iCloud Drive, OneDrive, Dropbox and similar, search no longer tries to read every note at once, which downloaded online-only notes and could freeze search and Obsidian. On desktop, notes that aren't downloaded are skipped; slow reads and a time limit cover the rest. Skipped notes are still matched by file name, path, tags, headings and properties, and the agent is told which notes were not fully searched. Reading a single note gives up after 45 seconds instead of waiting forever. The semantic index skips online-only notes too.
  • Flat design. Send, stop, allow, reject, undo and the mode icons are flat, and buttons no longer have shadows or gradients.
  • Simpler settings. Only providers are shown by default. Everything else is under Advanced options.
  • The author is now shown as sigmalos.

新的权限模式、Auto 模式安全分类器、修复停止按钮和云端仓库的问题,按钮图标改为扁平风格,设置页更简洁。

  • 模式改为 Claude Code 的权限模式。 Manual(新的默认模式)在每次修改、删除笔记或调用外部工具前都先征求你的同意。Accept 直接写入笔记修改(可撤销),删除和外部工具仍需确认。Auto 由安全分类器审查每个操作:符合你请求的直接执行,可疑的再询问你。分类器只看到你发送的消息和 Agent 请求的操作,看不到笔记内容;默认使用对话所用的模型,可在 设置 → 高级选项 → Agent 中更换。只读的 Ask 模式已移除。已有对话会自动迁移:Ask、Accept 变为 Manual,Auto 变为 Accept。
  • 工具执行中也能停止。 以前搜索进行中点停止没有反应。现在点停止会立即结束正在执行的工具,包括搜索、读取、生成修改、MCP 调用和连接 MCP 服务。
  • 云端仓库搜索不再卡死。 在 iCloud Drive、OneDrive、Dropbox 等云端同步的仓库中,搜索不再一次性读取全部笔记(这样会触发下载仅在云端的笔记,导致搜索和 Obsidian 卡死)。桌面端会跳过尚未下载的笔记,其余情况由慢读取检测和总时限兜底。跳过的笔记仍按文件名、路径、标签、标题和属性匹配,并告知 Agent 哪些笔记没有搜索正文。读取单篇笔记最多等待 45 秒,不再无限等待。语义索引同样跳过仅在云端的笔记。
  • 扁平化设计。 发送、停止、允许、拒绝、撤销以及模式图标改为扁平风格,按钮去掉阴影和渐变。
  • 设置更简洁。 默认只显示服务商配置,其余内容收在 高级选项 中。
  • 作者名改为 sigmalos。

0.2.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 10:11

Fixes the issues reported by the Obsidian community directory's automated review. No change in features.

  • Verifiable builds: this and future releases are built by GitHub Actions from the tagged source, and main.js, manifest.json and styles.css come with artifact attestations. Verify a download with gh attestation verify main.js --repo sigmalos/Note-Agent.
  • Code review findings: all errors from the directory's lint rules are fixed. Responses from model servers and MCP servers are now parsed with explicit type checks instead of untyped access; timers use window so they keep working in pop-out windows; the Node network stack is only loaded in the desktop app; a regular expression unsupported on iOS before 16.4 is gone; the console only shows warnings and errors (diagnostic messages need debug logging).
  • Styles: no more !important; reduced-motion handling keeps working.
  • README: now in English, with the Chinese version in README.zh-CN.md, plus a section on what the plugin accesses (file list, notes, clipboard writes only) and why.

修复 Obsidian 社区插件目录自动审核中报告的问题,功能没有变化。

  • 可验证的构建:本版本起由 GitHub Actions 从对应标签的源码构建,main.js、manifest.json、styles.css 附带构建来源证明(artifact attestations),可用 gh attestation verify main.js --repo sigmalos/Note-Agent 验证。
  • 代码审核:修复了目录 lint 规则报告的全部错误。解析模型服务和 MCP 服务的返回内容时改为显式类型检查;计时器改用 window,在弹出窗口中也能正常工作;Node 网络模块只在桌面端加载;去掉了 iOS 16.4 以下不支持的正则写法;控制台只输出警告和错误(诊断信息需开启调试日志)。
  • 样式:不再使用 !important,“减少动态效果”设置仍然生效。
  • README:改为英文,中文版移至 README.zh-CN.md;新增插件访问哪些内容(文件列表、笔记、只写入剪贴板)及原因的说明。

0.2.1

Choose a tag to compare

@sigmalos sigmalos released this 23 Nov 09:26

插件改名为 Note Agent,插件 ID 从 obsidian-ai-agent 改为 note-agent,以符合 Obsidian 社区插件目录的要求:ID 不能包含 obsidian,原名称 “AI Agent” 也已被其他插件使用。功能与 0.2.0 相同。

从 0.2.0 升级

  1. 下载下方的 main.js、manifest.json、styles.css,放到新文件夹 <你的仓库>/.obsidian/plugins/note-agent/。
  2. 在“设置 → 第三方插件”中先关闭旧的 AI Agent,再启用 Note Agent(两者同时启用会冲突)。
  3. 首次启动时,Note Agent 会自动从旧文件夹复制设置、会话历史和语义索引,并给出提示;API Key 保存在安全存储中,无需重新填写。
  4. 确认一切正常后,可以删除旧插件。

注意:命令 ID 的前缀随插件 ID 改变,之前为插件命令(包括提示词命令)绑定的快捷键需要重新绑定。

其他变化

  • 新增 MIT LICENSE 文件。
  • 更新了 README。

全新安装

  1. 下载下方的 main.js、manifest.json、styles.css。
  2. 放到 <你的仓库>/.obsidian/plugins/note-agent/(没有就新建)。
  3. 在“设置 → 第三方插件”中启用 Note Agent,然后在插件设置中添加服务商。

需要 Obsidian 1.8.7 或更高版本。完整功能介绍见 0.2.0 的发布说明和 README。

0.2.0

Choose a tag to compare

@sigmalos sigmalos released this 23 Nov 09:04

首个公开版本:在 Obsidian 中使用你自己的大模型对话、整理和编辑笔记。支持任意 OpenAI 兼容接口(DeepSeek、通义千问、智谱 GLM、Kimi、豆包、MiniMax、SiliconFlow、Ollama、LM Studio、OpenAI 等)。

主要功能

  • 服务商与模型:只需填写 Endpoint 和 API Key,连接后自动检测可用模型;在对话框底部切换服务商、模型、思考强度(低 / 中 / 高 / Max)和模式。API Key 保存在 Obsidian 安全存储中(1.11.4+)。
  • AI Chat:流式输出、思考过程与用时、会话历史、导出为笔记;当前笔记、选中文本、关联笔记和手动添加的笔记可作为上下文,每轮实际发送的内容都可以查看。
  • Agent:模型可以搜索(关键词 / 语义)、阅读、新建、修改、移动和删除笔记,回答中显示执行计划和每一步工具调用。
    • Ask:只读;Accept:每次写入前预览并确认;Auto:直接写入,可撤销。删除在任何模式下都需要确认,并按 Obsidian 的“删除文件”设置处理(默认移到回收站)。
    • 不支持工具调用的模型会自动改用普通对话。
  • AI 编辑:重写、润色、扩写、精简、总结、翻译、续写等 14 种预设操作,以及自定义指令;以对比视图预览,接受后才写入,可 Ctrl/Cmd+Z 撤销。
  • 行内补全:输入停顿后显示灰色续写建议,Tab 接受、Esc 忽略。
  • 提示词:AI Prompts 文件夹中的笔记即提示词,支持变量,可绑定快捷键。
  • 语义检索:本地向量索引,增量更新。
  • MCP:接入本地或远程 MCP 服务,为 Agent 增加工具。

安装

  1. 下载下方的 main.js、manifest.json、styles.css。
  2. 放到 <你的仓库>/.obsidian/plugins/obsidian-ai-agent/(没有就新建)。
  3. 在“设置 → 第三方插件”中启用 AI Agent,然后在插件设置中添加服务商。

需要 Obsidian 1.8.7 或更高版本;1.11.4 及以上会把密钥保存在安全存储中,较低版本保存在插件配置文件里。

隐私

  • 只有附带的上下文和 Agent 实际读取的笔记会发送给模型;排除的文件夹对所有功能都不可见。
  • 行内补全和语义检索默认关闭。开启后,补全会发送光标附近的文字,语义索引会把笔记片段发送给 Embedding 服务。

已知限制

  • 只在桌面端(macOS)测试过;本地 MCP 服务仅限桌面端。
  • 批量修改目前逐个确认,或选择“本次任务全部允许”,还不能先一次性预览全部改动。
  • 尚未实现:自定义 Skills、Agent 工作流、多 Agent 协作、Anthropic / Gemini 原生接口(可以通过它们的 OpenAI 兼容地址接入)。

详细说明见 README。