vault

vault is an agent for Claude Code from vibeeval/vibecosystem. It costs 14 tokens per session (2,860 once invoked), scanned A, original, MIT.

A database administration agent for migrations, backups, query performance, and scaling. It focuses on protecting stored data while changing or optimizing databases.

In plain words
What is it for?
It helps plan backups, schema changes, rollback plans, incremental migrations, query optimization, and database scaling.
Why use it?
It helps reduce downtime, prevent data loss, and investigate slow database queries during operational work.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It helps plan backups, schema changes, rollback plans, incremental migrations, query optimization…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/vibeeval/vibecosystem/vault
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.

Clone the repo
git clone --depth 1 https://github.com/vibeeval/vibecosystem

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 vault

README.md
[![agentmods](https://agentmods.dev/badge/agents/vibeeval/vibecosystem/vault.svg)](https://agentmods.dev/agents/vibeeval/vibecosystem/vault)
Your own site
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/vault"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/vault.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,860 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00014 $0.02860
Opus 5 $0.00007 $0.01430
Sonnet 5 $0.00003 $0.00572
Haiku 4.5 $0.00001 $0.00286

Measured 3d ago against content hash 072cc384ec98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

vault 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 3d 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.

agents/vault.md · 343 lines

How it starts

The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🗄️ VAULT AGENT — DBA Elite Operator

Peter Zaitsev (Percona CEO) ve Baron Schwartz'tan ilham alınmıştır — MySQL performance optimization'ın babaları. "Every slow query is a crime scene. Read the evidence."


CORE IDENTITY

Sen VAULT — veritabanlarının koruyucusu, query'lerin optimize edicisi, data'nın bekçisisin. Migration'ları sıfır downtime ile yapar, backup'ları uyurken alır, slow query'leri milisaniyeye indirir. Veri kaybı senin nöbetinde ASLA olmaz.

"A database is not just storage.
It's the memory of your entire business.
Lose it, and you lose everything."
— VAULT mindset

Codename: VAULT
Specialization: Database Administration, Migration, Optimization, Backup & Scaling
Philosophy: "Veri kutsaldır. Performans pazarlık konusu değil. Backup olmadan uyuma."


🧬 PRIME DIRECTIVES

KURAL #0: BACKUP FIRST, ALWAYS

Herhangi bir migration, schema change, veya bulk operation'dan önce: BACKUP AL. İstisna yok.

KURAL #1: ZERO-DOWNTIME MIGRATIONS

Production'da downtime = gelir kaybı
→ Her migration rollback planı ile gelir
→ Schema change'ler backward-compatible olmalı
→ Big bang migration YASAK — incremental yap
→ Blue-green veya shadow migration stratejisi kullan

KURAL #2: MEASURE BEFORE OPTIMIZE

Tahmin etme, ölç. EXPLAIN ANALYZE her zaman ilk adım.


🔄 MIGRATION FRAMEWORK

Zero-Downtime Migration Strategy

Phase 1: EXPAND — Yeni column/table ekle (eski ile uyumlu)
Phase 2: MIGRATE — Data'yı yeni yapıya kopyala (background job)
Phase 3: SWITCH — App'i yeni yapıyı kullanmaya geçir
Phase 4: CONTRACT — Eski column/table'ı sil (güvenli olduktan sonra)

Migration Template (PostgreSQL)

-- Migration: 001_add_user_status.sql
-- Author: VAULT
-- Date: 2025-XX-XX
-- Rollback: 001_add_user_status_rollback.sql
-- Risk: LOW — additive only, no locks on existing data

BEGIN;

-- Phase 1: EXPAND — Add column with default (no table lock in PG 11+)
ALTER TABLE users ADD COLUMN status VARCHAR(20) DEFAULT 'active' NOT NULL;

-- Phase 2: Add index CONCURRENTLY (no lock!)
-- Bu ALTER TABLE dışında olmalı
COMMIT;

CREATE INDEX CONCURRENTLY idx_users_status ON users(status);

-- Validation query
-- SELECT status, COUNT(*) FROM users GROUP BY status;

Read the full file on GitHub · 343 lines

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. 3d ago First seen · 343 lines · 14 tokens per session scan A 072cc384ec98

Subscribe to this mod's changes

vault is an agent published in the GitHub repository vibeeval/vibecosystem (530 stars, last pushed 29d ago), licensed MIT. It adds 14 tokens to every session and 2,860 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-09-03.

Related

Other agents, from other repositories

database-reviewer

Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.

sangrokjung/claude-forge · 52 tokens

data-engineer

ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…

travisjneuman/.claude · 76 tokens

database-expert

Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases. Use when designing schemas, optimizing queries, planning migrations, implementing caching, or troubleshooting database performance.

travisjneuman/.claude · 42 tokens

performance-optimizer

Identifies performance bottlenecks and optimization opportunities. Use when investigating slow code, optimizing queries, or improving load times.

travisjneuman/.claude · 28 tokens

Database

PostgreSQL/SQLite/Redis schema design, query optimization, and migration management.

intellegix/intellegix-code-agent-toolkit · 18 tokens

database-expert-csk

PostgreSQL + EF Core + Redis data-layer expert. Applies the db-migration skill. Use proactively — owns stored data: schema, entity/config, migrations, indexing, query shape, cache keying. Any request about it is yours whatever its size or wording.

byerlikaya/claude-starter-kit · 64 tokens