How to install tag
brew install tag-ag tag use case
Instantly jump to search matches from ag or ripgrep in your editor by generating shell aliases for each match.
When to use tag
- Searching codebase with ag or ripgrep and immediately opening files at matched lines in an editor
- Working in a terminal and needing to navigate to search results without manually typing file paths and line numbers
- Using a Neovim :terminal or other terminal-based editors where plugin-based search navigation is not available
When not to use tag
- When you need plain grep-style output without shell alias generation
- When you are not using ag or ripgrep as your search backend (e.g., ack, grep, or built-in IDE search)
tag features
- · Generates shell aliases for each search match to jump directly to the file and line
- · Lightweight wrapper around ag and ripgrep with negligible performance overhead
- · Supports both ag and ripgrep backends
- · Behaves like ag/rg under normal use when aliases are not needed
Want your agent to find this automatically?
Add the MCP server to your agent config and it will discover tools like tag on its own.
Set up MCP →