Ross ROSS = Recommend OSS · open-source software intelligence for agents

uber/piranha

A tool for refactoring code related to feature flag APIs observed · 2026-08-28

github.com/uber/piranha · Rust · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

81/100

  • Activity 75
  • Release rhythm 77
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 3
  • age_days: 2827
  • days_rel: 153
  • days_push: 153
  • n_releases_24m: 16

Full methodology

Adoption not part of the score

2472 stars · 210 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

PolyglotPiranha is a lightweight code transformation toolset from Uber for automating large-scale code changes, primarily cleaning up stale feature flag code. It works via concrete-syntax/AST-based rewrite rules and is available as a Python library (polyglot-piranha) or a Rust CLI.

Use cases

  • remove stale feature flag code from a codebase
  • automate large-scale code refactoring across many files
  • replace feature toggle conditionals with constant values
  • clean up dead code after flag cleanup
  • write custom rewrite rules for Java, Swift, or JavaScript

When to choose

  • you need to delete or simplify code guarded by feature flags at scale
  • you want rule-based, syntax-aware automated code edits in Java, Swift, Objective-C, or JavaScript
  • you want a scriptable Python API plus CLI for code transformations

When to avoid

  • you need languages beyond those Uber supports (check forks for extras)
  • you want a general-purpose IDE refactoring tool with interactive previews
  • your transformations require full semantic analysis rather than syntax-level matching

Facets

cli-tool · maturity active

developer-tools parser workflow-automation developer-tools programming-languages cli python rust feature-flags code-refactoring stale-flag-cleanup ast-transformation static-analysis polyglot automation linux macos

1 source

Member repositories

RepositoryRoleHealth v2
uber/piranhamain81

For agents

markdown · JSON · MCP: product_card(name="uber/piranha")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem