Who it is forA developer using Claude Code, Codex, or Cursor who wants the agent to check its own changes for logic bugs.
The problemCoding agents often ship logic errors they do not notice, and reviewing each edit by hand is slow.
The outcomeThe assistant has Perch instructions in its project folder and can scan and check its own work.
What you need first
- Node.js with npm, to install the @lakeday/perch package
- A Perch Cloud account, created by running perch login (the first $5 is free)
- A project folder with source code to scan
Steps
- Run
npm install -g @lakeday/perchif Perch is not installed yet - Run
perch setup claude-codefor Claude Code,perch setup codexfor Codex, orperch setup cursorfor Cursor - Start a session with the assistant in the project folder
- Ask the assistant to run
perch scanafter each change and fix the top findings
Prompt for your agent
In the perch repo at <project path>, after you finish editing, run `perch scan` and then `perch issues`. Fix the top finding if it is a real defect, then run `perch check <id>`. Verify that the final scan lists no new problems introduced by your edits.
Caveat. The skill files are written into the project's .claude, .codex, or .cursor folders, so review them before committing, and Perch still requires a Perch Cloud sign-in.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for lakeday-org/perch and "Let a coding agent run Perch on its own changes"
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