whatdiditdo
v0.2.0
Published
See what your AI coding agent actually did. One command after any AI session.
Maintainers
Readme
whatdiditdo
You let the AI cook. Now find out what it actually did.
One command to see everything your AI coding agent changed. Works after any AI coding session — Cursor, Copilot, Aider, Windsurf, and more.
Quick Start
Run in any git repo after an AI session:
npx whatdiditdoThat's it. No install needed.
Development
npx whatdiditdoThat's it. Run it in any git repo after an AI session.
What you get
- Files changed — added, modified, deleted with line counts
- Stats — total lines added/removed, new dependencies
- AI summary — plain-english explanation of what happened (AI-powered)
- Security flags — catches hardcoded API keys, modified .env files, committed secrets
- Quick share — copy-paste one-liner for Slack/Discord
- Emoji summary — compact one-line recap printed after every run
Auto-generate PR descriptions
The killer feature. After an AI session:
npx whatdiditdo --prGenerates a ready-to-paste PR title and body with:
- Summary of changes
- File change table
- New dependencies listed
- Security warnings
- Test plan checklist
Pipe it: npx whatdiditdo --pr --no-ai | pbcopy
Flags
| Flag | What it does |
|------|-------------|
| npx whatdiditdo --no-ai | Skip AI summary, just stats |
| npx whatdiditdo --pr | Generate a PR title and description |
| npx whatdiditdo --md | Save markdown report |
| npx whatdiditdo --last N | Review the last N commits |
| npx whatdiditdo --json | Machine-readable JSON output |
| npx whatdiditdo --hook | Install post-commit git hook |
| npx whatdiditdo --unhook | Remove post-commit git hook |
| npx whatdiditdo --undo | Revert AI changes |
| npx whatdiditdo --web | Open HTML report in browser |
| npx whatdiditdo --blame-agent | Detect which AI tool made the changes |
| npx whatdiditdo --notify <url> | Send results to a webhook (Slack, Discord, or generic) |
Review past commits
# See what happened in the last 3 commits
npx whatdiditdo --last 3Quick share
Every run prints a one-line emoji summary you can paste into Slack or Discord:
📊 4 files · +120 -30 · 2 new depsSecurity scanning
Automatically flags:
- Hardcoded API keys and tokens
- Modified
.envfiles - Private keys (RSA, etc.)
- Credentials in URLs
Auto-run after every commit
Install a git hook so whatdiditdo runs automatically after every commit:
npx whatdiditdo --hookTo remove it:
npx whatdiditdo --unhookUndo AI changes
Review what changed and selectively revert:
npx whatdiditdo --undoLists all changed files with a preview, then lets you revert individual files or the entire last commit.
HTML report
Open a styled HTML report in your browser:
npx whatdiditdo --webIncludes diffs, file lists, security flags, and AI summary in a dark-themed dashboard.
Blame agent
Detect which AI tool made the changes:
npx whatdiditdo --blame-agentChecks commit messages, tool-specific config files, and git settings to identify the agent (Cursor, Copilot, Aider, Windsurf, etc.).
Webhook notifications
Send results to Slack, Discord, or any webhook:
npx whatdiditdo --notify https://hooks.slack.com/services/...
npx whatdiditdo --notify https://discord.com/api/webhooks/...Auto-detects the platform and formats the payload accordingly. For unknown URLs, sends a plain JSON summary.
Requirements
- Node.js 18+
- Git
- AI CLI — optional, only needed for AI summary
Development
git clone https://github.com/peaktwilight/whatdiditdo
cd whatdiditdo
npm install
npm run buildFull disclosure
This tool was vibe-coded by an AI agent. We used whatdiditdo to audit its own creation. It's turtles all the way down.
License
MIT
