Introducing ClaudeOnRails

2 min read Original article ↗

Your AI-Powered Rails Development Team

Obie Fernandez

I’m excited to share ClaudeOnRails a new gem that transforms Claude into an intelligent team of Rails developers.

ClaudeOnRails leverages https://github.com/parruda/claude-swarm to create a team of specialized AI agents that work together just like a real Rails team would. You just describe what you want to build in natural language, and the swarm handles the rest.

Here’s how to get started:

# Add to your Gemfile
gem ‘claude-on-rails’, group: :development

# Generate your swarm configuration
rails generate claude_on_rails:swarm

# Start the swarm
claude-swarm

Then you just prompt something like:

> Create a user authentication system with email confirmation

The swarm automatically coordinates:
— The architect plans the implementation
— Models agent creates User model with proper validations
— Controllers agent implements authentication logic
— Views agent builds the forms
— Tests agent ensures comprehensive coverage
— Services agent extracts any complex business logic

Each agent works in their specific directory (following Rails conventions, naturally) and collaborates with other agents as needed. No more context switching. No more forgetting to write tests. Just natural language development with Rails best practices baked in.

The gem analyzes your Rails project structure and only creates agents for directories that exist. Got an API-only app? You’ll get an API specialist instead of a views agent. Using RSpec? The test agent knows that. It adapts to YOUR Rails app.

Note that this is brand new and experimental. Give it a try and let me know what you think.

https://github.com/obie/claude-on-rails