{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "lakeday-org-perch--scan-codebase-for-logic-bugs",
 "repo": "lakeday-org/perch",
 "repo_url": "https://github.com/lakeday-org/perch",
 "repo_slug": "lakeday-org-perch",
 "title": "Find logic bugs in a codebase, worst first",
 "page_title": "How to find logic bugs in a codebase, worst first with Perch",
 "summary": "Run one scan to list semantic defects in your code, ranked by severity and confidence.",
 "who": "A developer who suspects a codebase has wrong-order, off-by-one, or null-handling bugs and wants a ranked list to start with.",
 "problem": "Standard linters miss many meaning-level bugs, so problems can stay hidden until they reach production.",
 "outcome": "A ranked list of findings with file, line, problem type, and confidence, sorted so the worst appear first.",
 "steps": [
  "Run `npm install -g @lakeday/perch`",
  "Run `perch login` to sign in to Perch Cloud",
  "Run `perch scan` in the project folder",
  "Run `perch issues` to see the findings worst first",
  "Run `perch issues <id>` with a finding ID to view one finding in detail (inferred, check the README)"
 ],
 "agent_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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Scans run through Perch Cloud after sign-in, and the README says the first $5 is free, so later scans may cost money.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lakeday-org-perch/scan-codebase-for-logic-bugs/",
 "md": "https://dedupedai.com/use-cases/lakeday-org-perch/scan-codebase-for-logic-bugs/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/lakeday-org-perch--scan-codebase-for-logic-bugs.json",
 "api_version": "v1"
}
