Cette page est affichée en anglais. Une traduction française est en cours.
CLI ToolsMay 14, 2026·2 min de lecture

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.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose la commande CLI, le metadata JSON, le plan d'installation et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 94/100Policy : autoriser
Cible
Claude Code, Codex, Cursor
Type
Cli
Installation
Brew
Confiance
Confiance : Established
Point d'entrée
ast-index rebuild
Commande CLI d'installation
npx tokrepo install 8af1d19c-c287-537f-a08f-d3ab7d1a144f --target codex
Introduction

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.
🙏

Source et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires