Add review delta tool to measure human review effort

New show-review-delta.sh compares AI-edited files (from impact log)
against git commits to show overlap percentage. High overlap means
most committed code was AI-generated with minimal human review.
Completes Phase 2 of the quantify-social-costs plan.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
claude 2026-03-16 15:12:49 +00:00
parent ad06b12e50
commit eaf0a6cbeb
5 changed files with 252 additions and 0 deletions

View file

@ -38,6 +38,8 @@ Requirements: `bash`, `jq`, `python3`.
.claude/hooks/show-impact.sh # per-session details
.claude/hooks/show-impact.sh <session_id> # specific session
.claude/hooks/show-aggregate.sh # portfolio-level dashboard
.claude/hooks/show-review-delta.sh # AI vs human code overlap
.claude/hooks/show-review-delta.sh 20 # analyze last 20 commits
```
## How it works
@ -94,6 +96,7 @@ impact-toolkit/
hooks/pre-compact-snapshot.sh # PreCompact hook
hooks/show-impact.sh # per-session log viewer
hooks/show-aggregate.sh # portfolio-level dashboard
hooks/show-review-delta.sh # AI vs human code overlap
README.md # this file
```