Skip to content
@culpritsql

Culprit SQL

Evidence-based database root-cause analysis. Desktop, CLI, MCP, and fleet telemetry.

Culprit SQL Studio: Find the root cause. Prove the fix.

Open-source performance diagnostics and root-cause analysis for relational databases.

SQL Server Azure SQL PostgreSQL TimescaleDB YugabyteDB MySQL MariaDB SQLite

culpritsql.com · explain.culpritsql.com · Guide · Architecture · Coding Agents (MCP) · Collector & ADX · Releases

Two ways to run it

Mode How it works
Direct
Desktop · CLI · MCP
Connect directly to a database (or open a saved snapshot offline) to inspect top queries, ranked findings, execution plans, live blocking, virtual indexes, and SQL migrations in CI or coding agents.
Fleet Collector
ADX · ClickHouse
Deploy a bounded container in your database network and push verified telemetry and synthesized root-cause findings to Azure Data Explorer (ADX) or ClickHouse (with Blob or S3 recovery).

What it diagnoses

  • Top queries by database time, wait attribution & ranked findings
  • Execution plan regressions, parameter sensitivity & side-by-side plan diffs
  • @TVP cardinality skew, memory-grant starvation & disk spills
  • Page-latch (PAGELATCH) hot pages & tempdb allocation contention
  • Blocking chains, DDL metadata-lock sandwiches & deadlocks
  • Worker-thread (THREADPOOL) & compiler-gateway starvation
  • PostgreSQL subtransaction (SubtransSLRU) & XID wraparound cliffs
  • Transaction-log stalls, slow client consumers & replica redo blocks
  • Version-store (PVS / vacuum) retention & cloud tier throttling
  • Missing/unused indexes & unsafe SQL migrations in pull requests

Alert on root causes directly from ADX

Point an Azure Monitor Scheduled Query Rule or Grafana alert at ADX to page on-call with the culprit and fix already attached:

// Runs every 1m in Azure Monitor / Grafana -> PagerDuty, Slack, or Teams
CulpritIncidentsV1
| where UpdatedAt > ago(5m) and Status == "active" and Severity == "high"
| project StartedAt, DatabaseName, CulpritKind, Headline, CulpritSql, DeveloperAction

Developer tools & packages

Project Install / Access Focus
Culprit SQL Studio culpritsql.com Desktop app, CLI, fleet collector, and 27-tool MCP server
Culprit Explain explain.culpritsql.com Client-side web visualizer for plans, diffs, and deadlocks
Culprit SQL for VS Code VS Code · Open VSX .sqlplan / .explain.json / .xdl editor, diff studio & SQL CodeLens
@culpritsql/devtools npm i @culpritsql/devtools React & Node.js SQL HUD, N+1 detector, and live EXPLAIN drawer
@culpritsql/test npm i -D @culpritsql/test Vitest, Jest & node:test matchers for indexes, spills & plan diffs
@culpritsql/ci uses: culpritsql/[email protected] SQL migration lock linter, plan gate, SARIF 2.1.0 & PR diff bot
@culpritsql/plans npm i @culpritsql/plans Rust + WebAssembly SQL plan & deadlock parser and differ
@culpritsql/plan-viewer npm i @culpritsql/plan-viewer React <PlanViewer />, <PlanDiffViewer /> & <DeadlockViewer />

Pinned Loading

  1. culprit-sql-studio culprit-sql-studio Public

    Find what's slowing your database down: a free desktop app, CLI and MCP server for SQL Server, PostgreSQL, YugabyteDB, TimescaleDB, MySQL, MariaDB and SQLite performance (slow queries, execution pl…

    Rust 28 3

  2. culprit-plan-viewer culprit-plan-viewer Public

    Interactive React execution plan diagrams, structural diffs, and deadlock cycle graphs for SQL Server, PostgreSQL, MySQL, MariaDB, YugabyteDB, and SQLite.

    TypeScript

Repositories

Showing 10 of 10 repositories
  • culprit-plans Public

    Portable WebAssembly execution plan parser, comparator, deadlock parser, and exporter for SQL Server, PostgreSQL, MySQL, MariaDB, YugabyteDB, and SQLite.

    culpritsql/culprit-plans's past year of commit activity
    JavaScript 0 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-sql-studio Public

    Find what's slowing your database down: a free desktop app, CLI and MCP server for SQL Server, PostgreSQL, YugabyteDB, TimescaleDB, MySQL, MariaDB and SQLite performance (slow queries, execution plans, indexes, blocking, deadlocks).

    culpritsql/culprit-sql-studio's past year of commit activity
    Rust 28 MIT 3 1 3 Updated Nov 25, 2026
  • culprit-test Public

    Execution plan regression assertions, Vitest/Jest matchers, and safe EXPLAIN runners powered by @culpritsql/plans.

    culpritsql/culprit-test's past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-ci Public

    SQL migration linter, query anti-pattern analyzer, execution plan regression gate, SARIF 2.1.0 emitter, and PR diff commenter.

    culpritsql/culprit-ci's past year of commit activity
    TypeScript 1 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-devtools Public

    In-app SQL DevTools HUD, automatic N+1 burst detector, and interactive EXPLAIN plan inspector for React and Node.js.

    culpritsql/culprit-devtools's past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-vscode Public

    Interactive SQL execution plan diagrams, side-by-side plan diffs, deadlock cycle graphs, and SQL safety checks for VS Code, Cursor & Windsurf.

    culpritsql/culprit-vscode's past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-explain Public

    Free client-side SQL execution plan visualizer, structural plan comparator, and deadlock cycle analyzer powered by WebAssembly.

    culpritsql/culprit-explain's past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-blog Public

    Code-first Astro + MDX engineering blog for Culprit SQL (culpritsql.com/blog)

    culpritsql/culprit-blog's past year of commit activity
    Astro 0 MIT 0 0 0 Updated Nov 25, 2026
  • culprit-plan-viewer Public

    Interactive React execution plan diagrams, structural diffs, and deadlock cycle graphs for SQL Server, PostgreSQL, MySQL, MariaDB, YugabyteDB, and SQLite.

    culpritsql/culprit-plan-viewer's past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Nov 25, 2026
  • .github Public
    culpritsql/.github's past year of commit activity
    0 0 0 0 Updated Nov 23, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…