Who it is forA developer who has found one bug and suspects the same mistake exists in other code paths that touch the same data.
The problemPatching one spot leaves the same pattern in neighboring code, and the lesson is lost in the next session.
The outcomeA reproduction, the bug class named, every same-pattern hit in scope fixed or recorded, and a new check that catches the class.
What you need first
- Claude Code to install the plugin (Cursor and Codex get the rules and skills, but hooks are Claude Code only)
- A folder that holds your repos, where you start your sessions
- Git repos with a branch to review, for the review use case (GitHub access is needed to read pull requests, inferred from the README)
Steps
- Complete the install and setup steps from
/plugin install first-pass@first-passand/first-pass:setup-first-pass. - Run
/first-pass:fix-the-classfollowed by a short description of the bug and how to reproduce it. (inferred, check the README) - Read the list of same-pattern hits the agent found in the task's scope.
- Check that the new helper, constraint or test fails on the old code before you accept the fix.
Prompt for your agent
In the <repo-name> repo, use fix-the-class on this bug: <bug-description>. Expected output: a reproduction, the bug class name, every same-pattern hit in the task's scope with its fix or record, and the check added. Verify that the new check fails against the code before the fix.
Caveat. The search covers the task's scope only, so use hulk when you want the whole codebase searched, and the README says the scope is set from your prompt and the code around it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for joetawil7/first-pass and "Fix a bug and every same-pattern copy in one pass"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer