Goldfish

Project

Clownfish

A 100-point health inspection for your PostgreSQL database — and it checks the AI's work before it shows you a thing.

  • Open Source
  • Python
  • postgres
  • health-check
  • ai
Status
beta

Clownfish is a standalone health-assessment tool for PostgreSQL. It collects metrics over a time window, scores your database across ~100 checks in ten categories (memory, query performance, vacuum, security, replication, configuration, storage, locking, backup, connections), and produces a graded report card with prioritized, actionable fixes. The CLI is pg-healthcheck; a lightweight web UI handles setup, live collection, and charts.

The part worth studying is the AI layer, and specifically what it refuses to do. Deterministic heuristics own the facts — the ~100 checks are encoded DBA expertise, free to run and perfectly reproducible. An LLM owns the judgment and the narrative. Between them sits a two-part judge: a free deterministic check confirms every value the model cites against your real telemetry (a fabricated number gets caught for zero tokens), and a multi-model vote handles the calls a rule can’t make. Self-contained, runs offline, Apache-2.0.

Every piece of Goldfish content tagged project: clownfish shows up below — the blogs that explain the anti-hallucination judge and the heuristics-vs-LLM division of labor, and the build-along tutorials that take it from a vibe-coded prototype to something you would run in production.

From this project