Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

status

Check pending AI attribution changes before committing.

Synopsis

whogitit status

Description

The status command shows the current state of the pending buffer, which accumulates AI attribution data during your Claude Code session. This helps you understand what will be attached to your next commit.

Examples

With Pending Changes

whogitit status

Output:

Pending AI attribution:
  Session: 7f3a-4b2c-9d1e-8a7b
  Files: 3
  Edits: 7
  Lines: 145
  Age: 2 hours ago

Run 'git commit' to finalize attribution.

No Pending Changes

whogitit status

Output:

No pending AI attribution.

Stale Pending Buffer

If the pending buffer is older than the configured threshold (analysis.max_pending_age_hours, default 24), a warning is displayed:

Pending AI attribution:
  Session: 7f3a-4b2c-9d1e-8a7b
  Files: 3
  Edits: 7
  Lines: 145
  Age: 2 days ago

⚠️  Warning: This pending buffer is stale (> 24 hours old).
   Run 'whogitit clear' if these changes are no longer relevant.

Output Details

FieldDescription
SessionThe AI session ID
FilesNumber of files with captured changes
EditsTotal number of edit operations captured
LinesApproximate lines affected
AgeHow long since the first capture

Use Cases

Pre-Commit Check

Before committing, verify what attribution data will be attached:

whogitit status
git status
git commit -m "Add new feature"

Debugging Hook Issues

If attribution isn’t being captured, check if any data is pending:

# Make an edit with Claude Code
# Then check status
whogitit status

# If empty, hooks may not be configured correctly

Clearing Stale Data

If you’ve been working but don’t want to commit the AI attribution:

whogitit status
# Shows stale pending data

whogitit clear
# Clears the pending buffer

whogitit status
# No pending AI attribution.

clear

Discard pending changes without committing:

whogitit clear

This removes the .whogitit-pending.json file, discarding all captured attribution data for the current session.

init

If status shows issues, reinitialize:

whogitit init

This reinstalls hooks and reconfigures git.

Notes

  • The pending buffer is stored in .whogitit-pending.json in your repository root
  • This file is typically in .gitignore and should not be committed
  • The pending buffer is automatically cleared after a successful commit

See Also