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

How to catch tests that pass against old code in CI with Gap Trap

Run every new test against the old code in CI and fail any test that passes there.

Short answer: Run /gap-trap setup in the repository so the proven red CI job is added; then open a PR that adds a new test; check the proven red CI job result for that PR. All steps.

Who it is forA developer whose agent writes tests that check that code ran rather than that it did the right thing.

The problemA test that cannot fail proves nothing, and agents often write tests like that.

The outcomeA CI job that flags each new test that also passes on the old code, so weak tests are caught before merge.

What you need first

  • A git repository you want to set up
  • Claude Code (Opus or better) or Codex (frontier coding model at high reasoning), since the skill stops on smaller models
  • The skills CLI via npx, or a git clone for a manual install
  • Your repo's test command, and git, grep, and awk for non-Node and non-Python repos

Steps

  1. Run /gap-trap setup in the repository so the proven red CI job is added.
  2. Open a PR that adds a new test.
  3. Check the proven red CI job result for that PR.
  4. If the job fails, rewrite the test so it fails on the old code and passes on the new code.

Prompt for your agent

In the repo at <repo-path>, after gap-trap setup, open a PR that adds one new test. Report the result of the proven red CI job for that PR. Verify that the job ran in CI and not only locally.

Caveat. The README says proven red runs only in CI, so you will not see its result from a local run.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for pliablepixels/gap-trap and "Catch tests that pass against old code in CI"

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