Run a self-hosted DBA agent for Postgres and MySQL
Built DeepSQL, a self-hostable DBA agent for Postgres and MySQL.
Source
venkat971 on Hacker News · 2026-07-20 · Project link
Written in our own words. Credit to the original author. Link checked 2026-11-23.
What they did
Built DeepSQL, a self-hostable DBA agent for Postgres and MySQL.
Result (as claimed)
Launched publicly; strong Show HN reception (52 points).
Tools they used
Cost: Claude Code: from $17/mo.
Set it up
Pick one goal and metric
For example replies to outreach, ad ideas per week or landing page conversion.
Set up the tools
Open Postgres, MySQL, Claude Code. Load your offer, audience and examples of what already works.
Generate, then review
Have the agent research and draft. You approve every message, post or ad before it goes out.
Measure and iterate
Track the metric for a week, keep what works and feed the results back into the prompt.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Run a self-hosted DBA agent for Postgres and MySQL What the original author did: Built DeepSQL, a self-hostable DBA agent for Postgres and MySQL. Reported result (as claimed by the author): Launched publicly; strong Show HN reception (52 points). Source: https://news.ycombinator.com/item?id=48980286 Tools they used: Postgres, MySQL, Claude Code Category: Marketing & growth Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Run a self-hosted DBA agent for Postgres and MySQL What the original author did: Built DeepSQL, a self-hostable DBA agent for Postgres and MySQL. Reported result (as claimed by the author): Launched publicly; strong Show HN reception (52 points). Source: https://news.ycombinator.com/item?id=48980286 Tools they used: Postgres, MySQL, Claude Code Category: Marketing & growth Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Run a self-hosted DBA agent for Postgres and MySQL What the original author did: Built DeepSQL, a self-hostable DBA agent for Postgres and MySQL. Reported result (as claimed by the author): Launched publicly; strong Show HN reception (52 points). Source: https://news.ycombinator.com/item?id=48980286 Tools they used: Postgres, MySQL, Claude Code Category: Marketing & growth Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
The Daily 5
Get five new use cases tomorrow morning
Free. Real sources. Unsubscribe any time.
Guides for this use case
How to self-host AI agents at home on a Raspberry Pi, Mac mini or old PC · How to use AI agents on Linux servers and homelabs safely (Claude Code, Codex, SSH, Proxmox) · How to vibe code an app with Claude Code
Related use cases
Have a local agent watch Postgres or MySQL for slow-query regressions
After years of reactive DBA work, the ReadySet team built RDST, an always-on local agent that watches database stats for slow queries and missing or harmful indexes, so problems are caught before the database falls over.
Connect an SEO audit tool to your agent over MCP so it fixes the issues
A developer built a tool that lists every SEO issue on his site, then connected it over MCP so his agent can read the issues and fix them.
Let your agent run your newsletter through an open-source MCP
MailCheap, Marc Lou's open-source newsletter app, connects to Claude, ChatGPT and Grok Bot through MCP and to Claude Code, Codex and Cursor, so an agent can manage the list and send campaigns.
Have your coding agent record product demo videos for you
Paste a URL (or localhost) and say what to show; Claude Code, Codex or Cursor drives a real browser on your machine and hands back the demo video, using the subscription you already pay for.