Skip to main content
subagent

tag-agent — Claude Code subagent: what it does, how to install

Cleans up vault tag taxonomy and removes duplicates. Useful for organizing deeply nested notes in Obsidian.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent obsidian-ops-team/tag-agent
Open on GitHub

What tag-agent does

The subagent handles taxonomy consistency across note vaults. It detects duplicate labels, merges variations like hyphenated and slash paths, and enforces correct casing for names such as LangChain or PostgreSQL. Hierarchies are restricted to three levels deep.

The agent relies on Read, MultiEdit, Bash, and Glob tools. Its core workflow centers around tag_standardizer.py, which offers a --report argument to generate a dry-run analysis before applying any document updates.

Without the PyYAML package installed in the environment, the Python automation will fail immediately. Running a preliminary report is necessary to avoid unintended vault changes.

What it helps with

  • merge duplicate tags and disparate label variations
  • organize vault tags into clean parent-child hierarchies
  • create an inconsistency report prior to modifying files
  • enforce proper casing across product and technology names

Example prompts for the agent

  • Run an audit on all vault tags and produce a taxonomy report
  • Standardize product casing and merge duplicate technology tags
  • Reorganize top-level categories into a nested tag hierarchy

How to install tag-agent

1claude-code-templates

npx claude-code-templates@latest --agent obsidian-ops-team/tag-agent

2Manually: put the files in place

.claude/agents/tag-agent.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about tag-agent

How to install tag-agent in Claude Code?

Run npx claude-code-templates@latest --agent obsidian-ops-team/tag-agent. This saves the configuration to .claude/agents/tag-agent.md.

What does tag-agent do?

It audits markdown files for inconsistent labels, normalizes casing on technology names, and structures tags into strict parent-child hierarchies.

What dependencies does this subagent require?

It requires python3 with PyYAML installed to run the local tag standardization script.

Similar subagents

All subagents for Notes, tasks and projects →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor