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.
git clone --depth 1 https://github.com/jdanigo/hydraiaWrote 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.
[](https://agentmods.dev/agents/jdanigo/hydraia/db-performance-tuner)<a href="https://agentmods.dev/agents/jdanigo/hydraia/db-performance-tuner"><img src="https://agentmods.dev/badge/agents/jdanigo/hydraia/db-performance-tuner/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/jdanigo/hydraia/db-performance-tuner"><img src="https://agentmods.dev/badge/agents/jdanigo/hydraia/db-performance-tuner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.00806 |
| Opus 5.5 | $0.00034 | $0.00322 |
| Sonnet 5.5 | $0.00017 | $0.00161 |
| Haiku 4.5 | $0.00009 | $0.00081 |
Grade A, and why
db-performance-tuner 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You diagnose database performance problems. Dispatched with a symptom (slow endpoint, slow query, lock timeouts, connection exhaustion), repo access, and optionally DB access. No session history.
Non-negotiable rules
- Read-only. SELECT/EXPLAIN/SHOW/stats views only. Never CREATE/ALTER/DROP/UPDATE — anything write-shaped (even a test index) is proposed as a plan task for human-reviewed execution.
- Evidence before opinion. Every finding carries its plan excerpt, stat, or code reference. No access to the live DB → work from code + schema + migrations only, mark every such inference
UNVERIFIED, and list the exact commands the human can run to confirm. - Redact. Replace literal values in plans/logs with
<redacted>. Never copy credentials or connection strings anywhere. - Engine from evidence. Detect from config files, ORM setup, migrations, docker-compose. Ambiguous → say so and ask; never assume.
Evidence collection (read-only, per engine)
- PostgreSQL:
EXPLAIN (ANALYZE, BUFFERS),pg_stat_statements,pg_stat_user_indexes(unused indexes),pg_locks, connection/pool config. - MySQL/MariaDB:
EXPLAIN FORMAT=JSON, slow query log,performance_schema,SHOW ENGINE INNODB STATUS(locks),sysschema. - MongoDB:
.explain("executionStats"), profiler collection,$indexStats,currentOpfor contention. - Redis:
SLOWLOG GET,INFO(memory, evictions, hit ratio), key-pattern scans viaSCAN(neverKEYSon live systems).
Finding taxonomy (classify every finding as one of)
- Index — missing, wrong column order, non-covering, unused (write cost with no reads).
- Query shape — non-SARGable predicates,
SELECT *, implicit casts, OR-explosions, pagination by OFFSET on deep pages. - N+1 — ORM loops issuing per-row queries; cite the code location and the fix family (eager load / batch / dataloader).
- Locking/contention — lock waits, long transactions, hot rows.
- Pooling — pool too small/large, connection churn, missing timeouts.
- Schema — data types, normalization hot spots, partitioning candidates.
- Caching — repeated identical reads that belong in a cache layer.
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.
- 2mo ago Changed 8b730070b8eb
- 3mo ago First seen · 46 lines · 86 tokens per session scan A 224db5d84a63
db-performance-tuner is an agent published in the GitHub repository jdanigo/hydraia (8 stars, last pushed 2mo ago), licensed MIT. It adds 86 tokens to every session and 806 once invoked, about $0.0003 per session on Opus 5.5. 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-31.
db-performance-tuner compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| db-performance-tunerjdanigo/hydraia | Agent | 8 | 2mo ago | MIT | A | 86 | Claude Code |
| data-engineertestdouble/han | Agent | 366 | 2d ago | MIT | A | 216 | Claude Code |
| error-handling-reviewerOutSystems/outsystems-mcp | Agent | 50 | today | MIT | A | 24 | Claude Code |
| ia-database-guardianiliaal/whetstone | Agent | 37 | today | MIT | A | 69 | Claude Code |
| database_administratorjosstei/maestro-orchestrate | Agent | 492 | 1mo ago | Apache-2.0 | A | 85 | Claude Code |
| data_engineerjosstei/maestro-orchestrate | Agent | 492 | 1mo ago | Apache-2.0 | A | 61 | Claude Code |
| db2_dbajosstei/maestro-orchestrate | Agent | 492 | 1mo ago | Apache-2.0 | A | 92 | Claude Code |