# Catch - What Did Your AI Agent Just Break?

> 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.

Catch - What Did Your AI Agent Just Break? is a free AI agent skill on Agensi by Soham Bhole, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Soham Bhole](https://www.agensi.io/creators/soham-bhole)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/catch-what-did-your-ai-agent-just-break
- Tags: testing, git, code-review, devops, python, javascript

## 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:

1. **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.
2. **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.
3. **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

- `catch` CLI (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

- Python
- Git
- pytest

## Known limitations

Requires changes to be staged in Git. Only detects regressions in existing tests; it does not author new test cases.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Catch - What Did Your AI Agent Just Break? skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Catch distinguish between new regressions and existing test failures?

Catch compares your staged changes against the repository's baseline to isolate only the new errors caused by your current work, ensuring you aren't blamed for pre-existing technical debt.

### What AI agents or environments are compatible with this skill?

The skill is compatible with any AI agent or terminal environment that has access to Git and your local language-specific test runners (like Jest, Pytest, or Maven).

### What does the dependency auditing feature actually look for?

Catch performs a security check on new entries in manifests like package.json or requirements.txt to flag typosquatting, "hallucinated" packages, or known malicious dependencies before they are committed.

### Can I automate Catch to run every time I attempt a Git commit?

Yes, Catch is designed to be integrated into local pre-commit hooks or CI/CD pipelines to act as an automated gatekeeper for code quality.

### Does this skill only work for specific programming languages?

The skill supports most major programming languages, provided your project has a defined test suite that can be triggered via command line.

### Does Catch work with JavaScript/TypeScript?

v0.1.0 is Python + pytest. Jest support is the top item on the public roadmap.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
