A development framework for Ruby on Rails developers that uses Claude code, inspired by the SuperClaude language: Ruby
Project overview
ClaudeOnRails It is an orientation Ruby on Rails The project’s development framework, which integrates Claude‑swarm Build an “intelligent Rails development team” composed of multiple specialized AI agents. You only need to use natural language to describe the functions you want to go online, and AI does the rest: from architectural design to models, controllers, views, testing to DevOps and performance optimization.
Main functions and workflow
- multi-agent cooperation: Different tasks are handled by different agents:
- Architect is responsible for overall coordination and design
- Models manage ActiveRecord, migration, and database structure
- Controllers handle routing and request logic
- Views generate interface or API output
- Services handle business logic
- Tests Automatic test case generation
- DevOps (Deployment Operations and Maintenance) handles online and infrastructure
- Installation and initialization:
# Gemfile group :development do gem 'claude-on-rails' endthen performbundle install, and passed the orderrails generate claude_on_rails:swarmGenerate swarm configuration and Agent prompt files, etc. - Natural language triggers development: After starting Claude‑swarm, describe the functions in natural language in the Claude interface, for example:
Add user authentication with email confirmationThe system automatically disassembles tasks, and each agent collaborates to complete relevant code, tests, views, business logic, etc. - Smart adaptation to your project: This tool will automatically enable the corresponding agent based on your Rails project directory structure. For example, if it is an API-only application, the View agent will not be loaded; using the RSpec testing framework will also be detected and supported.
🚀Latest versions and extensions
- Version 0.2.0 was released on July 2, 2025, this update adds new and Rails MCP Server Integrated support for, allowing AI agents to make development judgments and optimizations based on real-time Rails documents
- By integrating MCP Server (Model Context Protocol Server), agents can start and stop development servers, view logs, read documents, etc., and can more accurately generate and make decisions based on official documents.
🧩Why is it worth paying attention?
- Natural language-driven development: There is no need to write code directly, use the password description function to allow the AI agent to automatically implement.
- End-to-end coverage: From design, models, interfaces, views to testing and performance optimization, it covers almost all aspects of Rails development.
- Automatic test generationAutomatically generate tests for each feature, improving code quality and reducing the risk of omissions.
- Real-time document verification: After integrating with Rails MCP Server, agents can query official documentation to ensure that the generated code is correct and consistent in style.
Usage suggestions
- Add gems to the project and generate swarm.
- Start Emperor
claude-swarm, enter the description of the function you want to build in Claude. - If you miss the MCP installation early, you can run it at any time
bundle exec rake claude_on_rails:setup_mcpto add this feature. - in
.claude-on-rails/prompts/andclaude-swarm.ymlCustomize the prompt and responsibilities of an agent in or add a specific domain agent. - It is often used in conjunction with local development, and pay attention to reviewing the code generated by AI to ensure that the style matches the business logic.
Summary table (sorting out key points)
| function | described |
|---|---|
claude-on-rails gem | Core plug-in to enable collaborative development of AI agents |
based on claude‑swarm | Collaborative agent framework, each performing its duties |
| automatically generate test | All functions generate corresponding test code |
| Scalable and customizable | Provide prompt files and configuration files for project adaptation |
| Integration with Rails MCP Server | Supports real-time document access and server control |
Github:https://github.com/obie/claude-on-rails
Oil tubing: