- Home
- Skills
- Testing & Debugging
- Catch - What Did Your AI Agent Just Break?
Works with the AI Agents you already use
Catch - What Did Your AI Agent Just Break?
by Soham Bhole
Runs the exact tests your AI agent's diff could break, tells new failures from pre-existing ones, and flags hallucinated dependencies, before you commit.
Free
Catch - What Did Your AI Agent Just Break?
Example session with this skill installed
I've made changes to my Flask app with Claude Code, stage them and check
whether anything broke before I commit.
- Read your context and instructions
- Compiled the catch - what
Summary
Staged 3 changed files and ran Catch. It mapped the diff through the import
graph to 14 affected tests, ran them in 1.9s, re-ran the 2 failures against
the pre-diff baseline — and confirmed both are NEW regressions caused by
your changes. It also flagged one new dependency as likely hallucinated.
Do not commit yet.
| Check | Result | Detail |
|---|---|---|
| Affected tests | 14 run | mapped from src/auth/token.py via import graph |
| New failures | 2 | both trace to refresh() in your diff |
| Pre-existing failures | 3 | dimmed, not blocking |
| New dependencies | 1 dangerous | py-token-utils: 4 days old, 12 downloads |
✗ NEW FAILURES (2)
tests/test_auth.py::test_token_refresh
→ your diff touches src/auth/token.py:refresh()
→ AssertionError: token expiry not updated
tests/test_api.py::test_login_flow
→ called from src/api/routes.py:login()
⚠ SUSPICIOUS DEPENDENCIES (1)
py-token-utils → registered 4 days ago, 12 downloads
→ did you mean: pyjwt?
RESULT: FAIL — exit code 1
Next steps
- Revert the
refresh()change or update the expiry logic — both failures
point at the same function. - Replace
py-token-utilswithpyjwt(almost certainly the intended package). - Re-run
catch— commit only when it exits 0.
Connects securely to your tools. The creator never sees your data.
About this skill
Your AI agent wrote it. Catch proves whether it broke anything.
AI coding agents are fast, and 66% of developers say the output is "almost right, but not quite." The failures that hurt most aren't syntax errors; they're silent regressions in code the agent never touched, and invented dependency names that don't exist on PyPI (or worse, were just registered by an attacker -"slopsquatting").
Catch is the missing step between "the agent wrote code" and "you commit it."
What it does
Run catch after staging changes (or let your agent run it — this skill
teaches Claude Code, Cursor, and Codex to check their own work before
opening PRs). In seconds you get:
- Impact mapping - an AST import graph of your repo traces your diff to the exact tests that exercise the changed code. Not the whole suite: the ~14 tests that matter.
- New-failure detection -affected tests run against your working tree, and any failures are re-run against the pre-diff baseline in a temporary git worktree. Failures that existed before your change are shown dimmed and never block you. Only NEW failures fail the check.
- Dependency vetting -every new import is checked live against PyPI: does it exist, how old is it, how many downloads? Hallucinated packages and brand-new low-download packages are flagged, with "did you mean" suggestions.
Exit code 0 = clean, 1 = problems. Wire it into pre-commit, pre-push, or CI (included GitHub Action posts the report as a PR comment).
Why not just ask the AI to review its own code?
The model that wrote the bug shares the assumptions that caused it - LLM review of LLM code is correlated guessing, and it's different every run. Your test suite is deterministic ground truth. Catch runs it.
Proven on a real bug
Catch flags, in ~2 seconds, the exact test behind Flask's SECRET_KEY_FALLBACKS key-ordering regression, a bug that lived ~4 months in one of the world's most-used Python packages. Full reproduction methodology in the demo/ folder.
What's included
catchCLI (pip install catchdev)- GitHub Action with PR-comment reports
- pre-commit / pre-push hook
- This agent skill, your agent checks its own work before committing
Python projects today (pytest). Jest/JS support is on the public roadmap. MIT licensed. No telemetry. Your code never leaves your machine.
Requires changes to be staged in Git. Only detects regressions in existing tests; it does not author new test cases.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 14 days ago
- Free with an Agensi account
- Accounts
Pypistats
- Software
Python
Gitpytest
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.