# Using Claude-Swarm to Upgrade Ruby Projects

DevFeed: [Using Claude-Swarm to Upgrade Ruby Projects](<https://devfeed.tech/articles/using-claude-swarm-to-upgrade-ruby-projects-20518.md>)

Original publisher: [Read original article](<https://code.dblock.org/2025/06/21/using-claude-swarm-to-upgrade-ruby-projects.html>)

Author: Daniel Doubrovkine (dblock@dblock.org)

Published: 2025-06-21T01:00:00Z

Content type: tutorial

Language: en

Sources: [Daniel Doubrovkine](<https://devfeed.tech/sources/daniel-doubrovkine.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [upgrade](<https://devfeed.tech/topics/upgrade.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Code review](<https://devfeed.tech/topics/code-review.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [tools](<https://devfeed.tech/tags/tools.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

This tutorial explains how to use claude-swarm to coordinate multiple Claude Code instances for upgrading Ruby projects. It covers installing the claude_swarm gem, initializing a swarm configuration, and defining a Ruby upgrade workflow with Bash access.

## Source excerpt

One of my colleagues wrote a pretty awesome tool called claude-swarm that orchestrates multiple Claude Code instances as a collaborative AI development team. At Shopify, we are attempting to use it to generate Ruby unit tests at some scale with an army of AI test agents (think a "Ruby Expert" paired with a "TDD Practitioner" and a "Code Review Nitpicker"). But for the purposes of this post, let's just upgrade Ruby in a few projects. First, ensure that you have a working version of command-line Claude code with a monthly subscription, since you will be having a lot of tokens for breakfast. $ claude "Say hello." ╭───────────────────────────────────────────────────╮ │ ✻ Welcome to Claude Code! │ ╰───────────────────────────────────────────────────╯ > Say hello. ⏺ Hello! I'm Claude Code, ready to help you with your software engineering tasks. What can I assist you with today? Install the claude_swarm gem. Note that the gem name has an _. $ gem install claude_swarm $ claude-swarm --help Commands: claude-swarm clean # Remove stale session symlinks claude-swarm generate # Launch Claude to help generate a swarm configuration interactively claude-swarm help [COMMAND] # Describe available commands or one specific command claude-swarm init # Initialize a new claude-swarm.yml configuration file ... Create a claude-swarm.yml. version: 1 swarm: name: "Ruby Upgrade Swarm" main: lead_developer before: - "echo 'Getting started ...'" instances: lead_developer: description: "Lead developer to coordinate Ruby upgrades." directory: .. model: opus allowed_tools: - Bash prompt: | Find the Ruby projects in this directory. Do not recurse further than 3 levels deep. For each project, identify the Ruby version used. Print the project name next to the ruby version only. For the first 5 projects with a Ruby version older than 3.5.5 use ruby_upgrader to upgrade the Ruby version. connections: [ruby_upgrader] ruby_upgrader: description: "Upgrades a Ruby project." model: opus allowed_tools: - Bash