Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 14, 2026·2 min de lectura

ast-index — Fast Code Search for Agents

ast-index builds an AST index for fast code search and integrates with Claude/Codex/Cursor; verified 347★ and installs via Homebrew.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Asset
Comando de instalación directa
npx -y tokrepo@latest install 8af1d19c-c287-537f-a08f-d3ab7d1a144f --target codex

Ejecutar después de confirmar el plan con dry-run.

Introducción

ast-index builds an AST index for fast code search and integrates with Claude/Codex/Cursor; verified 347★ and installs via Homebrew.

Best for: Large repos where grep is too slow/noisy and you want agents to query symbols/usages precisely

Works with: macOS Homebrew (fast install) and any agent that can call CLI or MCP wrappers

Setup time: 8-18 minutes

Key facts (verified)

  • GitHub: 347 stars · 29 forks · pushed 2026-05-13.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: ast-index rebuild.

Main

  • Index once, query forever: run rebuild initially, then prefer incremental update for day-to-day changes.

  • Teach agents a rule: call outline or symbol/usages before reading a 500+ line file to reduce token burn.

  • For monorepos, enable walk-up indexing so subprojects reuse the root index instead of reindexing per folder.

Source-backed notes

  • README provides Homebrew install (brew tap defendend/ast-index then brew install ast-index) and lists 46+ commands.
  • README documents integrations: Claude plugin, Codex MCP install (ast-index install-codex-mcp), and Cursor plugin wiring.
  • README mentions a binary size hint (~44MB) for the release CLI output.

FAQ

  • Do I need to reindex after every change?: No — use incremental update and rebuild only when the index gets out of sync.
  • Is this language-specific?: It supports multiple symbol queries; check README for supported languages in your repo.
  • Can agents access it via MCP?: Yes — README describes an MCP server wrapper that exposes ast-index tools to MCP clients.
🙏

Fuente y agradecimientos

Source: https://github.com/defendend/Claude-ast-index-search > License: MIT > GitHub stars: 347 · forks: 29

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados