Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By defendend
Perform fast structural code searches for symbols, classes, usages, implementations, hierarchies, and dependencies in polyglot projects spanning Android/Kotlin/Java, iOS/Swift/ObjC, web TypeScript/JavaScript (React/Vue/Svelte), Rust, Ruby/Rails, C#/.NET, Python, Go, and more via ast-index CLI. Use one-command initializers to configure Claude settings, rules, and docs for your stack.
npx claudepluginhub defendend/claude-ast-index-search --plugin ast-indexInitialize ast-index for Android/Kotlin/Java project - configures .claude/settings.json, rules, and CLAUDE.md
Initialize ast-index for C#/.NET project - configures .claude/settings.json, rules, and CLAUDE.md
Initialize ast-index for iOS/Swift/ObjC project - configures .claude/settings.json, rules, and CLAUDE.md
Initialize ast-index for Ruby/Rails project - configures .claude/settings.json, rules, and CLAUDE.md
Initialize ast-index for Rust project - configures .claude/settings.json, rules, and CLAUDE.md
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Fast code search for Android/Kotlin/Java, iOS/Swift/ObjC, Dart/Flutter, TypeScript/JavaScript, Rust, Ruby, C#, PHP, Python, Go, Perl, C++, Protocol Buffers, and WSDL/XSD projects
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search.
Tree-sitter backed code indexing and retrieval for Claude Code. Precise function extraction, cross-file callers, test discovery, and scope-aware grep.
Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.
Scala code intelligence for coding agents — fast symbol search, find definitions, and find references
Local-first hybrid semantic code search with dependency graphs and cross-repo search. Powered by CocoIndex, Tree-sitter, pgvector, and Ollama.
Fast code search for Android/Kotlin/Java, iOS/Swift/ObjC, Dart/Flutter, TypeScript/JavaScript, Rust, Ruby, C#, PHP, Python, Go, Perl, C++, Protocol Buffers, and WSDL/XSD projects
Fast code search CLI for 30 programming languages. Native Rust implementation.
| Platform | Languages | File Extensions |
|---|---|---|
| Android | Kotlin, Java | .kt, .java |
| iOS | Swift, Objective-C | .swift, .m, .h |
| Web/Frontend | TypeScript, JavaScript | .ts, .tsx, .js, .jsx, .mjs, .cjs, .vue, .svelte |
| Systems | Rust | .rs |
| Backend | C#, Python, Go, C++, Scala | .cs, .py, .go, .cpp, .cc, .c, .hpp, .scala, .sc |
| Backend | PHP | .php, .phtml |
| Scripting | Ruby, Perl | .rb, .pm, .pl, .t |
| Mobile | Dart/Flutter | .dart |
| Schema | Protocol Buffers, WSDL/XSD | .proto, .wsdl, .xsd |
| Enterprise | BSL (1C:Enterprise) | .bsl, .os |
| Scripting | Lua, Bash | .lua, .sh, .bash, .zsh |
| Functional | Elixir | .ex, .exs |
| Data | SQL, R | .sql, .r, .R |
| Scientific | Matlab | .m |
| JVM | Groovy | .groovy, .gradle |
| Functional | Common Lisp | .lisp, .lsp, .cl, .asd |
| Game | GDScript (Godot) | .gd |
Project type is auto-detected.
Setup guide for your project — install, commands, and usage examples.
brew tap defendend/ast-index
brew install ast-index
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 (~44 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
cd /path/to/project
# Build index
ast-index rebuild
# Search
ast-index search ViewModel
ast-index class BaseFragment
ast-index implementations Presenter
ast-index usages Repository
# Option 1: via marketplace
claude plugin marketplace add defendend/Claude-ast-index-search
claude plugin install ast-index
# Option 2: if ast-index is already installed
ast-index install-claude-plugin
Restart Claude Code to activate. Update: brew upgrade ast-index && claude plugin update ast-index. Uninstall: claude plugin uninstall ast-index.
gemini skills install https://github.com/defendend/Claude-ast-index-search.git --path plugin/skills/ast-index
Add to .cursor/rules or project rules:
Use `ast-index` CLI for fast code search. Run `ast-index rebuild` before first use.
Available commands: search, class, implementations, usages, callers, call-tree, deps, outline, deprecated.
ast-index todo [PATTERN] # TODO/FIXME/HACK comments
ast-index callers <FUNCTION> # Function call sites
ast-index provides <TYPE> # @Provides/@Binds for type
ast-index suspend [QUERY] # Suspend functions
ast-index composables [QUERY] # @Composable functions
ast-index deprecated [QUERY] # @Deprecated items
ast-index suppress [QUERY] # @Suppress annotations
ast-index inject <TYPE> # @Inject points
ast-index annotations <ANN> # Classes with annotation
ast-index deeplinks [QUERY] # Deeplinks
ast-index extensions <TYPE> # Extension functions
ast-index flows [QUERY] # Flow/StateFlow/SharedFlow
ast-index previews [QUERY] # @Preview functions
ast-index usages <SYMBOL> # Symbol usages (falls back to grep)
ast-index search <QUERY> # Universal search
ast-index file <PATTERN> # Find files
ast-index symbol <NAME> # Find symbols
ast-index class <NAME> # Find classes/interfaces
ast-index symbol <NAME> # Find any symbol by name
ast-index implementations <PARENT> # Find implementations
ast-index hierarchy <CLASS> # Class hierarchy tree
ast-index usages <SYMBOL> # Symbol usages (indexed, ~8ms)