pitcheye.dev
MIT Open-Core · <3s Offline AST · Zero Prod Secrets

Catch cross-vendor bugs before your coding agent ships them.

TypeScript and unit tests pass while PRs leak Postgres pooler slots, expose UploadThing routers, or break Vercel Hobby crons. One local CLI, GitHub PR Check, and MCP server for the Next.js + Drizzle + Supabase + Clerk stack.

npx @pitcheye/check --changed-only

zero install · zero credentials · 100% offline AST

✓ 30 v1.0 rules across 6 stack packs✓ SARIF + Agent JSON✓ 100% offline AST
1.9s · 30 rules
$ npx @pitcheye/check --changed-only
✖ error db/per-request-client
apps/web/src/app/api/health/route.ts:6
GitHub PR Check · Inline AnnotationLine 6
- const client = postgres(process.env.DATABASE_URL!);
+ const db = getDb();

whyItBreaks: Every request opens a new TCP connection that is never explicitly closed. Against a pooler (PgBouncer/Supabase/Neon) the slot stays checked out until it times out, so the app serves a few hundred requests and then hangs forever on connection acquisition — the classic "works locally, dies on deploy at ~200 rps" failure.

full rule doc →
MCP verify_fix({ ruleIds: ["db/per-request-client"] })✓ 0 errors · shared pool singleton verified
Verified fixture suite · 30 rules / 63 cases

High-signal v1.0 rule catalog

6 packs · 23 error · 7 warn
clerk/unprotected-mutationclerkerror

Mutating endpoint has no authentication

View bad/good diff & MCP JSON →
clerk/ui-only-role-gateclerkwarn

Role is enforced in the UI, not on the server

View bad/good diff & MCP JSON →
clerk/userprofile-page-missing-propsclerkerror

<UserProfile.Page> is missing a required prop

View bad/good diff & MCP JSON →
clerk/middleware-blocks-webhooksclerkerror

Middleware protects webhook routes

View bad/good diff & MCP JSON →
clerk/middleware-missing-auth-awaitclerkerror

`auth()` is not awaited in middleware

View bad/good diff & MCP JSON →
supabase-auth/server-get-sessionsupabase-autherror

`supabase.auth.getSession()` used on the server

View bad/good diff & MCP JSON →
supabase-auth/deprecated-auth-helperssupabase-autherror

Import from the deprecated `@supabase/auth-helpers-nextjs`

View bad/good diff & MCP JSON →
supabase-auth/service-role-in-clientsupabase-autherror

Service-role key referenced in a client module

View bad/good diff & MCP JSON →
supabase-auth/missing-session-refresh-middlewaresupabase-authwarn

Middleware never refreshes the Supabase session

View bad/good diff & MCP JSON →
supabase-auth/sync-cookies-next15supabase-autherror

`cookies()` used synchronously on Next 15

View bad/good diff & MCP JSON →
db/per-request-clientdberror

Database client constructed per request

View bad/good diff & MCP JSON →
db/shared-client-max-onedberror

Shared client configured with `max: 1`

View bad/good diff & MCP JSON →
db/supabase-rls-missingdberror

Table created in `public` with no RLS

View bad/good diff & MCP JSON →
db/rls-permissive-using-truedbwarn

RLS policy is `USING (true)`

View bad/good diff & MCP JSON →
db/neon-pooler-in-migrationsdberror

Pooler URL used for migrations

View bad/good diff & MCP JSON →
db/postgres-js-prepare-true-with-poolerdberror

postgres.js against a pooler without `prepare: false`

View bad/good diff & MCP JSON →
db/neon-http-multi-statement-txdberror

`db.transaction()` on the Neon HTTP driver

View bad/good diff & MCP JSON →
vercel/hobby-cron-violationvercelerror

Cron schedule is not allowed on the Hobby plan

View bad/good diff & MCP JSON →
vercel/env-parity-driftvercelwarn

Missing secret env var is swallowed instead of failing fast

View bad/good diff & MCP JSON →
vercel/serverless-budget-guardvercelwarn

Long-running AI call with no `maxDuration`

View bad/good diff & MCP JSON →
nextjs/server-action-unvalidated-inputvercelerror

Server action trusts an `any` parameter

View bad/good diff & MCP JSON →
nextjs/client-secret-leakvercelerror

Secret exposed through a `NEXT_PUBLIC_` variable

View bad/good diff & MCP JSON →
uploadthing/unauthenticated-file-routerwebhookserror

UploadThing route has no auth in `.middleware()`

View bad/good diff & MCP JSON →
uploadthing/missing-size-or-mime-limitwebhookserror

File route declares no size limit

View bad/good diff & MCP JSON →
webhooks/unverified-signaturewebhookserror

Webhook parses the body without verifying its signature

View bad/good diff & MCP JSON →
webhooks/payment-update-missing-idempotencywebhookswarn

Payment webhook update has no lifecycle predicate

View bad/good diff & MCP JSON →
inngest/non-deterministic-outside-stepinngesterror

Side effect runs outside `step.run()`

View bad/good diff & MCP JSON →
inngest/nested-step-runinngesterror

`step.run()` nested inside another `step.run()`

View bad/good diff & MCP JSON →
inngest/missing-put-handlerinngesterror

Inngest serve() does not export `PUT`

View bad/good diff & MCP JSON →
inngest/missing-retry-or-idempotencyinngestwarn

Function has neither `retries` nor `idempotency`

View bad/good diff & MCP JSON →

Coming in v1.1: Expo Monorepo Pack — monorepo/public-env-skew, expo/eas-preflight-config, monorepo/shared-contract-drift

Open-Core Packaging

Free locally forever. Upgrade for CI + production trace stitching.

MIT Open-Core

CLI & Local MCP

$0 / forever
  • ✓ npx @pitcheye/check CLI (SARIF + JSON)
  • ✓ @pitcheye/mcp (check_repo, check_diff, explain_rule, verify_fix)
  • ✓ All 30 v1.0 stack rules, 100% offline
  • ✓ Zero telemetry, zero prod credentials
Run npx @pitcheye/check
Phase 2 · StackLens

Pro

$29 / mo per repo
  • ✓ Everything in Open-Core Free
  • ✓ Managed GitHub App + inline PR fix prompts
  • ✓ Live Vercel / Supabase env & RLS drift checks
  • ✓ StackLens (Phase 2): cross-stack trace stitcher (explain_failure() MCP)
Start Pro Waitlist
Phase 3 · StackStage

Team

$99 / mo
  • ✓ Everything in Pro across unlimited repos
  • ✓ Custom org rules & policy enforcement
  • ✓ StackStage (Phase 3): ephemeral PR preview harness
  • ✓ Seeded Postgres branch + Clerk test personas + webhook replay
Request Team Pilot