Grit
Declarative code search and transformation tool for migrations, linting, and automated fixes.
- ai agent
- Write code
- Review code
Overview
Grit provides GritQL, a declarative query language for searching and modifying source code. Code snippets can form queries, and patterns can be reused through a module system. The tool supports transformations across languages and formats, with auto-fix rules for migrations, custom linting, dependency upgrades, and code quality work.
Key features
- Declarative code search with GritQL
- Source-code transformation
- Reusable pattern modules
- Auto-fix rules
- Support for multiple programming languages
- Query optimization for large repositories
Use cases
Alternatives
Last updated 2026-09-16