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

@ -48,9 +48,11 @@ mkdir -p "$SETTINGS_DIR/impact"
cp "$SCRIPT_DIR/hooks/pre-compact-snapshot.sh" "$HOOKS_DIR/"
cp "$SCRIPT_DIR/hooks/show-impact.sh" "$HOOKS_DIR/"
cp "$SCRIPT_DIR/hooks/show-aggregate.sh" "$HOOKS_DIR/"
cp "$SCRIPT_DIR/hooks/show-review-delta.sh" "$HOOKS_DIR/"
chmod +x "$HOOKS_DIR/pre-compact-snapshot.sh"
chmod +x "$HOOKS_DIR/show-impact.sh"
chmod +x "$HOOKS_DIR/show-aggregate.sh"
chmod +x "$HOOKS_DIR/show-review-delta.sh"
echo "Copied hook scripts to $HOOKS_DIR"