npx claudepluginhub devonmorris/claude-ctagsAuto-generates and maintains ctags index for efficient code navigation, reducing token usage by providing precise symbol-to-location lookups
A Claude Code plugin that automatically generates and maintains a ctags index for efficient code navigation. Reduces token usage by providing precise symbol-to-location lookups instead of broad grep searches.
Requires Claude Code version 1.0.33 or later.
1. Add the marketplace:
/plugin marketplace add DevonMorris/claude-ctags
2. Install the plugin:
/plugin install claude-ctags@claude-ctags
Or use the interactive installer with /plugin and navigate to the Discover tab.
Universal Ctags must be installed and available in PATH:
macOS:
brew install universal-ctags
Ubuntu/Debian:
sudo apt install universal-ctags
Arch Linux:
sudo pacman -S ctags
The plugin works automatically once installed:
.claude/tagsUse /claude-ctags:refresh to manually regenerate the index.
Instead of:
grep -r "UserService" . # Returns 50+ matches
Claude can:
# Query tags file → src/services/user.ts:42
# Read just that file at the definition
Real-world test using the ripgrep codebase (~35k lines of Rust):
prioritized_alias function| Approach | Output | Results |
|---|---|---|
| Grep | ~300 chars | 3 matches (1 definition + 2 usages) |
| Ctags | ~100 chars | 1 match (definition only) |
Ctags output:
prioritized_alias crates/printer/src/hyperlink/aliases.rs /^const fn prioritized_alias($/ f
fn new( (common pattern)| Approach | Output | Results |
|---|---|---|
| Grep | ~4,500 chars | 74 matches across 35 files |
| Ctags | ~100 chars per lookup | Direct to specific struct's new |
When searching for a common symbol like new, grep returns 74 occurrences across 35 files. With ctags, you query the specific type (e.g., RegexMatcher::new) and get the exact location.
The tags file is stored at .claude/tags in your project root. This location is automatically added to .gitignore.
MIT
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.