# erikbern/git-of-theseus

Analyze how a Git repo grows over time

Repository: https://github.com/erikbern/git-of-theseus
Canonical: https://ross.abutalabs.com/products/git-of-theseus
Homepage: https://erikbern.com/2016/12/05/the-half-life-of-code.html
Language: Python
License: Apache-2.0
License Family: permissive
Topics: author-statistics, git, repository-management, python
Last push: 2023-11-25T17:04:17+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3641, "days_push": 1012, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2957, forks 103 (observed 2026-08-28T04:07:32.222911+00:00)

## What it is
A set of Python CLI scripts that analyze Git repository history to visualize how code grows over time. It produces stack plots of code cohorts by year, author contribution curves, and Kaplan-Meier survival curves showing how long lines of code persist.

## Use cases
- analyze how a git repo grows over time
- plot what percentage of code survives after x years
- visualize code cohorts by year added in a repository
- see what fraction of code was contributed by top authors
- compare code churn across multiple repositories
- estimate the half-life of code in a codebase

## When to choose
- you want historical growth and code-survival statistics for a Git repository
- you need publication-quality plots of author contributions or code cohorts
- you want to study long-term codebase evolution across several repos

## When to avoid
- you need real-time or CI code-quality metrics rather than historical analysis
- your repository is very large and analysis runtime is a concern
- you need actively developed tooling with frequent updates

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: data-visualization, analytics, developer-tools
- domain: developer-tools, version-control, data-visualization, analytics
- platform: python, cli, cross-platform
- tags: git-analysis, code-survival, git-blame, cohorts, kaplan-meier, repository-statistics

## Member repositories
- erikbern/git-of-theseus (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:32.222911+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-30T07:32:12.567999+00:00, confidence not recorded.
  - readme: https://github.com/erikbern/git-of-theseus (fetched 2026-08-28T04:07:32.222911+00:00, sha 78a78396f83f)
  - homepage: https://erikbern.com/2016/12/05/the-half-life-of-code.html (fetched 2026-08-29T09:47:35.790853+00:00, sha 1958f249f80b)
  - site_page: https://erikbern.com/about (fetched 2026-08-29T09:47:35.800217+00:00, sha 57e205888ae3)
  - registry_pypi: https://pypi.org/pypi/git-of-theseus/json (fetched 2026-08-29T09:47:35.801960+00:00, sha 19d54eb28115)
- Data as of 2026-08-30T08:39:29.467469+00:00.
