Skip to main content

CommitClinic

CommitClinic is a repository migration triage CLI. It diagnoses Git repositories (and legacy repos once mirrored to Git), scores migration readiness, and plans safe treatment actions.

Vibe

CommitClinic uses a medical triage voice:

  • Intake: collect repository baseline.
  • Diagnosis: identify risk findings.
  • Severity: assign A-F readiness grade.
  • Treatment Plan: propose cleanup actions.
  • Discharge: final migration readiness status.

Install

macOS (Homebrew — recommended):

brew tap CptPlastic/commitclinic https://github.com/Cptplastic/commitclinic
brew install commitclinic

pip:

pip install commitclinic

pipx (isolated install):

pipx install commitclinic

From source:

git clone https://github.com/your-org/commitclinic
cd commitclinic
pipx install .

Install helper tools (BFG + TruffleHog):

commitclinic install-tools

Quick Start

  1. Run intake + diagnosis:
commitclinic intake --repo /path/to/repo --json-out reports/findings.json --csv-out reports/findings.csv
  1. Print scoring summary:
commitclinic diagnose --input reports/findings.json

Core Commands

  • commitclinic intake: scan a repository and generate findings.
  • commitclinic diagnose: compute score and grade from findings JSON.
  • commitclinic treatment-plan: generate remediation suggestions.
  • commitclinic treat: execute approved history cleanup actions.
  • commitclinic install-tools: install optional helper tools (such as BFG).
  • commitclinic discharge: produce final readiness summary.
  • commitclinic batch: scan multiple repositories from a local paths file.
  • commitclinic scan-list: clone and scan repos from a JSON URL list.
  • commitclinic ui: launch an interactive terminal dashboard.

commitclinic treat is destructive. It requires --approve and should be run only after backup.

BFG Support

CommitClinic supports BFG as a treatment backend.

  1. Install BFG jar via CommitClinic:
commitclinic install-tools --with-bfg
  1. Run treatment with BFG:
commitclinic treat --repo /path/to/repo --backend bfg --strip-path secrets.txt --approve

Notes:

  • BFG deletes by filename pattern; exact path deletions are best handled with git-filter-repo.
  • You can set BFG_JAR=/path/to/bfg-1.14.0.jar in CI/local environments to pin the jar.

Terminal TUI

Run the interactive terminal dashboard:

commitclinic ui --repo /path/to/repo

Shorter launch options also work:

commitclinic ui
commitclinic tui
commitclinic dashboard

If --repo is omitted, CommitClinic uses the current directory.

Keyboard controls:

  • i: run intake
  • d: refresh diagnosis
  • p: preview treatment plan
  • w: write report JSON to temp directory
  • j/k or arrow keys: move selected finding
  • t: run treatment for selected finding path (prompts for y confirmation)
  • q: quit

The TUI is intended for local triage sessions. Use standard non-interactive commands in CI and GitHub Actions.

TUI treatment notes:

  • The t action uses git-filter-repo for selected finding paths.
  • If selected finding has no path location, treatment is blocked.

TruffleHog Integration

If trufflehog is installed and available in PATH, CommitClinic runs it automatically during intake. If not installed, CommitClinic logs a non-blocking warning finding so you can still run a full pipeline.

Scanning a List of Remote Repos

Create a JSON file with the repos you want to audit:

{
  "repos": [
    { "url": "https://github.com/org/repo-one", "name": "repo-one" },
    { "url": "https://github.com/org/repo-two", "name": "repo-two" }
  ]
}

A flat array of URL strings also works:

["https://github.com/org/repo-one", "https://github.com/org/repo-two"]

Run the scan:

commitclinic scan-list repos.json --work-dir ~/scratch/clones

Results are written to repos.results.json (alongside the list file) after each repo, so if the process is interrupted mid-list you don't lose progress. Re-running skips repos that are already in the results file. Use --refresh to re-scan everything.

# Custom output path:
commitclinic scan-list repos.json --out results/audit.json

# Exit 2 if any repo has blocking findings (useful in CI):
commitclinic scan-list repos.json --strict

# Re-scan all, even previously scanned:
commitclinic scan-list repos.json --refresh

GitHub Actions

Starter workflows for CI are available in the source repository.

Metadata

Release files for commitclinic 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for commitclinic 0.1.7
File Size Uploaded Provenance Actions
commitclinic-0.1.7.tar.gz 29.7 kB With provenance Details for commitclinic-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for commitclinic 0.1.7
File Interpreter ABI Platform Actions
commitclinic-0.1.7-py3-none-any.whl Python 3 none any Details for commitclinic-0.1.7-py3-none-any.whl

Total release size: 50.8 kB

Release files / commitclinic-0.1.7.tar.gz

Download URL commitclinic-0.1.7.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f1cbd7fe27db9dad3ac28069dba64b2fe749168acd74c3443a3a2db3ee5d7148
BLAKE2b-256 checksum
How to use checksums
cabfcf9711d1d01f295b02b8b014b888498c9b1402360a81db38181eae5c009d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.

Transparency log

Release files / commitclinic-0.1.7-py3-none-any.whl

Download URL commitclinic-0.1.7-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53720da90a8adb4795afade2a8cbb9739d7a44252fc72b67e11656c2ec5fb9fc
BLAKE2b-256 checksum
How to use checksums
373becc1bba2e16baa2429bcdf17b2ac0c52f1a5ef0a113f1bc237f6a4c3058d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.

Transparency log

Security for commitclinic 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for commitclinic-0.1.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page