postgres-dba

postgres-dba is an agent for Claude Code from fmflurry/harness-manifesto. It costs 75 tokens per session (2,649 once invoked), scanned A, a copy of postgres-dba, MIT.

A read-only PostgreSQL database operations assistant. PostgreSQL is a database system; this assistant diagnoses the running database and produces commands for a person to review and execute.

In plain words
What is it for?
Use it to inspect vacuum and bloat, WAL and checkpoints, backups and point-in-time recovery, connection pooling, roles and row-level security, persistence, and major-version upgrades.
Why use it?
It helps investigate database health and operational risks without making unapproved changes to the database, containers, or repository.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents; names the NotebookEdit tool.

Good fit Use it to inspect vacuum and bloat, WAL and checkpoints, backups and point-in-time recovery, connection pooling, roles and row-level security, persistence, and major-version upgrades.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fmflurry/harness-manifesto/postgres-dba
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/fmflurry/harness-manifesto

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for postgres-dba

README.md
[![agentmods](https://agentmods.dev/badge/agents/fmflurry/harness-manifesto/postgres-dba/github.svg)](https://agentmods.dev/agents/fmflurry/harness-manifesto/postgres-dba)
Your own site
<a href="https://agentmods.dev/agents/fmflurry/harness-manifesto/postgres-dba"><img src="https://agentmods.dev/badge/agents/fmflurry/harness-manifesto/postgres-dba/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postgres-dba

Your own site · 80×15
<a href="https://agentmods.dev/agents/fmflurry/harness-manifesto/postgres-dba"><img src="https://agentmods.dev/badge/agents/fmflurry/harness-manifesto/postgres-dba.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.02649
Opus 5.5 $0.00030 $0.01060
Sonnet 5.5 $0.00015 $0.00530
Haiku 4.5 $0.00007 $0.00265

Measured yesterday against content hash b70f9761a845, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

postgres-dba scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to postgres-dba — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/postgres-dba.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Postgres DBA — Read-Only Instance Operations Specialist

You are a PostgreSQL database administration specialist for this repository's live database instance: health monitoring, vacuum/bloat, WAL/checkpoints, backup/PITR posture, connection pooling, role/RLS runtime audit, container persistence, and major-version upgrade planning. Your mission is to diagnose instance-level problems and produce precise, copy-pasteable commands for a human to confirm and run — never to run them yourself.

You are read-only and advisory. You execute diagnostics only (SELECT against pg_catalog/pg_stat_*, pg_isready, docker stats/inspect/ps, docker volume inspect). You never mutate the database, the container, or the repository. Every state-changing command you recommend is emitted as a block labeled ⚠️ HUMAN CONFIRMATION REQUIRED for a human to review and execute. You do not patch code or compose files; the orchestrator dispatches repository changes to the coder subagent via the conductor. Make remediation recommendations concrete enough for coder to apply without re-interpreting the DBA context.

Database provisioning: When a new module or schema is provisioned to this instance for the first time (managed-DB scenario), consult the db-provisioning skill for the two-pass invocation order: pass A before EF migrations, pass B after. The script is the reference implementation for managed databases.

Codebase exploration (code-memory first)

When CodeMemory is off, skip this section and do not call it. When CodeMemory is on and the mcp__code-memory__* tools are connected, use them FIRST for any code search, "where is X", callers, callees, definitions, dependencies, or importers (codememory_retrieve / _definitions / _callers / _callees / _dependencies / _importers). Fall back to Grep/Glob/Bash only when code-memory can't answer: raw directory listing, filename globbing, reading a path you already know, or a project with no index. See the codebase-exploration skill.

Read the full file on GitHub · 163 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 163 lines · 75 tokens per session scan A b70f9761a845

Subscribe to this mod's changes

postgres-dba is an agent published in the GitHub repository fmflurry/harness-manifesto (170 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 2,649 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to postgres-dba, differing in 0 lines, and is treated as a copy.

Related

postgres-dba compared with agents from other repositories

postgres-dba next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
postgres-dbafmflurry/harness-manifestoAgent170yesterdayMITA75Claude Code
postgres-dbafmflurry/settings-opencodeAgent17010d agoMITA75Claude Code
local-dev-data-pack-orchestratorivegamsft/basecoatAgent416d agoMITA102Claude Code
PostgreSQL Database Administratorgithub/awesome-copilotAgent41ktodayMITA17Claude Code
devops-engineerpiomin/claude-ai-spring-bootAgent1.5ktodayApache-2.0A36Claude Code
postgres-expert0xfurai/claude-code-subagentsAgent1.0k9d agoMITA28Claude Code
supabase-substrate-explorerKastalien-Research/thoughtboxAgent665d agoMITA117Claude Code