What do you want to do?
5 use cases
-
Find logic bugs in a codebase, worst first
Run one scan to list semantic defects in your code, ranked by severity and confidence.
- Perch
- Software and DevOps
- Intermediate
View prompt
In the perch repo at <project path>, run `perch scan` and then `perch issues`. Report the top five findings with file, line, and problem type. Verify that the output lists problems with IDs and a severity for each.
-
Confirm a fix works without recording it
Re-ask Perch about a finding after you change the code, without saving anything.
- Perch
- Software and DevOps
- Intermediate
View prompt
In the perch repo at <project path>, after editing the code for finding <id>, run `perch check <id>`. Report whether the problem still appears. Verify that the check did not add a new record to the scan results.
-
Write a custom rule for your own code standard
Add a plain-English rule to Perch.yaml so Perch checks a practice your team cares about.
- Perch
- Software and DevOps
- Intermediate
View prompt
In the perch repo at <project path>, add a rule named private-logs to perch.yaml with where set to src/**/*.ts, each set to method, and ensure set to 'Keep passwords and access tokens out of logs.' Run `perch scan`. Verify that the scan output includes findings from this rule.
-
Let a coding agent run Perch on its own changes
Install Perch instructions for your AI coding assistant so it can scan its own edits.
- Perch
- Claude Code
- Codex
- Cursor
- Software and DevOps
- Intermediate
View prompt
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.
-
Scan pull requests in CI with Perch Cloud
Have Perch review pull requests automatically, with no workflow file to write.
- Perch
- Software and DevOps
- Advanced
View prompt
For the perch repo at <project path>, read https://docs.perchscan.com/ci/ and summarize what a build can gate on. Confirm that a test pull request receives perch findings. Verify that the pull request shows findings without any new workflow file added to the repo.
How to use Perch
- Check you have what it needs: 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.
- Open lakeday-org/perch on GitHub and read the README and license.
- Run
npm install -g @lakeday/perch - Run
perch loginto sign in to Perch Cloud - Run
perch scanin the project folder - Run
perch issuesto see the findings worst first
These steps come from our top use case, Find logic bugs in a codebase, worst first, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forSoftware developers and teams who want to catch logic bugs in code and check fixes before merging, with or without an AI coding agent.
- Why it is hot
- LanguageJavaScript
- Sourcegithub.com/lakeday-org/perch · Back to Hot repos
Requirements
- 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
Maintain Perch? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/lakeday-org-perch/?ref=badge)
Questions about Perch
What is Perch?
Perch is a JavaScript command-line tool that lints code for semantic problems such as logic bugs, using decision models. It is an open-source project on GitHub: https://github.com/lakeday-org/perch.
Who is Perch for?
Software developers and teams who want to catch logic bugs in code and check fixes before merging, with or without an AI coding agent.
What can I do with Perch?
5 use cases so far, for example: Find logic bugs in a codebase, worst first; Confirm a fix works without recording it; Write a custom rule for your own code standard. Each has steps and a copy-paste agent prompt.
What do I need to run Perch?
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.
What are alternatives to Perch?
Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.
Is Perch safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.