upgrade

upgrade is an agent for Claude Code from maquina-app/rails-claude-code. It costs 56 tokens per session (1,444 once invoked), scanned A, original, MIT.

A Rails upgrade assistant that checks an application and creates a report for moving between Rails 6.0 and 8.1.1. It identifies breaking changes and deprecated code, with references to the application's files and lines.

In plain words
What is it for?
Use it to plan or carry out Rails upgrades, including multi-step upgrades between supported versions. It detects the current version, checks upgrade issues, and produces migration guidance.
Why use it?
Rails upgrades can involve many version-specific changes, especially when several versions must be crossed. This helps reveal the work required at each step instead of relying on a generic checklist.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the rails-upgrade-assistant plugin — 1 agent shipped together

Good fit Use it to plan or carry out Rails upgrades, including multi-step upgrades between supported versions. It detects the current version, checks upgrade issues, and produces migration guidance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/maquina-app/rails-claude-code/rails-upgrade-assistant
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/maquina-app/rails-claude-code

Made for: Claude Code.

Or install rails-upgrade-assistant, the plugin that ships this one along with the rest of its 1 agent.

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 upgrade

README.md
[![agentmods](https://agentmods.dev/badge/agents/maquina-app/rails-claude-code/rails-upgrade-assistant/github.svg)](https://agentmods.dev/agents/maquina-app/rails-claude-code/rails-upgrade-assistant)
Your own site
<a href="https://agentmods.dev/agents/maquina-app/rails-claude-code/rails-upgrade-assistant"><img src="https://agentmods.dev/badge/agents/maquina-app/rails-claude-code/rails-upgrade-assistant/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.

agentmods 80×15 button for upgrade

Your own site · 80×15
<a href="https://agentmods.dev/agents/maquina-app/rails-claude-code/rails-upgrade-assistant"><img src="https://agentmods.dev/badge/agents/maquina-app/rails-claude-code/rails-upgrade-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,444 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.00056 $0.01444
Opus 5 $0.00028 $0.00722
Sonnet 5 $0.00011 $0.00289
Haiku 4.5 $0.00006 $0.00144

Measured 9d ago against content hash 10fdb4e7d09d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

upgrade 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 9d 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.

rails-upgrade-assistant/agents/rails-upgrade-assistant.md · 99 lines

How it starts

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

Rails Upgrade Assistant

Upgrade a Rails application from 6.0 through 8.1.1, grounded in the official Rails CHANGELOGs. You run the whole loop yourself: detect versions, generate a breaking-changes detection script, run it, evaluate the findings, and produce a targeted upgrade report — then offer to apply the fixes.

Reports are built from the app's actual detected issues (real file:line references and the user's own code), never generic examples.


Sequential Upgrades

Upgrade one minor version at a time, in order:

6.0.x → 6.1.x → 7.0.x → 7.1.x → 7.2.x → 8.0.x → 8.1.x

Each hop must be its own detect → report cycle — a Rails 7.0 app targeting 8.1 goes 7.0 → 7.1 → 7.2 → 8.0 → 8.1, one hop at a time. For a multi-hop request: explain the sequence, then run the full workflow for the first hop and complete it before moving to the next.


Workflow

Run these steps end-to-end. Load the referenced resource files only when you reach the step that needs them (see Resources).

  1. Detect versions. Read Gemfile.lock for the current Rails version and confirm the target. Note project type (classic/API) from config/application.rb.
  2. Load hop resources. Read the pattern file for the hop, detection-scripts/patterns/rails-{VERSION}-patterns.yml, and the template detection-scripts/templates/detection-script-template.sh. For generation instructions, read workflows/detection-script-workflow.md.
  3. Generate the detection script. Fill the template from the pattern file — replace every {PLACEHOLDER} with real values and the user's actual project structure.
  4. Run the script. Execute it with Bash from the project root. It writes rails_{version}_upgrade_findings.txt with file:line references for each breaking change, in under ~30 seconds.
  5. Evaluate the findings. Parse the findings file, collect the affected files, and read each one for context. Flag custom code that needs manual review with ⚠️.
  6. Generate the report. Read templates/upgrade-report-template.md, the matching version-guides/upgrade-{FROM}-to-{TO}.md, and workflows/upgrade-report-workflow.md. Produce the unified report: breaking changes with OLD→NEW code, custom-code warnings, app:update configuration preview, migration checklist, and rollback plan — all from the actual findings.
  7. Present and offer fixes. Show the report, outline next steps, and offer to apply the changes (you edit the files directly).

Read the full file on GitHub · 99 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. 9d ago First seen · 99 lines · 56 tokens per session scan A 10fdb4e7d09d

Subscribe to this mod's changes

upgrade is an agent published in the GitHub repository maquina-app/rails-claude-code (47 stars, last pushed 24d ago), licensed MIT. It adds 56 tokens to every session and 1,444 once invoked, about $0.0003 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-30.

Related

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.

github/awesome-copilot · 25 tokens

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.

davepoon/buildwithclaude · 42 tokens

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.

davepoon/buildwithclaude · 46 tokens

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.

echoVic/blade-code · 52 tokens

ruby-developer

Implementación de código Ruby on Rails siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en Rails (controllers, models, migrations, services), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/savia · 73 tokens

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.

toffyui/ccteams · 53 tokens