简体中文 | English
AI tag management and governance for Obsidian vaults.
AI Tag Curator is not a generic "generate tags for this note" plugin. It helps you keep an existing Obsidian tag taxonomy coherent by reusing known tags, explaining recommendations, and surfacing vault-level tag problems before any risky cleanup work.
Current MVP Capabilities
Vault tag index

- Build a tag index from Obsidian metadata, frontmatter tags, and optional inline tags.
- Show a tag index summary with tag counts, usage counts, file counts, and top tags.
- Reuse the cached index for recommendations and health reports instead of scanning the whole vault every time.
Current note recommendations

- Suggest tags for the current Markdown note.
- Prefer existing vault tags, even when new tags are allowed.
- Filter out tags already present on the current note.
- Explain each recommendation with confidence and close alternatives not selected.
- Apply selected recommendations only after user confirmation.
- Undo the latest tag change made by this plugin for the current note.
- Run slow AI requests in the background and show results when ready.
Vault-level tag health report
- Organize vault-level tag health into overview, AI priority actions, and rule evidence details.
- Group health issues such as low-frequency tags, near duplicates, hierarchy inconsistencies, over-broad tags, over-narrow tags, and naming drift.
- Use rule analysis for factual evidence and action safety boundaries; use AI assistance for merging related issues, explaining rationale, ranking priorities, and adding risk notes.
- Show user-facing AI action cards with priority, confidence, actionability, diagnosis, rationale, target tags, rule evidence, and caution notes.
- Cache AI-enhanced analysis for the current tag index and show the last analysis time when reopening the report.
- Executable merge/rename suggestions can show file previews, be applied manually, and be undone. Observation, broad split, deprecation, and removal suggestions stay read-only or manual-review.
- Copy AI action and cleanup suggestions as Markdown for external review.
- Click health report tags to copy and search them in Obsidian.
- Keep long reports scrollable inside a stable modal layout.

Settings

- Support OpenAI-compatible providers such as DeepSeek and OpenAI.
- Show dev-mode timing for tag recommendations and AI-enhanced health analysis.
- Support Chinese, English, and
Auto language mode following Obsidian.
Provider Configuration
Open the plugin settings and configure:
API base URL
API key
Model
Example OpenAI-compatible settings:
| Provider |
API base URL |
Model example |
| DeepSeek |
https://api.deepseek.com |
deepseek-v4-flash |
| OpenAI |
https://api.openai.com/v1 |
gpt-4o-mini |
The API key is stored locally in Obsidian plugin data.
Local Installation
- Install dependencies:
npm install
- Build the plugin:
npm run build
- Create a plugin directory in your target Obsidian vault:
mkdir -p /path/to/your-vault/.obsidian/plugins/ai-tag-curator
- Copy the generated files:
cp main.js manifest.json styles.css .hotreload /path/to/your-vault/.obsidian/plugins/ai-tag-curator/
- Open Obsidian, go to
Settings -> Community plugins, and enable AI Tag Curator.
Generated plugin files:
main.js
manifest.json
styles.css
.hotreload for local development with the Hot Reload plugin
For local development, you can install directly into an Obsidian vault:
npm run local:install
To install a side-by-side development copy without replacing the Marketplace plugin:
npm run local:install-dev
By default these commands target /Users/edge/personal/edge-notes. Override it with OBSIDIAN_VAULT_PATH=/path/to/vault.
Usage
- Configure an OpenAI-compatible API base URL, API key, and model.
- Run
Refresh vault tag index.
- Open a Markdown note.
- Run
Suggest tags for current note.
- Review the recommendation modal and apply only the tags you want.
- Run
Analyze tag health to inspect vault-level tag problems.
- Optionally run
AI-enhanced analysis inside the health report.
- Run
Undo last tag curator change if you need to revert the latest tag write for the current note.
Commands
The plugin UI defaults to Auto, which follows the current Obsidian language. In English, the commands are:
Refresh vault tag index
Show tag index summary
Analyze tag health
Suggest tags for current note
Undo last tag curator change
Development
Run tests:
npm test
Build:
npm run build
OpenSpec workflow:
npm run spec:list
npm run spec:status -- --change <change-name>
npm run spec:validate -- <change-name>
For new product work, start with an OpenSpec change proposal before implementation.
Current Limitations
- The MVP only writes to the current note's frontmatter
tags.
- Inline tags are read for indexing but are not automatically rewritten yet: body tags may appear in quotes, code blocks, links, or prose, so safe writes need position-level diffs, operation logs, and conflict detection.
- Rule evidence in tag health reports is read-only. Executable cleanup items require file previews and explicit manual confirmation.
- AI-enhanced health analysis provides summary and action guidance only; it cannot change local action capability or execute changes.
- Cleanup plans label action capabilities. Executable merge/rename items can be applied manually and undone; other items remain preview-only, observe-only, or manual-review.
- AI responses must be valid structured JSON. If parsing fails, no file is modified.
Documentation