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 pleaseai Verified Orgv1.3.3MITIn 1 marketplace
Searches codebases by code structure instead of plain text, by writing ast-grep rules from natural language requests. A SessionStart hook runs at every session start, and it says the plugin installs ast-grep's agent skill by Herrington Darkholme.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
ast-grep, structural-search, code-search, pattern-matching, refactoring, syntax-tree, ast
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Guide for writing ast-grep rules to perform structural code search and analysis.
For everyday development, you can instruct your AI agent to use ast-grep for code searching and analysis. This method is straightforward but requires a model with up-to-date knowledge of ast-grep to be effective. If the model is not familiar with the tool, it may not utilize it as instructed.
You can set a system-level prompt for your AI agent to prioritize ast-grep for syntax-aware searches. Here is an example prompt comes from this social post.
Example Prompt:
You are operating in an environment where ast-grep is installed. For any code search that requires understanding of syntax or code structure, you should default to using ast-grep --lang [language] -p ''. Adjust the --lang flag as needed for the specific programming language. Avoid using text-only search tools unless a plain-text search is explicitly requested.
This approach is best suited for general code queries and explorations within your projects.
/plugin marketplace add pleaseai/claude-code-plugins
/plugin install ast-grep@pleaseai
This plugin installs the ast-grep agent skill by Herrington Darkholme.
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.
Plugins from other owners that cover similar ground
npx claudepluginhub pleaseai/claude-code-plugins --plugin ast-grep