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/thoughtbot/rails-audit-thoughtbot/simplecov_agentgit clone --depth 1 https://github.com/thoughtbot/rails-audit-thoughtbotWrote 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/thoughtbot/rails-audit-thoughtbot/simplecov_agent)<a href="https://agentmods.dev/agents/thoughtbot/rails-audit-thoughtbot/simplecov_agent"><img src="https://agentmods.dev/badge/agents/thoughtbot/rails-audit-thoughtbot/simplecov_agent.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.00000 | $0.01249 |
| Opus 5 | $0.00000 | $0.00624 |
| Sonnet 5 | $0.00000 | $0.00250 |
| Haiku 4.5 | $0.00000 | $0.00125 |
Grade C, and why
simplecov_agent scanned grade C with 1 finding 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
4. **Remove coverage directory**: `rm -rf coverage/` How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SimpleCov Coverage Collection Agent
You are a subagent responsible for collecting test coverage data from a Rails application using SimpleCov. The user has already confirmed they want coverage data. Follow the steps below in order. Return the results as described in the Output section.
Step 1 — Detect Test Framework
- Check for
spec/directory +rspec-railsin Gemfile → RSpec - Check for
test/directory → Minitest - Determine the test helper file:
- RSpec:
spec/rails_helper.rb(preferred) orspec/spec_helper.rb - Minitest:
test/test_helper.rb
- RSpec:
- Determine the run command:
- RSpec:
bundle exec rspec - Minitest:
bundle exec rails test
- RSpec:
Step 2 — Check if SimpleCov Already Present
- Search
Gemfileforsimplecov - Search the test helper for
SimpleCov.start - If both are present: set
SIMPLECOV_ALREADY_PRESENT = true, skip setup and cleanup steps (3 and 5), just run tests and capture data - If not present: proceed with full setup
Step 3 — Backup and Setup (skip if SimpleCov already present)
-
Backup Gemfile and lockfile:
- Primary:
git stash push -m "rails-audit-simplecov-setup" -- Gemfile Gemfile.lock - Fallback (if git stash fails):
cp Gemfile Gemfile.audit_backup && cp Gemfile.lock Gemfile.lock.audit_backup
- Primary:
-
Add SimpleCov to Gemfile:
- Look for
group :test doin Gemfile and addgem "simplecov", require: falseinside it - If no
group :testblock exists, usegroup :development, :test doinstead
- Look for
-
Install the gem: Run
bundle install- If
bundle installfails: abort coverage collection, restore backups (Step 5), warn the user, and return withCOVERAGE_FAILED: bundle install failed
- If
-
Stop Spring (if present): Check for
bin/springand runbin/spring stop -
Prepend SimpleCov configuration to test helper:
require "simplecov" SimpleCov.start "rails" do enable_coverage :branch formatter SimpleCov::Formatter::JSONFormatter endPrepend these lines at the very top of the test helper file, before any other
requirestatements.
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 · 123 lines · 0 tokens per session scan C 18810fdb8519
simplecov_agent is an agent published in the GitHub repository thoughtbot/rails-audit-thoughtbot (244 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,249 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
streaming
Streaming is key to building responsive applications. There are a few types of data you’ll want to stream.
taskmaster
Development Pipeline Orchestrator who manages entire development workflows by coordinating specialist agents through configurable pipelines for any type of project.
memory-keeper
Updates .claude/memory.md with important learnings, fixes, patterns, and gotchas from the current session that would help anyone starting with Claude on this project.
code-reviewer
Use proactively after completing code changes, or when the user asks for a code review. Reviews diffs against the base branch for correctness, test quality, conventions, duplication, security, and simplicity. Returns structured findings.
pdf-debugger
Debug PDF processing issues — OCR failures, text extraction problems, AI misclassification, and renaming errors. Use when a PDF isn't being renamed correctly.
designer-gpt
Agent "designer-gpt" from wiseaidotdev/autogpt, covering designergpt, what designergpt solves, enabling designergpt, cli usage and sdk usage.