# AGENTS.md instructions for psql for PostgreSQL inspection and query workflows

Use psql for PostgreSQL inspection and query workflows only for: Query PostgreSQL databases and inspect schemas from terminal and agent workflows.

## Default behavior

- Prefer non-interactive commands and stable output formats: csv, text, json.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

- safe: `libpq --help` — Inspect command surface before automation.
- safe: `libpq --version` — Verify the installed CLI.

## Safety notes

- Prefer non-interactive usage and explicit output flags when an agent runs this command.
- Treat commands that deploy, delete, charge money, or mutate production data as approval-required.
- Record the exact command, output format, and scope before adding it to an agent workflow.