Skip to content
SPECIFICTION
Get listed

PolyglotPiranha vs Sourcery

PolyglotPiranha

github.com

Sourcery

sourcery.ai

Side by side

FigurePolyglotPiranhaSourcery
Price from—$12/mo
Free plan—Yes
Free trial—Yes
Open source——
Web—Yes
Windows—Yes
macOSYesYes
LinuxYesYes
iOSYes—
APIYesYes
Self-hostedYesYes
Plans published04
Spec score · Code Refactoring Tools7.2 (#19)8.6 (#3)
IntegrationsThe Python wrapper is described as suitable for incorporation into pipelines; the documentation does not name specific CI or feature flag vendor integrations.GitHub, GitLab, GitHub Enterprise Server, self-hosted GitLab, VS Code, Cursor, Windsurf, JetBrains, Jira
SupportUsers with questions or bug reports are directed to open a GitHub issue.Support is offered through in-app chat and email, with documentation covering setup, reviews, scanning, IDEs, administration, API, and compliance.

Plans

PolyglotPiranha

No plans published.

PolyglotPiranha pricing →

Sourcery

  • Open SourceFree
  • Pro$12 a month
  • Team$24 a month
  • EnterprisePriced on request

Sourcery pricing →

In their own words

PolyglotPiranha

PolyglotPiranha is a free, multilingual structural search-and-replace engine for code cleanup. It can refactor stale feature-flag code when given a flag name, expected behavior, and configured feature-flag API rules. Rules can form graphs, and built-in language-specific cleanups include simplifying boolean expressions and if-else statements, removing empty declarations and files, and inlining local variables. Queries and filters may use Tree-sitter queries, regular expressions, or Piranha’s concrete syntax. The project is available as a Python library and command-line tool, with the Python API wrapping the CLI. The CLI lists Java, Swift, Python, Kotlin, Go, TSX, and TypeScript as target languages. Dry runs prevent in-place rewriting and produce summaries of matches, rewrites, and resulting file content. API configuration requires code path, configuration path, target language, and substitutions, with optional rules.toml and edges.toml files. Python installation uses pip; the CLI can be built with Rust and Cargo or obtained from releases. Piranha is Apache 2.0, provided as is, and not an official Uber product.

Visit github.com

Sourcery

Sourcery reviews pull requests with AI, returning a summary, review comments and suggested fixes within minutes. Users can apply a suggestion as a change and commit it to the pull request. Security checks cover committed secrets, static-analysis vulnerabilities, infrastructure-as-code misconfigurations, dependencies and licenses. The extension works in VS Code, Cursor, Windsurf and JetBrains editors, and Sourcery supports GitHub, GitLab, GitHub Enterprise Server and self-hosted GitLab. Open Source checks security on every pull request; Open Source and Pro also scan twice a week, while Team includes nightly scans. The public REST API, for listing, reading, counting and bulk-updating security findings and groups, is a Team feature. Open Source is free; Pro is $12 a month billed annually, or $15 per developer per month billed monthly. Team is $24 a month billed annually, or $30 per developer per month billed monthly. A 14-day Team-feature trial is available organization-wide after installation, without a credit card. Sourcery says it does not retain customer code after reviews or use it to train models.

Visit sourcery.ai