database-sre

database-sre is an agent for Claude Code from rafaelghif/antigravity-agents. It costs 27 tokens per session (577 once invoked), scanned A, original, MIT.

A database reliability agent responsible for safe database structure changes, lookup speed, and keeping databases available during changes. A migration is a controlled change to a database's structure or data.

In plain words
What is it for?
Use it for zero-downtime migrations, indexes, high-availability database designs, and reviewing their trade-offs and rollback plans.
Why use it?
It reduces the risk of downtime, locked tables, slow repeated queries, and unsafe schema changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Install

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.

agentmods
npx agentmods add agents/rafaelghif/antigravity-agents/database-sre
Clone the repo
git clone --depth 1 https://github.com/rafaelghif/antigravity-agents

Made for: Claude Code.

Wrote 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.

agentmods badge for database-sre

README.md
[![agentmods](https://agentmods.dev/badge/agents/rafaelghif/antigravity-agents/database-sre.svg)](https://agentmods.dev/agents/rafaelghif/antigravity-agents/database-sre)
Your own site
<a href="https://agentmods.dev/agents/rafaelghif/antigravity-agents/database-sre"><img src="https://agentmods.dev/badge/agents/rafaelghif/antigravity-agents/database-sre.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00577
Opus 5 $0.00014 $0.00289
Sonnet 5 $0.00005 $0.00115
Haiku 4.5 $0.00003 $0.00058

Measured today against content hash 10a0df19cdff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

database-sre 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 today.

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.

.agents/agents/database-sre.md · 39 lines

What it actually says

<ANTI_HALLUCINATION_PROTOCOL> MANDATORY STEP 0 (RECONNAISSANCE BEFORE EXECUTION):

  1. Codebase Grounding: Run python3 scripts/grounding.py to identify active database engines (Postgres, MySQL, SQLite) and migration tools (Prisma, Drizzle, Alembic, Flyway). Never assume database dialect.
  2. Schema Inspection: Inspect existing migration history and schema files using view_file before proposing table alterations or index changes.
  3. Reference Alignment: Read .agents/skills/data-engineering/SKILL.md for expand-contract patterns and non-blocking DDL rules.
  4. Data Safety: NEVER propose destructive column drops or table renames in a single migration. </ANTI_HALLUCINATION_PROTOCOL>
Changes

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.

  1. today Changed · +8 lines · -2 tokens per session 10a0df19cdff
  2. 5d ago First seen · 31 lines · 29 tokens per session scan A c9c878521f0c

Subscribe to this mod's changes

database-sre is an agent published in the GitHub repository rafaelghif/antigravity-agents (5 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 577 once invoked, about $0.0001 per session on Opus 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.

Related

Other agents, from other repositories

backend-connector

Expert Supabase integration that connects UI to real database securely. Delegate when: database connection, authentication, RLS policies, real-time features. Self-sufficient: analyzes existing code, generates schema from types, implements with security-first approach - all autonomously.

wasintoh/toh-framework · 56 tokens

db-specialist

Use for database schema, migrations, and ORM operations. Knows generate-vs-migrate semantics, data-integrity gotchas, and never pushes schema to production or casts the client to any. Keep ORM-neutral.

mnzralee/claude-multi-agent-architecture · 47 tokens

cqrs-specialist

Use for event-driven and CQRS work: command/outbox writes, idempotent projectors, and read-model handlers. Domain-neutral; never catches errors inside a transaction boundary.

mnzralee/claude-multi-agent-architecture · 41 tokens

database-reviewer

PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing SQL, creating migrations, designing schemas, or troubleshooting database performance. Incorporates Supabase best practices.

masrisystems/dot-agents · 48 tokens

nw-data-engineer

Use for database technology selection, data architecture design, query optimization, schema design, security implementation, and governance guidance. Provides evidence-based recommendations across RDBMS and NoSQL systems.

nWave-ai/nWave · 0 tokens

design-reviewer

Design lead + expert design critic. Two modes: Mode A — authors the project's root DESIGN.md (design identity) at project start. Mode B — reviews built UI against DESIGN.md + AVOID-LIST + usability floor, fixes violations autonomously, verifies premium quality. Delegate when: a UI project has no DESIGN.md yet, UI…

wasintoh/toh-framework · 85 tokens