A Rails development framework that leverages claude-swarm to create an intelligent team of AI agents specialized in different aspects of Rails development.
Instead of managing personas manually, ClaudeOnRails automatically orchestrates a swarm of specialized agents that work together like a real development team. Simply describe what you want to build, and the swarm handles the rest.
ClaudeOnRails creates a team of specialized AI agents:
- Architect: Coordinates development and makes high-level decisions
- Models: Handles ActiveRecord, migrations, and database design
- Controllers: Manages routing and request handling
- Views: Creates UI templates and manages assets
- Services: Implements business logic and service objects
- Tests: Ensures comprehensive test coverage
- DevOps: Handles deployment and infrastructure
Each agent works in their specific domain (directory) and can collaborate with other agents to implement complex features.
Add to your Rails application's Gemfile:
Then run:
This will:
- Analyze your Rails project structure
- Generate a customized swarm configuration
- Create agent-specific prompts
- Set up your development environment
Once the swarm is running, just describe what you want to build in the Claude interface:
The swarm automatically:
- Analyzes your request
- Delegates to appropriate specialists
- Implements across all layers (models, controllers, views, tests)
- Follows Rails best practices
- Ensures test coverage
When using AI assistants for Rails development, you typically need to:
- Manually coordinate different aspects of implementation
- Switch contexts between models, controllers, views, and tests
- Ensure consistency across different parts of your application
- Remember to implement tests, security, and performance considerations
With ClaudeOnRails, you simply describe what you want in natural language:
The swarm automatically:
- Creates models with proper validations and associations
- Implements controllers with authentication logic
- Builds views with forms and UI components
- Adds comprehensive test coverage
- Handles security considerations
- Optimizes database queries
All coordinated by specialized agents working together.
After running the generator, you'll have:
The generated claude-swarm.yml can be customized:
Customize agent behavior by editing prompts in .claude-on-rails/prompts/:
- Add project-specific conventions
- Include domain knowledge
- Define coding standards
- Automatic Agent Selection: No need to choose which persona to use
- Collaborative Implementation: Agents work together like a real team
- Rails-Aware: Deep understanding of Rails conventions and best practices
- Project Adaptation: Detects your project structure and adapts accordingly
- Test-Driven: Automatic test generation for all code
- Performance Focus: Built-in optimization capabilities
- Ruby 2.7+
- Rails 6.0+
- Claude Code CLI (npm install -g @anthropic-ai/claude-code)
- claude_swarm gem (automatically installed as a dependency)
See the examples directory for:
- E-commerce platform development
- API-only applications
- Real-time features with Turbo/Stimulus
- Performance optimization workflows
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
- Powered by claude-swarm
- Built for Claude Code
- Integrates with Rails MCP Server