cd /news/ai-agents/show-hn-dbprint-database-context-for… · home › topics › ai-agents › article
[ARTICLE · art-160993] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Dbprint – Database Context for Agents

Developer Jakub (GitHub handle jakubro) released Dbprint, a command-line tool that produces an offline YAML and Markdown snapshot of a database — DDL, column- and relation-level statistics, and values with frequencies — and exposes it to AI agents via MCP and a web UI. Dbprint supports PostgreSQL, MySQL, Snowflake, ClickHouse, Databricks and BigQuery, and adds annotations, sensitivity-based redaction, and a "dbprint check" command for CI schema and data drift detection. The developer said agent-generated SQL queries were inaccurate and slow to produce because answers had to be found in the codebase or a live database.

read1 min views4 publishedOct 30, 2026

CLI that produces an offline snapshot of a database (DDL, column- and relation-level statistics, values with frequencies), combines it with annotations written by you or an agent, and exposes it as MCP and as a web UI. Works with PG, MySQL, Snowflake, ClickHouse, Databricks, BigQuery.

How to try it:

  uvx dbprint context \
    arboretum.seedbank.germination_trial \
    --purpose query \
    --project https://github.com/jakubro/dbprint/blob/main/docs/format/v1/examples/production/.dbprint.yaml

Features:

  • Philosophy: snapshots are meant to sit next to your code and versioned so that you have a history of changes and agents can hit them when searching codebase.

  • Offline: no need to expose live credentials to agents.

  • CI: "dbprint check" can verify schema/data drift.

  • Annotations: complement statistics by documenting the meaning behind data. An agent can prepare them for you ("dbprint annotate").

  • Redaction: values can be masked/excluded/hashed either explicitly with FQNs or automatically based on inferred sensitivity and value shape.

  • Format: Snapshots are YAML and markdown, so greppable and usable by other tools.

Why I built this: SQL queries produced by agents were inaccurate, and the overall time to result was slow and costly because of finding the answers in codebase or in live database.

Comments URL: https://news.ycombinator.com/item?id=50305171

Points: 1

── more in #ai-agents 4 stories · sorted by recency
── more on @dbprint 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-dbprint-data…] indexed:0 read:1min 2026-10-30 · —