# YelpArchive/undebt

A fast, straightforward, reliable tool for performing massive, automated code refactoring

Repository: https://github.com/YelpArchive/undebt
Canonical: https://ross.abutalabs.com/products/undebt
Language: Python
License: NOASSERTION
License Family: other
Archived: true
Last push: 2021-04-05T13:44:46+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3691, "days_push": 1976, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1624, forks 57 (observed 2026-08-28T04:05:12.724359+00:00)

## What it is
Undebt is a Python-based command-line tool for performing massive, automated code refactoring across an entire codebase. Users define find-and-replace rules as pattern files with a grammar and replace function, which Undebt applies to source files.

## Use cases
- refactor millions of lines of code automatically
- convert old-style Python classes to new-style classes
- apply complex find-and-replace rules across a codebase
- automate repetitive code migrations
- rewrite deprecated API usages project-wide

## When to choose
- you need to apply a consistent, complex transformation across a large codebase
- you want to define rewrite rules in plain Python rather than regex
- you are doing one-off large-scale code migrations

## When to avoid
- you need simple regex find-and-replace that your editor already handles
- you need actively maintained tooling with recent updates
- you need language-agnostic refactoring with official support for non-Python languages

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: parser, developer-tools, cli
- domain: developer-tools, programming-languages
- platform: python, cli, cross-platform
- tags: code-refactoring, find-and-replace, automated-code-changes, pattern-based-rewriting, automation

## Member repositories
- YelpArchive/undebt (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:12.724359+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:48:37.914557+00:00, confidence not recorded.
  - readme: https://github.com/YelpArchive/undebt (fetched 2026-08-28T04:05:12.724359+00:00, sha e7ec8c443a93)
- Data as of 2026-08-30T08:39:29.467469+00:00.
