Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Universal Ctags

$ ctags Community Low Risk
Universal Ctags (OSS) · Files & Search · GPL-2.0 · macos / linux / windows

Universal Ctags (ctags) indexes classes, functions, types, and variables across 100+ languages in milliseconds. Passing -f - --output-format=json streams structured NDJSON symbol maps directly to stdout without writing a tags file on disk.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install universal-ctags
CLI vs MCP Decision CLI Preferred vs MCP

Streaming ctags -f - --output-format=json indexes an entire repo locally in one command without maintaining an MCP symbol server.

Agent-Readiness Checklist

Local Probe Evidence
✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
—
Startup
3005 ms
Exit Codes (help / invalid)
— / —
NO_COLOR Clean / Non-TTY Safe
Yes / Hung

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Supports --output-format=json and --fields= customization when built with Jansson, though macOS ships an incompatible BSD ctags by default.

  • --output-format=json and -f - enable structured stdout streaming
Trust & Safety 23 / 25

Read-only when -f - is used; default invocation writes ./tags unless redirected to stdout.

  • Zero network calls; file write avoided via -f -
Setup & Portability 12 / 15

Easy via brew install universal-ctags and Linux packages, though PATH priority vs BSD ctags matters on macOS.

  • Requires installing universal-ctags separately from macOS system ctags
Utility & Efficiency 13 / 15

Rapidly builds a cross-language symbol outline for unfamiliar repositories in a single pass.

  • Supports over 100 programming languages out of the box
Maintenance & Lineage 8 / 10

Actively maintained community successor to Exuberant Ctags.

  • Active universal-ctags/ctags repository
Docs & Verifiability 8 / 10

Detailed Sphinx documentation at docs.ctags.io plus --list-languages / --list-fields introspection.

  • Self-describing --list-* flags and Sphinx manual

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local source files only.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (GPL-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Universal Ctags Agent Rules
- ALWAYS pass `-f -` when inspecting symbols so `ctags` does not pollute the repo with a `./tags` file.
- Exclude `node_modules`, `dist`, and `.git` with `--exclude`, and verify `ctags --version` is Universal (not macOS BSD ctags).

Agent-Ready Command Recipes

Safe Read-Only Queries

Stream repo symbols as NDJSON to stdout
ctags --output-format=json --fields=+nK -R -f - src/

Emits JSON symbol objects with line numbers (+n) and full kinds (+K) without creating a tags file.

Controlled Writes & Previews

Write a standard tags index file for editors
ctags -R --exclude=node_modules --exclude=.git -f tags src/

Generates a local tags file while excluding dependency and VCS directories.

Strengths for Agents

  • + Indexes symbols across 100+ languages in milliseconds with --output-format=json.
  • + Fine-grained --fields and --kinds-<lang> filtering keeps output compact.

Caveats & Pitfalls

  • ! Default invocation writes a ./tags file unless -f - is passed.
  • ! JSON output requires a Jansson-enabled Universal Ctags build (not macOS stock /usr/bin/ctags).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI