In short.
Database Optimizer is a reusable AI agent definition for developers and database engineers working on database performance, but its extensive tuning remit has no demonstrated execution results. The Markdown file describes a process that starts with profiling, proceeds through bottleneck analysis and optimization, and finishes with monitoring, benchmarking and cost considerations. It names SQL, NoSQL and cloud platforms alongside concrete diagnostic tools and techniques. Host compatibility, database access, recommendation quality, performance gains and operating costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes only plugins/database-cloud-optimization/agents/database-optimizer.md at revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d and its accompanying root LICENSE. Other agents, plugin manifests, repository documentation, host runtimes and external tools are outside the supplied scope. Nothing was installed, executed or tested. Host compatibility, tool integrations, model behavior, database correctness, performance gains, migration safety and operating costs remain unassessed.
The overview
Identity
The resource is plugins/database-cloud-optimization/agents/database-optimizer.md in the wshobson/agents repository. Its declared agent name is database-cloud-optimization-database-optimizer, and its metadata sets model: inherit. The original source address is [https://github.com/wshobson/agents/blob/main/plugins/database-cloud-optimization/agents/database-optimizer.md].
It is a Markdown role definition containing instructions for an AI model. The selected file does not contain an executable optimizer, database connector or monitoring service.
Assessment
Its practical value is the detailed investigative structure: measure current performance, identify bottlenecks, choose changes, validate them and monitor for regressions. It connects database tuning with application behavior, caching, architecture and resource costs.
The platform and tool lists describe the expertise requested from the model. They do not establish functioning integrations or successful optimization results. Nothing was executed or tested, so the quality of recommendations and the model's adherence to this process remain unassessed.
Users
The intended audience includes backend developers investigating slow application requests, database engineers reviewing queries and indexes, and platform engineers considering cloud capacity or scaling. The examples include analytical queries, e-commerce indexing, GraphQL data loading and large-table migrations.
Beginners could use it to organize an investigation, but the file assumes familiarity with database terminology and supplies no introductory tutorial. Experienced developers can use its technical scope to frame detailed questions, provided they can supply workload evidence and evaluate the resulting advice.
Capabilities
The definition asks the model to address execution plans, query rewriting, joins, common table expressions and advanced indexing. It names PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and DynamoDB, with examples including PostgreSQL GIN and BRIN indexes, MongoDB compound indexes and DynamoDB secondary indexes.
Application topics include ORM behavior, connection pools, transactions and N+1 queries, where an application repeatedly fetches related records instead of loading them together. Proposed approaches include eager loading, batching and GraphQL DataLoader patterns.
Its broader remit includes Redis or Memcached caching, partitioning, sharding, read replicas, schema migrations, cloud resource tuning and benchmarking with tools such as pgbench, sysbench and HammerDB. These are requested areas of coverage; implemented or verified support is unknown.
Using it
Requirements
Using the definition requires a host capable of accepting its role instructions. The file declares model: inherit without naming a model, provider, minimum model capability, compatible host version or installation dependency.
For a useful workload-specific evaluation, recommended inputs are the database engine and version, relevant schema and indexes, representative queries, existing execution plans, workload volume and baseline measurements. These are practical recommendations inferred from its profiling approach, not a documented mandatory input format.
Live profiling or implementation would additionally require suitable database and monitoring access. The selected file does not define connectors, credentials or permission configuration.
Mechanism
The mechanism is instruction-based: metadata identifies the agent, while the body specifies its role, knowledge areas, behavioral preferences and response sequence. The intended model choice is inherited from the host; the host's interpretation of that setting is not documented here.
The response sequence calls for profiling, bottleneck identification, strategy design, implementation with validation, monitoring, scaling plans, documentation, benchmarking and cost review. No executable orchestration enforces that sequence, and the file provides no tool-call definitions or automatic regression-detection implementation.
Setup
The selected file gives no installation command, host configuration example or invocation syntax. Its location beneath a plugins directory does not establish how a particular host loads it.
A practical starting point is to obtain the pinned Markdown file with its licence notice, confirm how the chosen host accepts agent definitions, and supply a bounded database-performance question with existing diagnostic evidence. This is a suggested evaluation path, not a verified installation procedure. Host-specific setup remains unknown.
Example
An illustrative request is to investigate a GraphQL endpoint whose query logs show repeated relationship lookups. Supply the resolver code, ORM queries, relevant schema, existing indexes and baseline request measurements, then ask for an explanation of the query pattern and a comparison of batching, eager loading and DataLoader approaches.
A useful response would connect each proposed change to the supplied evidence and describe how to compare query counts, latency and resource use. This example follows topics explicitly named in the definition. It is not an observed interaction, and no generated answer or measured improvement is available.
Assessment & evidence
Limitations
The breadth of the definition exceeds what the evidence demonstrates. It names many database engines, cloud services and optimization techniques without engine-version constraints, compatibility results, worked analyses or benchmark receipts. Model accuracy across those topics is unknown.
The file does not define database access controls, approval boundaries for changes, credential handling or executable rollback procedures. Although it discusses zero-downtime migrations and empirical validation, it does not establish that a proposed migration or tuning change is safe for a particular workload.
Automated monitoring, benchmarking and implementation remain dependent on capabilities outside this file.
Reasoning
The strongest design choice is its emphasis on measurements and workload-specific decisions. It asks for profiling before optimization, index choices based on query patterns, empirical validation and consideration of performance, maintainability and cost together.
That structure could help an assistant produce a more coherent investigation. The inference is limited to the instructions' design: there is no evidence that a host model consistently follows them, selects appropriate tools or makes correct database changes.
Alternatives
For a narrower diagnostic need, the definition itself names PostgreSQL pg_stat_statements, MySQL Performance Schema and SQL Server dynamic management views as sources of performance information. Those address the measurement part of the work; the agent definition aims to organize interpretation and proposed changes.
A focused query review using engine-specific evidence is another possible approach. No competing agent definitions or comparative results are supplied, so relative recommendation quality, convenience and cost are unknown.
Evidence
The evidence consists of the complete selected agent definition and the accompanying repository LICENSE. The fixed agent source is [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/database-cloud-optimization/agents/database-optimizer.md]. The corresponding licence is [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/LICENSE].
The supplied source metadata identifies the agent file's SHA-256 as 4be26ef22f389a267b6b61bdc0d661101b602aa2fed162ade7110df3fe124488. The text establishes the intended role and licence terms. It supplies no model responses, database execution records, benchmark results or deployment evidence.
Access & freshness
Costs
Operating cost is unknown. The file supplies no model price, subscription requirement, token budget, usage measurements or infrastructure estimate. Any charges for the host model, database services, caches, monitoring or load testing depend on an unspecified deployment.
Cloud cost analysis and resource efficiency are topics the agent is instructed to consider. Their inclusion does not demonstrate savings or establish a return on investment.
Rights
The accompanying repository notice is the MIT License, with copyright attributed to Seth Hobson in 2024. It permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions.
The licence disclaims warranties and limits liability. Redistributing the agent definition should preserve the accompanying notice. Terms for any separately used model, database or cloud service are not supplied by this licence.
Freshness
The supplied snapshot was captured on 12 November 2026 at 14:33:18.628 UTC and is pinned to source revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d.
The selected file provides no agent release number, dated changelog or supported database-version matrix. Whether the original main-branch address still matches this snapshot is unknown. The capture date does not establish when the instructions were last revised or whether their platform-specific advice remains accurate.
Actions
Start with one representative performance problem and existing measurements. Ask the agent to connect each diagnosis to the supplied query plans or logs, state assumptions and explain the trade-offs of proposed indexes, batching or caching.
Before applying changes broadly, evaluate them on a representative non-production workload and compare relevant outcomes, such as latency, query counts, write overhead, resource use and cost. For migrations or scaling changes, obtain a workload-specific rollback and monitoring plan.
Confirm host compatibility and model pricing separately. Preserve the pinned source and MIT notice when copying the definition. These are recommended next steps; none has been performed.
