zhangpl666ya15 downloadsAutomatically maintains folder MOCs (with tag listing) and uses a local or cloud LLM to tag notes and recommend similar notes based on vector embeddings.
Version 1.0.3 requires Obsidian 1.13.0 or later. See CHANGELOG.md for migration notes and validation scope.
npm ci
npm run lint
npm test
npm run build
The repository includes official Obsidian lint checks, regression tests, and GitHub Actions build artifacts. Release assets must include main.js, manifest.json, and styles.css; keep manifest.json at the root of the default branch.
Tagging sends the active note body to the configured provider. Recommendations can send up to 2,000 characters from each candidate note across the vault to the configured embedding provider. Local Ollama endpoints keep these requests local; hosted endpoints receive the input. Requests begin when you start processing in the AI panel. Model lists are fetched when the relevant settings render.
API keys are stored in local plugin data.json and masked in the settings UI. Embedding vectors and note paths are stored in embeddings-cache.json. Neither file belongs in Git. This plugin has no telemetry. Missing Ollama models must be installed manually with ollama pull <model>.
Request timeout/cancellation stops waiting and prevents late note writes, but Obsidian's underlying HTTP request may continue at the provider. Existing legacy recommendation sections are preserved on migration; remove any duplicate old section manually.
For more pleasant quick-start, please read: 📖 docs Automatically maintain folder-level Maps of Content (MOCs) and use a local or cloud LLM to tag notes and recommend similar notes based on vector embeddings.
MOC.md for every folder in your whitelist, listing child folders and notes with their tags, last-modified date, and clickable wikilinks.Auto MOC and AI Tagger.main.js, manifest.json, and styles.css from the latest release.<vault>/.obsidian/plugins/auto-moc-ai-tagger/.学习, 工具).ollama pull qwen2.5:0.5b.taggingProvider to ollama (default).nomic-embed-text via Ollama.| Command | What it does |
|---|---|
更新所有白名单的 MOC |
Regenerates every MOC in your whitelisted folders. |
AI 笔记处理与润色面板 |
Opens a modal for the active note: tag it, find similar notes, apply tags. |
The plugin stores settings in .obsidian/plugins/auto-moc-ai-tagger/data.json. Adjustable from the settings tab:
YYYY-MM-DD modification date to each entry.`tag` (code) or #tag (hash).mtime (default) or name.ollama / openai / anthropic.ollama / openai (for similar notes).Generated MOCs now ship with a stats callout, folder callouts, code-style tags, per-note dates, and a generation footer:
---
tags:
- "笔记/MOC"
moc: true
创建: 2026-06-15
更新: 2026-06-15 14:30
---
# 📚 学习 · 知识地图
> [!info] **📊 知识地图概览**
> 📂 **5** 个子文件夹 · 📄 **42** 篇笔记 · 🏷️ 平均 **3.0** 个标签/篇
> 🕒 最后更新:2026-06-15 14:30
---
## 📁 子文件夹1 · 15 篇
> [!note] 🗂️ 拥有独立 MOC · [[子文件夹1/MOC|查看子目录]]
- 📄 [[Note1|Note1]] `tag1` `tag2` `tag3` · 📅 2026-06-15
- 📄 [[Note2|Note2]] `tag1` · 📅 2026-06-14
## ❓ 未分类 · 5 篇
- 📄 [[Note4|Note4]] · 📅 2026-06-12
---
🤖 Auto-generated by Auto MOC & AI Tagger · 2026-06-15 14:30
Existing MOCs are regenerated automatically on the next file event in the folder (or run 更新所有白名单的 MOC from the command palette to force-refresh the whole tree).
Your notes and embeddings never leave your machine unless you explicitly configure a cloud provider (OpenAI, Anthropic). Embeddings are cached locally in embeddings-cache.json inside the plugin folder.
MIT — see LICENSE.
zhangpl666ya — https://github.com/zhangpl666ya