PolyglotPiranha
PolyglotPiranha: A free, polyglot refactoring engine for systematic feature-flag cleanup. Ranked #11 of 22 in Code Refactoring Tools by our editors (7.5/10); pricing: Free plan; best for free polyglot feature-flag cleanup.
At a glance
- Editor score7.5 / 10
- PricingFree plan
- Best forFree polyglot feature-flag cleanup
- Free planYes
- Paid fromFree
- Refactoring scopeProject
- Facts checked22 Sep 2026

Where it wins
- Supports Java, Swift, Python, Kotlin, Go, TypeScript, and TSX
- Combines chained rule graphs with Tree-sitter and syntax matching
- Offers dry runs, summaries, a CLI, and a Python API
Where it doesn't
- No AI assistance for generating or explaining refactoring rules
- No verified integrations beyond its CLI and Python API
- Rule configuration requires a structured, manual approach
Our verdict on PolyglotPiranha
PolyglotPiranha is an open-source structural search-and-replace engine for developers maintaining codebases across several languages. Its strongest fit is teams handling stale feature flags, repeated transformations, or other repository-wide cleanup that can be expressed as explicit rules. The project supports Java, Swift, Python, Kotlin, Go, TypeScript, and TSX, with project-level scope and batch refactoring. It is available on macOS and Linux, and can also be used through its API-oriented interfaces.
The product’s main depth is its rule system. Developers can define structural search-and-replace operations with Tree-sitter queries, regular expressions, and concrete-syntax matching. Chained and interdependent rule graphs allow one transformation to lead into another, which suits feature-flag removal and related cleanup sequences. Built-in language-specific cleanup rules, comment cleanup, empty-file deletion, dry runs, and code transformation summaries add control around changes before and after execution. The free, open-source model makes these capabilities accessible without a paid tier structure.
PolyglotPiranha is a focused choice for engineering teams that want deterministic, scriptable refactoring rather than AI-assisted suggestions. The command-line interface supports repeatable workflows, while the Python API provides another way to integrate transformations into existing developer processes. Its narrower ecosystem fit and lack of AI assistance make it less suitable for buyers seeking broad integrations, interactive guidance, or generated refactoring plans. Choose it when explicit rules, multi-language coverage, and feature-flag cleanup matter most; choose an alternative when assisted discovery or a larger integration catalog is the priority.
Your product? Our editors can test PolyglotPiranha in depth and publish a review, labelled as paid · from $149/mo →
PolyglotPiranha pricing
PolyglotPiranha fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Supported languages | Java, Swift, Python, Kotlin, Go, TypeScript, TSX |
| Refactoring scope | Project |
| Batch refactoring | Yes |
| AI assistance | No |
| AST-based analysis | Yes |
| Deployment | Desktop |
| Deployment | Desktop |
| Platforms | macOS, Linux |
| Support | Community, Docs |
| Built for | Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 22 Sep 2026 |
Alternatives to PolyglotPiranha
- ReSharperA deep Visual Studio refactoring suite with broad analysis and AI assistance.9.2
- ast-grepA free, open-source choice for structural searches, codemods, and custom linting.8.7
- CodeRushA broad Visual Studio refactoring toolkit with a free plan and Windows-only coverage.8.5
See all PolyglotPiranha alternatives →
Used PolyglotPiranha? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used PolyglotPiranha for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
PolyglotPiranha is listed in our Code Refactoring Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/polyglotpiranha/"><img src="https://www.itechguides.com/best/badge/polyglotpiranha.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


