AI Agents Overview

The AI agents are ten assistants for database work. Each does one job: review a change script, write a query, answer questions about a schema, diagnose an error, tune a query, write a rollback, trace what a change reaches, summarise a release, check compliance rules, or spot unusual script runs. An agent runs only when someone starts it, and every run is recorded.

Before you start

Using the page

Open DB DevOps → AI Agents. Each agent is a tab; the arrow keys move between tabs. Fields marked * are required, and Run Agent stays disabled until they are filled; hover over it to see what is missing.

What each agent sends to the AI provider

AgentRead from your databasesSent to the AI provider
Script ReviewThe schema, when a connection is chosenThe script, your notes, the engine and the schema summary
Natural Language → SQLThe schemaYour question and the schema summary
Schema Explorer ChatThe schema and its foreign keysThe conversation so far, the schema summary and the foreign keys
Error DiagnosisThe schema, when a connection is chosenThe SQL, the error message and the schema summary
Query OptimizationThe query plan, read without running the query, and the schemaThe query, its plan and the schema summary
Auto-Rollback GenerationNothingThe forward script and your preconditions
Change Impact AnalysisThe dependency graph of the objects the script changesThe script, the objects it changes and the objects that depend on them, with how each is linked
Release Summary GeneratorThe release's scripts and their past runsScript names, environments, the first 4,000 characters of each script and the past run results
Compliance CheckYour compliance rulesOnly for rules judged by the AI model: the rule and the script
Anomaly DetectionRecent script runsOnly when something is found: what was found, with script names

The schema summary holds table names and, depending on the detail level, column names, types, lengths, nullability and defaults, on every engine: from the catalog on PostgreSQL, CockroachDB, TimescaleDB, MySQL, MariaDB, SQL Server and Oracle, and from the same reader Schema Ops snapshots use on the others, SQLite columns, MongoDB fields sampled from documents, Cassandra columns, Neo4j label properties, Elasticsearch mappings and Redis hash fields per key pattern. If the columns cannot be read, an advisory gives the reason and the agent receives names only. Excluded tables are never in it. Row data is sent only when an administrator turns on sample rows. Text you type and scripts you choose are sent as written, so a table you name in them is sent even if it is excluded.

Run history

Every run is recorded with the agent, who ran it, the connection, the model, the tokens, how long it took, whether it succeeded and a short description of the input and output, such as dialect=postgresql, 412c. Prompts and answers are not stored. The IDE's AI assistant, the AI review on approvals and blast radius narratives are recorded in the same way. You see your own runs; administrators see everyone's. If a run cannot be recorded, the answer carries an advisory saying so.

Queued runs

When an administrator sets the async mode to Always, runs are queued and the page waits for the answer. A run that has not finished after 5 minutes is cancelled, and the page says so. A run that stops part way, for example because the server restarted, is queued again after 10 minutes.