postgres-expert

postgres-expert is an agent for Claude Code from pgEdge/ai-dba-workbench. It costs 0 tokens per session (1,761 once invoked), scanned A, original, PostgreSQL.

An expert assistant for PostgreSQL, a database system used to store and query application data.

In plain words
What is it for?
It helps answer questions about running PostgreSQL servers, configuration, performance monitoring, and database problems.
Why use it?
It provides focused guidance when database administration, configuration, or troubleshooting requires PostgreSQL-specific knowledge.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/pgedge/ai-dba-workbench/postgres-expert
Clone the repo
git clone --depth 1 https://github.com/pgEdge/ai-dba-workbench

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/pgedge/ai-dba-workbench/postgres-expert.svg)](https://agentmods.dev/agents/pgedge/ai-dba-workbench/postgres-expert)
Your own site
<a href="https://agentmods.dev/agents/pgedge/ai-dba-workbench/postgres-expert"><img src="https://agentmods.dev/badge/agents/pgedge/ai-dba-workbench/postgres-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found 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 $0.00000 $0.01761
Opus 5 $0.00000 $0.00881
Sonnet 5 $0.00000 $0.00352
Haiku 4.5 $0.00000 $0.00176

Measured 4d ago against content hash 198a6e426b83, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

postgres-expert 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 4d ago.

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.

.claude/agents/postgres-expert.md · 120 lines

The source is not reproduced here

Licensed PostgreSQL

The repository is licensed PostgreSQL, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 4d ago First seen · 120 lines · 0 tokens per session scan A 198a6e426b83

Subscribe to this mod's changes

postgres-expert is an agent published in the GitHub repository pgEdge/ai-dba-workbench (46 stars, last pushed 7d ago), licensed PostgreSQL. It costs nothing until one of its globs matches a file; then it loads 1,761 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

db-postgres-expert

Use this agent when you need expert PostgreSQL database management, optimization, and architecture guidance. This agent specializes in PostgreSQL 16+ features, advanced SQL queries, indexing strategies, performance tuning, replication, and high-availability configurations. Examples: Context: User needs to optimize…

andisab/swe-marketplace · 403 tokens

testing-framework-architect

Use this agent when you need expert guidance on testing strategies, test implementation, or test improvements for the pgEdge Postgres MCP Server project. Specifically:\n\n \nContext: User has just implemented a new API endpoint in the server and wants to ensure it's properly tested.\nUser: "I've added a new endpoint…

pgEdge/pgedge-postgres-mcp · 0 tokens

postgres-expert

Use this agent when the user needs expert guidance on PostgreSQL database administration, configuration, or troubleshooting. Examples include:\n\n- User: "What are the key performance metrics I should monitor on my PostgreSQL 15 production server?"\n Assistant: "Let me use the postgres-expert agent to provide…

pgEdge/pgedge-postgres-mcp · 0 tokens

codebase-navigator

Use this agent when you need to understand the pgEdge Postgres MCP Server codebase structure, locate specific implementations, or understand how components interact. Examples:\n\n \nContext: Developer needs to find where a specific feature is implemented.\nuser: "Where is the database connection handling…

pgEdge/pgedge-postgres-mcp · 0 tokens

doctor-strange

Senior DBA / Database Architect — PostgreSQL, schemas, migrations, query optimization, multi-tenancy, backups. Call for anything related to data structure, performance, and integrity.

CohesiumAI/assemble · 39 tokens

database-architect

Expert database architect for Sovereign Watch schema design, PostgreSQL optimizations, vector embeddings, and spatial data. Use for database operations, migrations, indexing, timescale setups, and query optimization. Triggers on database, sql, schema, postgres, index, table, pgvector, postgis, timescale.

d3mocide/Sovereign_Watch · 67 tokens