rubyllm
Skill4.4k starsChanged 3 months agoMITView on GitHub
Build and maintain Ruby or Rails applications with the RubyLLM AI framework. Use for chats, agents, tools, MCP servers, structured output, judgments, evaluations, media generation, transcription, OCR, moderation, embeddings, reranking, tracing, Rails integration, and RubyLLM upgrades; not for contributing to the framework itself.
1 other project uses a version of this.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- kaka-ruto/skillstheir own version, first seen Apr 23, 2026
Who's talking about crmne/ruby_llm
- A Hacker News story“RubyLLM: A delightful Ruby way to work with AI”Hacker News · Mar 11, 2025 · 645 points
- @michaelkoper.com“This new LLM wrapper really shows the beauty of Ruby 👌 github.com/crmne/ruby_llm”Bluesky · Mar 15, 2025 · 19 likes
- A Hacker News story“RubyLLM 1.2.0: Universal OpenAI Compatibility & Custom Models”Hacker News · Apr 17, 2025 · 6 points
- A Hacker News story“Ruby_LLM: A delightful Ruby way to work with AI”Hacker News · Mar 13, 2025 · 4 points
- @hacker-news-jp.bsky.social“RubyLLM: AIをRubyで操作する楽しい方法 RubyLLM: A delightful Ruby way to work with AI 🔺 319 💬 20 🔗 HN Post | Article”Bluesky · Mar 15, 2025 · 3 likes
The biggest 5 of 87 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 87
Talked about on GitHub, Bluesky and Hacker News (87 times).
On GitHub · 46
- Aug 13, 2025gpt-5-mini and other models missing data — parsera-labs/api-llm-specs2 reactions · 1 comment
- Feb 14, 2026chore(deps): update dependency ruby_llm to v1.13.2 — zewelor/ps_events1 reaction · 6 comments
- Nov 11, 2025Use RubyLLM for Gemini recommendations — sh1nj1/plan421 reaction · 9 comments
- Jul 31, 2025Add support for RubyLLM::Message Content — traceloop/openllmetry-ruby1 reaction · 3 comments
- Oct 4, 2026Bump ruby_llm from `be80b6f` to `5ea3d8d` — chloerei/ruby_llm_demo0 reactions
41 more on GitHub
- Aug 17, 2026chore(deps): bump ruby_llm from 1.11.0 to 1.16.0 — Learning-Routes/Learning-routes0 reactions
- Aug 15, 2026Bump ruby_llm from 1.9.2 to 1.16.0 — pappdavid/edemocracy-hu-localisation-verification0 reactions · 1 comment
- Jul 25, 2026Bump ruby_llm from 1.4.0 to 1.16.0 — Stoopidrice/recipe-waifu0 reactions
- Jul 13, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — LMR271/guide-rails0 reactions
- Jul 8, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — Rupa08/plant_care_app0 reactions
- Jul 4, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — jcparfait/Bill0 reactions
- Jul 4, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — naraidk/Chatbot-dog0 reactions
- Jun 24, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — fi11theblanks/situationship-playlist0 reactions
- Jun 16, 2026build(deps): bump ruby_llm from 1.14.1 to 1.16.0 — jbigorra/the-interview0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — GBaum01/Brainstreak0 reactions
- Jun 15, 2026build(deps): bump ruby_llm from 1.15.0 to 1.16.0 — calmacleod/Transactions0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — tomlpzpro/archi_mind0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — Matelis-Git/world-census0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — Claire-d-3/startup-sheriff0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — adrianoterrazas2019-web/nutri-chat0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — ItsMeJade319/AI-vet-chatbot0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — theodora22/AI-Creator-System0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — tomlpzpro/Dreamer-x-maker0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — paul-lesueur/popwearchatbot0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — LhordeS/who-is-the-villain0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — NathanMdt61/OrientIA0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — mjc-gh/isaac0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — AstralVixen373/lore-generator0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — Loranger-dev/dog_chatbot0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — igor-estevao/ruby_llm_review_overview0 reactions
- Jun 15, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — tomasjef/plant-match0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — Tobideimon/THE_BARTENDER0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — Nabi-Biva/nutri-coach0 reactions
- Jun 15, 2026build(deps): bump ruby_llm from 1.14.1 to 1.16.0 — gustavoxpto/instructional-design-app0 reactions
- Jun 15, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — elia48/githealth0 reactions
- Jun 14, 2026Bump ruby_llm from 1.14.1 to 1.16.0 — vyncem/rag_chatbot0 reactions
- Jun 14, 2026build(deps): bump ruby_llm from 1.15.0 to 1.16.0 — pstrzalk/hifumi-dev0 reactions
- Jun 13, 2026Bump ruby_llm from 1.14.0 to 1.16.0 — sdfreund10/calorie-ai0 reactions
- Jun 12, 2026chore(deps): bump ruby_llm from 1.15.0 to 1.16.0 — husseymarcos/handshake0 reactions
- Jun 11, 2026Bump ruby_llm from 1.14.1 to 1.16.0 — vivek-rubylab/rag-chatbot-demo0 reactions
- Jun 11, 2026Bump ruby_llm from 1.2.0 to 1.16.0 — julesLefur/fish_app0 reactions
- Jun 10, 2026Bump ruby_llm from 1.15.0 to 1.16.0 — rodrigotoledo/ai_finance_control0 reactions
- Jun 10, 2026Bump ruby_llm from 1.14.1 to 1.16.0 — cyrillepierre-c44/cyrillepierre0 reactions
- Jun 10, 2026Build(deps): bump ruby_llm from 1.15.0 to 1.16.0 — HandleIT-Club/Mikhael0 reactions
- May 13, 2026chore(deps): bump ruby_llm from 1.14.1 to 1.15.0 — riggy/rygiel_net_v20 reactions
- May 11, 2026Bump ruby_llm from 1.14.1 to 1.15.0 — mattszein/pro-rails0 reactions
On Bluesky · 32
- Mar 15, 2025This new LLM wrapper really shows the beauty of Ruby 👌 github.com/crmne/ruby_llm — @michaelkoper.com19 likes and reposts
- Mar 15, 2025RubyLLM: AIをRubyで操作する楽しい方法 RubyLLM: A delightful Ruby way to work with AI 🔺 319 💬 20 🔗 HN Post | Article — @hacker-news-jp.bsky.social3 likes and reposts · 1 reply
- Mar 28, 2025🔗 crmne/ruby_llm https://github.com/crmne/ruby_llm — @kinduff.com2 likes and reposts
- Mar 24, 2025Loving RubyLLM! Definitely simplifies the integration of LLMs with Rails. As someone who has to build and ship web apps with Gen AI… — @handle.invalid2 likes and reposts · 1 reply
- Mar 15, 2025"RubyLLM: A delightful Ruby way to work with AI" RubyLLM makes using AI easy and fun for Ruby programmers. People are excited about its… — @hackerbriefs.bsky.social2 likes and reposts
27 more on Bluesky
- Mar 15, 2025GitHub - crmne/ruby_llm: A delightful Ruby way to work with AI. No configuration madness, no complex callbacks, no handler hell – just… — @tech-trending.bsky.social2 likes and reposts
- Mar 15, 2025Discovered this fantastic Ruby gem for chatting with LLMs today: github.com/crmne/ruby_llm. Very well put together! 👍🏻 — @ejstembler.bsky.social2 likes and reposts
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social2 likes and reposts
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI Discussion — @hackernewsbot.bsky.social2 likes and reposts
- Mar 16, 2025A delightful Ruby way to work with AI. No configuration madness, no complex callbacks, no handler hell – just beautiful, expressive Ruby… — @clipsoflogic.bsky.social1 likes and repost
- Mar 16, 2025https://github.com/crmne/ruby_llm RubyでAIを扱うためのライブラリです。 設定や複雑なコールバックが不要で、美しいRubyコードでAIを操作できます。 AIを使った開発をRubyで行いたい開発者におすすめです。 — @topickapp.bsky.social1 likes and repost
- Mar 16, 2025github.com/crmne/ruby_llm おおー。サクッと使うのにめっちゃ良さそう。 — @hekki.bsky.social1 likes and repost
- Mar 16, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm — @mm-hacker-news.bsky.social1 likes and repost
- Mar 16, 2025RubyLLM: A delightful Ruby way to work with AI (@github.com) Main Link | Discussion — @newsycombinator.bsky.social1 likes and repost
- Mar 16, 2025https://github.com/crmne/ruby_llm — @genya0407.social.genya0407.link.ap.brid.gy1 likes and repost
- Mar 15, 2025🌐RubyLLM: AI を扱うための楽しい Ruby の方法 https://github.com/crmne/ruby_llm via #HackerNews — @kdmsnr.com1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm (http://news.ycombinator.com/item?id=43331847) — @newsyc500.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm github.com — @hnbest.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm (http://news.ycombinator.com/item?id=43331847) — @newsyc250.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm (http://news.ycombinator.com/item?id=43331847) — @newsyc200.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI (github.com) Discussion | Main Link — @newsycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm https://news.ycombinator.com/item?id=43331847 — @hn100.atproto.rocks1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI view on hacker news — @ycombinatorbot.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI https://github.com/crmne/ruby_llm — @hnbot.gsuscs.xyz1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI #HackerNews https://github.com/crmne/ruby_llm — @hackernewstop5.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI L: https://github.com/crmne/ruby_llm C: https://news.ycombinator.com/item?id=43331847 posted… — @hnws.bsky.social1 likes and repost
- Mar 15, 2025RubyLLM: A delightful Ruby way to work with AI Discussion — @hn100.bsky.social1 likes and repost
On Hacker News · 9
- Mar 11, 2025RubyLLM: A delightful Ruby way to work with AI645 points · 169 comments
- Apr 17, 2025RubyLLM 1.2.0: Universal OpenAI Compatibility & Custom Models6 points
- Mar 13, 2025Ruby_LLM: A delightful Ruby way to work with AI4 points
- Mar 14, 2025Ruby LLM3 points
- Jun 9, 2026RubyLLM 1.16: concurrent tool execution, Rails-style instrumentation, and more2 points
4 more on Hacker News
- Jul 30, 2025RubyLLM 1.4.0: Structured Output, Custom Parameters, and Rails Generators2 points
- Apr 8, 2025RubyLLM 1.1.0: AWS Bedrock support and more2 points
- Apr 2, 2025RubyLLM 1.1.0rc1 is out with Bedrock support and other improvements2 points
- Nov 5, 2025RubyLLM 1.9.1: Rails Namespaces, Vertex AI Auth and Anthropic Uploads1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- kaka-ruto/skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- contributingSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Use the application's installed RubyLLM version and existing conventions.
- Distinctive: line 32
Read the relevant page instead of loading the entire documentation site:
- Very specific: line 64
Start with RubyLLM.chat for a conversation.
- Very specific: line 67
Read text through message.content and structured output through message.parsed.
- Very specific: line 69
Use with_thinking, with_caching, with_compaction, and with_citations without arguments to enable them and false to disable them.
- Very specific: line 72
Use with_fallbacks for alternate models, with_provider_tools for provider-hosted tools, and progress inside a long-running tool with …
- Very specific: line 73
Use RubyLLM.context for per-tenant credentials or endpoints, and an agent context block when the configuration depends on the agent's …
- Very specific: line 74
Use shared RubyLLM options when available.
- Very specific: line 75
Read tokens through message.tokens.input, .output, .cache_read, .cache_write, and .thinking.
- Very specific: line 98
Run with bin/rails "ruby_llm:eval[SupportEvaluation]", SupportEvaluation.run, or evaluates SupportEvaluation in RSpec or Minitest after …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build with RubyLLM
Use the application's installed RubyLLM version and existing conventions. This skill describes the 2.x API; features marked 2.1 need RubyLLM 2.1 or later. Read Gemfile.lock, or inspect the installed gem before choosing an API:
bundle exec ruby -rruby_llm -e 'puts RubyLLM::VERSION'
bundle show ruby_llmFor a 1.x application, use its version's documentation and keep the requested change on 1.x unless the user asks for an upgrade. Adding an AI feature does not require upgrading the application's framework.
Choose the API for the task
RubyLLM has two public API families: conversations use chats, messages, tools, agents, structured output, streaming, and loop control; individual operations use paint, animate, speak, transcribe, ocr, moderate, embed, rerank, judge, tokenize, and research. Individual operations return typed results without requiring a chat. Some stream or have an asynchronous lifecycle.
Providers supply service endpoints, authentication, catalogs, and protocol selection. Protocols translate requests and responses. Both API families use this integration layer and shared services for model selection, configuration, accounting, and instrumentation. Build against the public API and let RubyLLM handle the service formats.
Rails integration adds persistence, attachments, streaming UI support, jobs, and generators around the same Ruby API.
Find the relevant API
The installed gem's public method signatures and RDoc describe the code the application actually runs. Use them when online documentation differs. Find the matching version through RubyLLM's documentation. The root site documents the latest stable release. Unreleased changes on main are under rubyllm.com/next/, and 1.x under rubyllm.com/v1/.
Read the relevant page instead of loading the entire documentation site:
| Task | Guide path under the matching documentation version |
| Understand the framework's structure | overview/ |
| Configure a provider or select a model | configuration/, configuration-providers/, models/ |
| Chat, stream, or attach files | chat/, streaming/, attachments/ |
| Declare tools or require approval | tools/, tool-parameters/, tool-execution/ |
| Use tools from MCP servers (2.1) | mcp/ |
| Use provider-hosted tools such as web search | provider-tools/, citations/ |
| Parse structured output | structured-output/ |
| Build reusable agents | agents/, prompt-rendering/ |
| Enable thinking or prompt caching | thinking/, prompt-caching/ |
| Generate images or video | image-generation/, video-generation/ |
| Generate speech or transcribe audio | text-to-speech/, audio-transcription/ |
| Extract document text or moderate content | ocr/, moderation/ |
| Embed text or rank search results | embeddings/, rerank/, rag/ |
| Classify, score, or decide with typed answers (2.1) | judgments/ |
| Measure answer quality against a dataset (2.1) | evaluations/, evaluation-datasets/, evaluation-evaluators/, evaluation-running/, evaluation-examples/ |
| Count tokens, upload provider files, or run hosted research | tokenization/, files/, hosted-research/ |
| Persist chats, attach files, or stream with Hotwire | rails/, rails-persistence/, rails-streaming/, rails-generators/, rails-advanced-config/ |
| Resume agents in background jobs | durable-agents/ |
| Track spend or handle failures | cost-and-usage-tracking/, error-handling/ |
| Observe calls, group workflows, or trace with OpenTelemetry | instrumentation/, opentelemetry/ (2.1) |
| Submit batches or drive the conversation loop | batches/, agentic-workflows/ |
| Upgrade an existing application | upgrading/ |
Markdown guides use the same name with .md, such as chat.md. The API reference starts at api/RubyLLM.md; class references include api/RubyLLM/Chat.md and api/RubyLLM/Agent.md. If fetching documentation is unavailable, inspect the installed source and identify any remaining uncertainty.
Use the 2.x API consistently
- Configure credentials through
RubyLLM.configure, following the application's secret storage. Select an existing configured provider. Verify explicit model IDs withRubyLLM.models.find(id, provider: ...); do not invent IDs or useassume_model_existsto hide a typo. - Start with
RubyLLM.chatfor a conversation. Set options with chainablewith_*methods. UseRubyLLM::Agentwhen instructions, tools, or options should be reused. Ordinary Ruby methods and jobs compose workflows. - Use individual operations directly for media, document processing, moderation, embeddings, and reranking. Read their typed results and use
saveon generated images, video, and speech. Check each operation's provider, model, and credentials; a configured chat provider may not offer every operation.animatewaits for completion; useanimate_laterwhen the application needs to manage the job. askruns the conversation and returns a message.ask_laterstages input and returns the chat. For explicit loop control, usegenerate,run_tools,step, andcomplete?. Approval can park the loop before completion; inspectawaiting_approval?and resume afterapproveordeny.- Read text through
message.contentand structured output throughmessage.parsed. Declare schemas withSchematist::Schemaor the schema DSL. Do not assumecontentis a parsed Hash. - Subclass
RubyLLM::Tool. Usedescription,parameter, or aparametersblock, and keyword arguments onexecute. Register tools withwith_tools; configure choice and concurrency withwith_tool_options. Keep application authorization in the tool or underlying service. Userequires_approvalwhen the product needs a user's decision before execution. - Use
with_thinking,with_caching,with_compaction, andwith_citationswithout arguments to enable them andfalseto disable them. They rejectnil. Read the relevant guide for supported options and model requirements. - Connect MCP servers by subclassing
RubyLLM::MCP(urlorcommand, thenonlyandrequires_approvalto shape tools) and attach them withchat.with_mcp(...)or the agentmcpmacro (2.1). Do not add a separate MCP client gem. - For a yes/no probability, a choice, or a score about application data, subclass
RubyLLM::Judgeand call.judge(input)instead of parsing free text from a chat (2.1). Backends are TypeSafe's Jev, OpenAI Decisions, and local decision models such as Clef withprovider: :ollama. - Use
with_fallbacksfor alternate models,with_provider_toolsfor provider-hosted tools, andprogressinside a long-running tool withafter_tool_progresson the chat (2.1) to report it. - Use
RubyLLM.contextfor per-tenant credentials or endpoints, and an agentcontextblock when the configuration depends on the agent's inputs (2.1). - Use shared RubyLLM options when available. Reserve
provider_optionsfor provider-specific request fields. Do not add a second provider SDK for functionality RubyLLM already supplies. - Read tokens through
message.tokens.input,.output,.cache_read,.cache_write, and.thinking; read cost throughmessage.cost.total. Unknown cost isnil, not zero. The ledger includes individual attempts; a successful answer can include earlier failed attempts. Attribute usage outside a chat record withowner:orRubyLLM.with_usage_owner. - Group related calls with
RubyLLM.workflowandworkflow.stepfor instrumentation. To send traces to an existing OpenTelemetry setup, callRubyLLM::OpenTelemetry.enableafter configuring the SDK (2.1). RubyLLM never configures the SDK or exporters, and does not export prompts or responses. - RubyLLM enums are Symbols:
finish_reason == :stop, thinking effort:high. Provider slugs and model IDs remain Strings.
Integrate with Rails
For a new integration, use bin/rails generate ruby_llm:install, review its migrations, and follow the application's migration workflow. Load packaged model data with bin/rails ruby_llm:load_models. RubyLLM.models.refresh performs a network refresh and persists the result.
Applications own their chat and message models, declared with acts_as_chat and acts_as_message. RubyLLM owns the supporting model, tool-call, usage, and batch tables, plus MCP credential and provider file tables from 2.1. Do not generate application Model or ToolCall classes from 1.x examples. Pass custom chat and message mappings to the generators when the application uses different names.
Use the same chat API on persisted records. Persisted ask returns the application's message record. Use the existing job backend for background work; retrieve and configure agents through their documented persistence API when a job resumes in another process. Prompt templates live under app/prompts by convention.
Pass Active Storage attachments through with: and retain the message attachment association set up by the install generator. For a Hotwire UI, use the Rails streaming guide or ruby_llm:chat_ui generator: persisted messages provide the targets for Turbo Streams. Individual operations work directly in Rails services and jobs with the same methods as plain Ruby.
For an upgrade, read the complete matching upgrade guide before editing migrations. Each release's upgrade covers only the changes since the previous release, so upgrade one release at a time; a 1.x application completes the 2.0 upgrade first. The 2.0 cutover requires preparation, backfill, finish, and application-specific reconciliation before affected activity resumes. Legacy-column cleanup is a later phase. Checkpoints make a stopped backfill resumable; retained columns do not make a 1.x code rollback safe. Rehearse against an isolated snapshot and respect the application's deployment and recovery process.
Evaluate AI behavior
Specs check code; evaluations check how often the model gets the answer right (2.1). Put a RubyLLM::Evaluation subclass and its dataset in app/evals, named after the class (support_evaluation.rb and support_evaluation.yml). perform(input) runs the application and returns a string, Message, Chat, or Agent. Each case has name, inputs, and usually expected_output.
- Without declared criteria, a model checks each answer against
expected_output, which every case must then supply.evaluation :name, "statement"declares criteria and replaces that default;evaluation :correctnesswithout a description keeps it. assertionsuses Minitest assertions withoutput,tool_calls,messages,input,expected_output, andmetadata. Assertions do not turn off grading;evaluator falsedoes. Outside Rails, assertions needgem "minitest".- Choose the grader with
evaluator model: ..., an Agent class, or a Judge class withevaluation :name, minimum: 0.8. - Run with
bin/rails "ruby_llm:eval[SupportEvaluation]",SupportEvaluation.run, orevaluates SupportEvaluationin RSpec or Minitest after extendingRubyLLM::Evaluation::RSpecorRubyLLM::Evaluation::Minitest. Model grading costs money on every run, so keep graded evaluations out of the default test run unless the application records requests.
Verify the application change
Run the application's relevant tests. Test tool business behavior, structured parsing, persisted conversation reconstruction, and job resumption where the change depends on them. Verify model calls with the application's existing recording or integration-test setup when needed; report which provider behavior was actually exercised. Keep the implementation within the requested feature and existing application architecture.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

