Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

PolyglotPiranha review

Free#11 of 22 in Code Refactoring Tools

A free, polyglot refactoring engine for systematic feature-flag cleanup.

7.5/10Editor score
PolyglotPiranha7.5 View PolyglotPiranha

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

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.

PolyglotPiranha pros and cons

  • 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

PolyglotPiranha fact sheet, pricing and score →

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