A declarative query language for searching, linting, and modifying source code at scale.
GritQL is easy to set up with strong trust signals. Check agent compatibility and use-case fit before adding it to your workflow.
gh repo view getgrit/gritql --webOpen the official repository or website.
Check the README for package manager, auth, and platform requirements.
Try it in a small test task inside your agent workflow.
GritQL lets you search and rewrite code using simple patterns, without needing to understand complex AST details. It's like grep but smarter, and can automatically fix code across large repositories. You can start with any code snippet as a query and scale to millions of lines.
GritQL is a declarative query language designed for searching and modifying source code. It allows developers to write patterns that look like code snippets, making it easy to find and transform code without deep AST knowledge. Built in Rust with query optimization, it scales to repositories with over 10 million lines. GritQL includes a module system for reusing over 200 standard patterns from the Grit standard library, and supports multiple target languages including JavaScript/TypeScript, Python, JSON, Java, Terraform, Solidity, CSS, Markdown, YAML, Rust, Go, and SQL. It can be used as a CLI tool, integrated into CI pipelines for custom linting, or run in the Grit Studio playground. GritQL is ideal for large-scale refactoring, migration, and enforcing code standards.
Strong trust signals; still review the README and permissions before production use.
Last commit was about 6 days ago.
4520 GitHub stars indicate community interest.
137 open issues signal maintenance load.
MIT license detected.
Search and replace deprecated API calls across a large codebase
Enforce custom linting rules in CI pipelines
Automate large-scale refactoring like migrating from one library to another
Find and fix security vulnerabilities by pattern matching
Standardize code style across multiple projects
Patterns can modify code; always review changes before applying
Running on untrusted repositories may execute patterns that could introduce vulnerabilities
4,520
Stars
122
Forks
137
Issues
MIT
License
Anthropic's official CLI agent for coding. Claude-powered terminal agent that reads, writes, and refactors entire codebases.
The leading open-source AI code assistant for VS Code and JetBrains. Connect any model, customize your workflow.
Build stateful, multi-actor AI agents with graph-based workflows. From LangChain, the most popular LLM framework.
2 security/trust notes recorded.
Setup difficulty is 2/5.