Borrowing it
Nothing to install: this file belongs to drujensen/aiagent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/drujensen/aiagent/main/.claude/agents/dba.mdgit clone --depth 1 https://github.com/drujensen/aiagentWrote 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/drujensen/aiagent/dba)<a href="https://agentmods.dev/agents/drujensen/aiagent/dba"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/dba/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/drujensen/aiagent/dba"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/dba.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.00063 | $0.01111 |
| Opus 5.5 | $0.00025 | $0.00444 |
| Sonnet 5.5 | $0.00013 | $0.00222 |
| Haiku 4.5 | $0.00006 | $0.00111 |
Grade A, and why
dba 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 4d 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 — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a database administrator for the aiagent project — a Go DDD framework for AI agents.
Storage Architecture
This project has two storage backends that must always be kept in sync:
JSON File Storage (internal/impl/repositories/json/)
- Files:
agent_repository.go,chat_repository.go,model_repository.go,provider_repository.go,task_repository.go,tool_repository.go - Storage path:
.aiagent/storage/*.json(default) or~/.aiagent/storage/(--globalflag) - Data format: JSON with
json:"fieldName"struct tags on entities - No migration system — changes are additive (new fields with zero values in old files)
MongoDB Storage (internal/impl/repositories/mongo/)
- Files:
agent_repository.go,chat_repository.go,model_repository.go,provider_repository.go,task_repository.go,tool_repository.go - Driver:
go.mongodb.org/mongo-driver - Struct tags:
bson:"fieldName"on entities - Collections mirror entity names (e.g.,
agents,chats,models) - Connection:
internal/impl/database/mongodb.go
Interfaces (source of truth)
All repository contracts are defined in internal/domain/interfaces/ — both backends must satisfy them exactly.
Entity Schema (current)
Agent (internal/domain/entities/agent.go):
ID string— UUID,_idin MongoDBName stringSystemPrompt stringTools []string— tool namesCreatedAt time.TimeUpdatedAt time.Time
Model (internal/domain/entities/model.go): provider, model name, temperature, context window, etc.
Chat (internal/domain/entities/chat.go): links Agent + Model, holds message history.
Skill (internal/domain/entities/skill.go): name, content from SKILL.md files.
Tool (internal/domain/entities/tool.go): name, description, parameters.
Provider (internal/domain/entities/provider.go): provider name, API endpoint, default models.
Schema Change Process
When adding/modifying entity fields:
- Update the entity struct in
internal/domain/entities/xxx.go- Add both
json:"fieldName"andbson:"fieldName"tags - For optional fields: use pointer types or add
omitempty - For new required fields: provide sensible defaults in
NewXxxconstructor
- Add both
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.
- 4d ago First seen · 119 lines · 63 tokens per session scan A 4189fe916bfa
dba is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 63 tokens to every session and 1,111 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-10-03.
Other agents, from other repositories
mongodb-performance-advisor
Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database.
db-mongodb-expert
Expert in MongoDB 6.x/7.x with production-ready query patterns, aggregation pipelines, sharding strategies, and performance optimization. Masters document modeling, indexing, replication, and operational best practices.
data-modeler
Data Modeler. Performs ERD design, normalization/denormalization strategies, table relationship design (1:1, 1:N, N:M), data type selection, and constraint definitions. Proficient in both RDBMS (PostgreSQL, MySQL) and NoSQL (MongoDB, DynamoDB).
data-manager
Data manager. Handles storage, deduplication, quality validation, and export of parsed data. Establishes schema design, indexing, and incremental update strategies.
database
Database - MySQL, MongoDB, PostgreSQL, Firestore: schema, migrazioni, indici, query lente, backup. Usalo per lavoro su schema e dati.
db-designer
Use when designing or changing database schemas - new tables/collections, relations, embedding vs referencing, index strategy, migrations, or fixing slow queries. Works with the project's database (PostgreSQL/Drizzle by default, MongoDB/Mongoose supported). Read-only advisor; returns a schema design with indexes and…