shipwithjev

Catalog / Tools & apps

0328GitHub

commit-miner

Classifies Git diffs and commit messages into change types and candidate security-fix/CWE labels for inspection.

devanshbatham/commit-minerREADME ↗
# commit-miner

Classify Git commit diffs and messages with Jev. Bug fixes, security fixes/CWEs, and change types.

## Install

Requires Rust/Cargo and Git.

```bash
git clone https://github.com/devanshbatham/commit-miner.git
cd commit-miner
cargo install --path . --locked
export PATH="$HOME/.cargo/bin:$PATH"
export TYPESAFE_API_KEY='your-key'
```

## Use

```bash
commit-miner scan . -n 500
commit-miner scan https://github.com/owner/repo -n 500
commit-miner scan . --commit SHA_OR_REF
commit-miner scan . --since 2026-01-01 --until 2026-03-31 -o report.html
commit-miner scan . -n 500 -o report.csv
```

| Argument | Meaning |
| --- | --- |
| `-n, --commits N` | Latest N; default 250, or all matches with dates |
| `--commit SHA_OR_REF` | Exactly one commit; cannot combine with count/dates |
| `--since / --until YYYY-MM-DD` | Inclusive UTC committer dates |
| `-w, --workers N` | Default and maximum 8 |
| `-f, --format html\|csv` | Report format; stdout if no output path |
| `-o, --output PATH` | Save report; infer format from extension |
| `--only security,change_performance` | Filter displayed classifications |
| `--cwe 79,89` | Filter by CWE |
| `--plain` | Disable color and animation |

`commit-miner scan --help` lists all arguments. `commit-miner categories` lists classifications/CWEs. Filters preserve the full saved scan. Managed GitHub clones refresh automatically; local directories use their current HEAD.

New scans show estimated Jev cost from reported token usage and known model pricing. [Calculation details](docs/JEV_PROTOCOL.md#cost).

## Saved scans

```bash
commit-miner list
commit-miner show SCAN_ID --only security
commit-miner export SCAN_ID -o report.html
```

Saved locally (`~/.local/share/commit-miner` on Linux); override with `--data-dir PATH`. Ctrl+C reta

Also filed under Tools & apps

  1. 0573

    Support chat: agent offered a human escalation path

    A frustrated customer hits a bot loop twice; the judge checks whether a human handoff was offered.

    everyai-com · Tools & apps

  2. 0572

    Subscription cancel: effective date is explicit

    An agent cancels a subscription; the judge checks the exact date the cancellation takes effect.

    everyai-com · Tools & apps

  3. 0571

    Sales quote: numbers match the official price list

    An agent quotes $29/seat against a price list; the judge checks the quote matches exactly.

    everyai-com · Tools & apps

  4. 0570

    Refund chat: agent stated the amount before issuing it

    A support agent issues a $42.50 refund; the judge checks the exact amount was stated before the refund was confirmed.

    everyai-com · Tools & apps