DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to fix a bug and every same-pattern copy in one pass with First Pass

Reproduce a bug, find the same pattern across the task's scope, and add a check that stops it returning.

Short answer: Complete the install and setup steps from /plugin install first-pass@first-pass and /first-pass:setup-first-pass; then run /first-pass:fix-the-class followed by a short description of the bug and how to reproduce it; read the list of same-pattern hits the agent found in the task's scope. All steps.

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

  1. Complete the install and setup steps from /plugin install first-pass@first-pass and /first-pass:setup-first-pass.
  2. Run /first-pass:fix-the-class followed by a short description of the bug and how to reproduce it. (inferred, check the README)
  3. Read the list of same-pattern hits the agent found in the task's scope.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer