whogitit provides a comprehensive CLI for viewing and managing AI attribution data.
Command Description
blameShow AI attribution for each line of a file
showView attribution summary for a commit
promptView the prompt that generated specific lines
summaryGenerate summary for a commit range (PRs)
statusCheck pending attribution changes
Command Description
annotationsGenerate GitHub Checks API annotations
pagerAnnotate git diff output with AI markers
Command Description
exportExport attribution data as JSON/CSV
retentionManage data retention policies
auditView the audit log
clearDiscard pending changes without committing
Command Description
setupConfigure Claude Code integration (one-time)
doctorVerify whogitit configuration
initInitialize whogitit in a repository
copy-notesCopy attribution between commits
Command Description
redact-testTest redaction patterns against text/files
# See AI attribution for a file
whogitit blame src/main.rs
# Show only AI-generated lines
whogitit blame src/main.rs --ai-only
# View commit summary
whogitit show HEAD
# Find prompt that generated a line
whogitit prompt src/main.rs:42
# Summarize a PR
whogitit summary --base main --format markdown
# Generate GitHub Checks annotations for CI
whogitit annotations --base main --head HEAD
# Use as git pager for AI-annotated diffs
git config --global core.pager "whogitit pager"
git diff | whogitit pager
# Create git aliases
git config --global alias.ai-diff '!git diff | whogitit pager --no-pager'
# Check pending changes
whogitit status
# Clear pending without committing
whogitit clear
# Export all attribution data
whogitit export -o attribution.json
# Preview retention policy
whogitit retention preview
# One-time global setup (configures Claude Code)
whogitit setup
# Verify all configuration
whogitit doctor
# Initialize repository hooks
whogitit init
# Initialize even if global setup incomplete
whogitit init --force
# Copy attribution (after cherry-pick or manual rebase recovery)
whogitit copy-notes <old-sha> <new-sha>
whogitit copy-notes <old-sha> <new-sha> --dry-run
# Test redaction patterns
whogitit redact-test --text "api_key=secret123"
# List available patterns
whogitit redact-test --list-patterns
# Show what would be redacted
whogitit redact-test --file .env --matches-only
All commands support these options:
Option Description
--helpShow help for any command
--versionShow version information
Many commands support multiple output formats:
Format Flag Use Case
Pretty (default) Human-readable terminal output
JSON --format jsonMachine parsing, scripts
Markdown --format markdownDocumentation, PR comments
CSV --format csvSpreadsheets, data analysis
Code Meaning
0 Success
1 General error
2 Invalid arguments
Explore each command in detail:
setup - Global configuration
doctor - Configuration check
init - Repository setup
copy-notes - Copy attribution between commits