AI agent

Ask your own model about your database: ChatGPT, Claude, Bedrock, Codex CLI or local Ollama, with access levels and approvals.

The Agent sidebar with provider sign-in

The agent sidebar sits on the right of the window. Press Ctrl+5 to open it on the connection you are using.

It answers questions about your database using your own AI provider: OpenAI with a ChatGPT plan or an API key, Anthropic's Claude, Claude on AWS Bedrock, Codex CLI, Antigravity, or a local model through Ollama or LM Studio. Row Patrol does not resell or relay any of them — requests go straight from your computer to the provider you chose.

The agent is part of Personal and Team, and the 14-day trial unlocks it. Everything that keeps it safe — read-only sessions, approvals, masked columns, the audit log — is in every edition.

What it can do

Ask a question in plain English and watch it work. Each step it takes appears as a row you can expand.

  • Describe your tables, columns, keys and indexes, and find tables by name.
  • Walk the foreign keys between two tables to explain how they connect.
  • Run a read-only query and show the rows, as a table or as a chart.
  • Profile a column: distinct values, nulls, ranges, most common entries.
  • Estimate a query plan, or measure one by running it once.
  • Look up a single row by a value.
  • Check the server's health: slow queries, locks, unused and missing indexes. The pulse button runs this on its own.
  • Draft SQL for you, which you review before it replaces your draft.
  • Propose a change, which runs only if you approve it.

Answers can be opened in the results grid when you want the full rows instead of the summary.

What it is allowed to see

Each connection saves its own access level under What may the agent see on this connection?

LevelThe provider can receive
NothingOnly what you type.
Schema (default)Table and column names, keys, indexes, statistics, estimated plans. No rows.
AskThe above, plus data. Every data read pauses and asks you to Run once or Refuse.
QueriesThe same read-only data tools without asking each time.

Production connections are always capped at Schema. Raising one to Ask requires typing the connection's name and reverts when the connection closes. Unattended queries are never offered on production.

Limits per question keep answers quick and small: a fixed number of tool calls (20 by default), a five-minute ceiling, and at most 200 rows or 48 KB from any single tool.

Writes are approved one at a time

From Schema access up, any change the agent wants pauses in an approval card: the connection, its environment, the exact SQL, the impact in the same Matches N of M rows wording as a normal write, and any warnings. Nothing runs until you approve. There is no "approve all".

Hiding data from the model

Masked columns and denied tables are pattern lists saved per connection. Columns matching *email*, *phone*, *password*, *token*, *secret* and similar are sent to the model as [masked], and queries naming them are refused. Denied tables disappear from the schema it sees.

This is best-effort protection by column name, not a guarantee: values reached through a view, a function or a computed expression can still slip through. Treat the access level as the real boundary.

See exactly what will be sent

Before the first question of a chat, and whenever you change provider or access level, Review agent context shows the exact text that would go to the provider. Nothing is sent until you confirm. Credentials and connection details are never included.

Saved chats and notes

The clock icon lists your recent chats for that connection, so you can pick a conversation up later. Remember lets the agent keep a short note about the database — a naming convention, a table that is deprecated — for future chats. Both are stored locally.

Stop and check

Stop (Ctrl+Shift+C) cancels the agent and any query it started. Everything the agent and your agents outside the app did is written to the local audit log.