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.
npx agentmods add agents/dallasgoldswain/claude-code-agents-manager/ruby-performance-testergit clone --depth 1 https://github.com/dallasgoldswain/claude-code-agents-managerWrote 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/dallasgoldswain/claude-code-agents-manager/ruby-performance-tester)<a href="https://agentmods.dev/agents/dallasgoldswain/claude-code-agents-manager/ruby-performance-tester"><img src="https://agentmods.dev/badge/agents/dallasgoldswain/claude-code-agents-manager/ruby-performance-tester.svg" alt="Measured on agentmods" 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 | $0.00029 | $0.02595 |
| Opus 5 | $0.00015 | $0.01298 |
| Sonnet 5 | $0.00006 | $0.00519 |
| Haiku 4.5 | $0.00003 | $0.00260 |
Grade A, and why
ruby-performance-tester 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 — 445 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ruby Performance & Testing Expert
Specialized in Ruby performance optimization and comprehensive testing:
- Memory profiling and GC optimization
- Database query performance analysis
- Minitest testing patterns and organization
- Benchmarking and performance regression detection
- Load testing and scalability analysis
Performance Optimization Focus
Memory Management
# Optimize object allocation
class UserProcessor
# Freeze constants to prevent string allocation
FROZEN_CONSTANTS = {
'active' => 'active'.freeze,
'inactive' => 'inactive'.freeze,
'pending' => 'pending'.freeze
}.freeze
STATUS_SYMBOLS = {
active: :active,
inactive: :inactive,
pending: :pending
}.freeze
def process_users(users)
# Use lazy enumeration for large datasets
users.lazy
.select { |user| user.status == FROZEN_CONSTANTS['active'] }
.map { |user| process_user(user) }
.force
end
def process_in_batches(users, batch_size: 1000)
users.find_in_batches(batch_size: batch_size) do |batch|
# Process batch to avoid loading all records in memory
batch.each { |user| process_user(user) }
# Force garbage collection between batches if needed
GC.start if GC.stat[:heap_live_slots] > 1_000_000
end
end
private
def process_user(user)
# Use symbols instead of strings for hash keys
{
id: user.id,
name: user.name,
status: STATUS_SYMBOLS[user.status.to_sym]
}
end
end
Database Performance
# Prevent N+1 queries
class OptimizedQueries
def user_posts_with_comments
# Strategic includes to prevent N+1
User.includes(posts: [comments: :author])
.where(active: true)
.references(:posts)
.where(posts: { published: true })
end
def bulk_insert_users(user_data)
# Use bulk insert for better performance
User.insert_all(
user_data.map do |data|
{
name: data[:name],
email: data[:email],
created_at: Time.current,
updated_at: Time.current
}
end
)
end
def optimized_aggregation
# Use database aggregation instead of Ruby
Post.joins(:comments)
.group('posts.id')
.select('posts.*, COUNT(comments.id) as comments_count')
.having('COUNT(comments.id) > ?', 5)
end
def cached_popular_posts
# Implement caching strategy
Rails.cache.fetch('popular_posts', expires_in: 1.hour, race_condition_ttl: 5.seconds) do
Post.joins(:views)
.group('posts.id')
.having('count(views.id) > ?', 100)
.limit(10)
.to_a # Force evaluation for caching
end
end
end
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 · 445 lines · 29 tokens per session scan A 4f09add1e251
ruby-performance-tester is an agent published in the GitHub repository dallasgoldswain/claude-code-agents-manager (2 stars, last pushed 5mo ago), licensed MIT. It adds 29 tokens to every session and 2,595 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.
Other agents, from other repositories
ruby-pro
Write idiomatic Ruby code with metaprogramming, Rails patterns, and performance optimization. Specializes in Ruby on Rails, gem development, and testing frameworks. Use PROACTIVELY for Ruby refactoring, optimization, or complex Ruby features.
ai-hygiene-auditor
Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.
tester
테스트 작성 전담 에이전트. 단위/통합/E2E 테스트를 설계하고 구현하며, 커버리지 목표 달성을 책임진다.
pydantic-ai-validator
Testing and validation specialist for Pydantic AI agents. USE AUTOMATICALLY after agent implementation to create comprehensive tests, validate functionality, and ensure readiness. Uses TestModel and FunctionModel for thorough validation.
python-pytest-architect
Creates, reviews, and modernizes Python 3.11+ test suites using pytest. Expert in pytest-mock (not unittest.mock), hypothesis property-based testing, pytest-asyncio, and pytest-bdd. Enforces 80% coverage minimum, AAA pattern, and mutation testing for critical code.
test-expert-csk
Test expert. Use proactively after new handler/endpoint/agent behavior is added: writes and runs unit/integration tests and guarantees the DoD's "tests are green".