Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By defendendv3.56.0MITIn 1 marketplace
Jumps to definitions, usages, callers and implementations across large multi-language codebases by structure instead of grep. Builds a local SQLite index first with ast-index rebuild, and the author claims it saves about 40-50% of agent tokens.
ast-index@ast-index-marketplace, from the plugin/ folder. Claude Code treats the two as separate plugins. View the author's build →Claude Code doesn't load everything this plugin declares
commands, which isn't in the repository. Claude Code loads nothing from it and /plugin reports an error (Path not found: … (commands)).Checked against Claude Code 2.1.332.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
SQLite, Kotlin, Java, TypeScript, JavaScript, Python, Ruby, Dart
code-search, code-navigation, ast, symbol-lookup, sqlite-index, monorepo, token-savings
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Structural, AST-aware code navigation CLI for large, multi-language repositories. It builds a local SQLite index of symbols, references, imports, modules, dependencies, and inheritance so humans and agents can move through code by exact structure instead of grep-style text matches.
explore, then jump to exact definitions with symbol,
class, outline, and refs.ast-index update after the first rebuild.Languages: Kotlin, Java, Swift, Objective-C, TypeScript, JavaScript, Vue, Svelte, CSS, SCSS, Less, Rust, Zig, C#, Python, Go, C, C++, Scala, PHP, Ruby, Perl, Dart, Protocol Buffers, WSDL, XSD, BSL (1C:Enterprise), Lua, Bash, Elixir, SQL, R, Matlab, Groovy, Common Lisp, GDScript. Project type is auto-detected.
# Install
brew tap defendend/ast-index
brew install ast-index
# Build an index once per project
cd /path/to/project
ast-index rebuild
# Ask code questions
ast-index explore "payment flow"
ast-index search ViewModel
ast-index class BaseFragment
ast-index usages Repository
ast-index implementations Presenter
ast-index deps app
# Opt-in data: Git history and the symbol graph (neither runs on rebuild/update)
ast-index hotspots --collect # rank files by churn, fixes, authors
ast-index graph build # symbol-to-symbol dependency graph
ast-index graph dependents ApplicationService # who depends on it, before a change
ast-index search Service --rank proven # which match is safe to copy
Use ast-index update after edits or branch switches. Hooks can queue a
trailing-debounced refresh without losing edits that arrive during an update:
ast-index update --background --debounce-ms 500
Index-reading commands wait (with a bounded timeout) for an already queued
generation, so they do not observe stale results. In monorepos with nested
project markers, add --walk-up or AST_INDEX_WALK_UP=1 to reuse the root
index.
Guides: User guide for everyday workflow; command setup guide for install/options/examples; CodeGraph comparison for a dated, source-backed feature comparison.
Benchmarks on large Android project (~29k files, ~300k symbols):
| Command | ast-index | grep | Speedup |
|---|---|---|---|
| imports | 0.3ms | 90ms | 260x |
| dependents | 2ms | 100ms | 100x |
| deps | 3ms | 90ms | 90x |
| class | 1ms | 90ms | 90x |
| search | 11ms | 280ms | 14x |
| usages | 8ms | 90ms | 12x |
brew tap defendend/ast-index
brew install ast-index
Requires a Rust toolchain.
cargo install ast-index --locked
To build the unreleased default branch instead:
cargo install --locked --git https://github.com/defendend/Claude-ast-index-search ast-index
Both build from source. For prebuilt release binaries, use Homebrew, npm, or Winget.
winget install --id defendend.ast-index
If you have the old kotlin-index installed:
brew uninstall kotlin-index
brew untap defendend/kotlin-index
brew tap defendend/ast-index
brew install ast-index
git clone https://github.com/defendend/Claude-ast-index-search.git
cd Claude-ast-index-search
cargo build --release
# Binary: target/release/ast-index (~50 MB)
If brew install ast-index fails with merge conflict errors (<<<<<<< HEAD), reset your local tap:
cd /opt/homebrew/Library/Taps/defendend/homebrew-ast-index
git fetch origin
git reset --hard origin/main
brew install ast-index
If your repo has subdirectories with their own VCS markers (git submodules,
subtrees, nested Cargo.toml / settings.gradle), read-commands normally
stop at the nearest marker — they won't reuse a parent-level index even
if one exists. Pass --walk-up, or set AST_INDEX_WALK_UP=1, to tell
the lookup to prefer any existing parent DB over nested markers:
# once, in the root
cd /monorepo && ast-index rebuild
# later, from any subproject — reuse the root index
AST_INDEX_WALK_UP=1 ast-index search ViewModel
# or per-call:
ast-index --walk-up search ViewModel
defendend-claude-ast-index-search@cascade-code-general-misc-1 is listed by joshuarweaver/cascade-code-general-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin defendend-claude-ast-index-searchPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.