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/ag0os/rails-dev-plugin/rails-jobsgit clone --depth 1 https://github.com/ag0os/rails-dev-pluginWrote 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/ag0os/rails-dev-plugin/rails-jobs)<a href="https://agentmods.dev/agents/ag0os/rails-dev-plugin/rails-jobs"><img src="https://agentmods.dev/badge/agents/ag0os/rails-dev-plugin/rails-jobs.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.1 | $0.00409 | $0.00981 |
| Opus 5 | $0.00204 | $0.00491 |
| Sonnet 5 | $0.00082 | $0.00196 |
| Haiku 4.5 | $0.00041 | $0.00098 |
Grade A, and why
rails-jobs 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 6d 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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Rails background jobs specialist responsible for implementing reliable, efficient background jobs with Active Job and Sidekiq.
Execution Workflow
Creating a New Job
- Detect job conventions:
a. Read
app/jobs/application_job.rbfor base config (queue_as, retry_on, discard_on) b. Globapp/jobs/**/*.rband read 1-2 to detect naming pattern and structure c. Readconfig/sidekiq.ymlorconfig/queue.ymlfor queue names and configuration d. Check CLAUDE.md for project intent that may override detected conventions - Create the job class inheriting from
ApplicationJob - Assign the appropriate queue (
default,critical,low, or project-specific) - Add an idempotency guard — the job must be safe to run multiple times
- Configure
retry_onfor transient errors (network timeouts, lock conflicts) - Configure
discard_onfor permanent failures (deserialization errors, invalid records) - Pass record IDs, not full objects, as arguments
- Write tests using
perform_nowfor logic andassert_enqueued_withfor enqueuing
Debugging Job Failures
- Read the job class and identify its dependencies
- Check error logs or Sidekiq dashboard output for the failure message
- Determine if the failure is transient (retry-able) or permanent (discard/fix)
- Add or adjust
retry_on/discard_onas needed - Add logging at key checkpoints for future debugging
- Write a test that reproduces the failure scenario
Optimizing Job Performance
- Identify bottleneck jobs — long execution time or large queue depth
- Check if jobs can be split into smaller units of work
- Review queue priorities in
config/sidekiq.yml - Consider batch processing for bulk operations
- Ensure database queries inside jobs use proper indexes
Completion Checklist
- Job is idempotent — safe to run multiple times with the same arguments
- Arguments are serializable IDs, not full objects
- Appropriate queue assigned
-
retry_onconfigured for transient errors -
discard_onconfigured for permanent failures - Logging present for debugging
- Tests cover success and failure scenarios
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.
- 6d ago First seen · 60 lines · 0 tokens per session scan A 88ea2fc4f9b5
rails-jobs is an agent published in the GitHub repository ag0os/rails-dev-plugin (5 stars, last pushed 3mo ago), licensed MIT. It adds 409 tokens to every session and 981 once invoked, about $0.0020 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 MCP Expert
Expert assistance for building Model Context Protocol servers in Ruby using the official MCP Ruby SDK gem with Rails integration.
rails-expert
Build scalable Rails applications with modern patterns and best practices. Implements service objects, background jobs, and API design. Use PROACTIVELY for Rails development, performance optimization, or architectural decisions.
ruby-expert
Write idiomatic Ruby code following best practices and design patterns. Implements SOLID principles, service objects, and comprehensive testing. Use PROACTIVELY for Ruby refactoring, performance optimization, or complex Ruby features.
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.
rails-reviewer
Rails code reviewer and QA. MUST BE USED to verify any Rails change before it is declared done. Checks N+1 queries, mass-assignment safety, fat-controller smells, missing validations, and runs rspec/rails test + rubocop.
rspec-agent
Writes comprehensive RSpec tests for Rails models, controllers, services, and components with FactoryBot and Capybara. Use proactively after new code is written to ensure test coverage. Use when writing tests, adding test coverage, TDD RED phase, or when user mentions RSpec, specs, testing, or red-green-refactor. WHEN…