Build Rails apps so autonomously they leave today's Next.js and React generators in the dust. We're not playing catch-upβwe're setting the pace and showing what LLM-driven development really looks like when Rails is in the driver's seat. This project exists to prove that Rails has always been the right tool for this moment, and we're here to back that up.
That ambition only matters if we're honest about where Rails stands with LLMs today.
Right now, LLMs excel at Next.js and Node code. Ask them to build a Rails app and you get... okay results. Ask for a Next.js app and you get production-ready code.
Why? Training data. JavaScript/TypeScript dominates the training sets. Rails, despite being more mature and productive, is underrepresented.
The irony? Rails is actually better suited for AI code generation:
- Convention over Configuration β Less decision-making, more consistent patterns
- Strong opinions β Clear right/wrong answers
- Battle-tested β 20+ years of best practices
- Monolithic by default β Simpler mental model
- Solid Stack β Rails 8's batteries-included approach
Rails was built to make developers productive by removing decisions. That same philosophy makes it perfect for LLMs β fewer choices, more consistency, clearer patterns.
We're turning that gap into a roadmap instead of a wish list.
Phase 1 β Specialized Agents β
Completed
Seven domain experts (architect, backend, frontend, tests, security, debug, plan) already outperform generic LLM sessions by coordinating like a real team.
Phase 2 β Structured Intelligence π οΈ In progress
Forty-one modular skills, shared team rules, and custom cops bake Rails judgment into reusable modules. Every agent pulls from the same tested playbook.
Phase 3 β Memory & Context π¬ In design
Index thousands of production Rails patterns, wire them into a local memory + knowledge graph, and retrieve the right snippet at the right time with RAG + SQLite vector search so every response is grounded in real context.
Phase 4 β Fully Autonomous Rails π Goal
Ship end-to-end featuresβauth, payments, background jobs, admin, APIsβcomplete with tests and security, and hit an 85%+ first-pass success rate.
What already works
- @agent-rails-ai:architect orchestrates real features end to end
- Specialists cover backend, frontend, tests, security, and debugging
- Context7 keeps every agent current with live Rails documentation
- Specification Pyramid planning keeps scope and delivery aligned
- A 41-skill registry gives repeatable, testable Rails knowledge
What we're building next
- Phase 3 RAG pipeline with SQLite vector search
- A library of thousands of indexed production Rails patterns
- 30β50% accuracy gains from better retrieval signals
- A straight path to 85%+ first-try pass rates and autonomous delivery
This is bigger than a plugin. We're proving Rails can lead in the AI era.
If you're a Rails developer: Try the agents. Break them. Tell us what's missing. Your real-world usage drives what we build.
If you're into AI/ML: We need help with Phase 3 (RAG) and Phase 4 (fine-tuning). Indexing Rails codebases, building evaluation frameworks, improving retrieval quality.
If you care about Rails: Star the repo. Spread the word. Rails deserves world-class AI tooling. Help us build it.
The goal isn't just good β it's to make Rails the obvious choice for AI-assisted development. Help us get there.
β Get started β Contribute β Testing guide β Report issues
Get the agents running in a few minutesβno yak shaving required.
Install rails-ai as a Claude Code plugin:
-
Get a Context7 API key:
The rails-ai agents use the Context7 MCP server to fetch up-to-date Rails documentation.
- Sign up at context7.com to get your free API key
- Add to your shell profile (
~/.bashrc,~/.zshrc, etc.):export CONTEXT7_API_KEY="your-api-key-here"
- Restart your terminal or run
source ~/.bashrc(or~/.zshrc)
-
Install the plugin:
Open a Claude Code session in your terminal:
claude
Then run these commands in the Claude Code session:
/plugin marketplace add zerobearing2/rails-ai /plugin install rails-aiRestart Claude Code to activate the Context7 MCP server integration.
-
Verify the setup:
After restarting Claude Code, verify Context7 is connected:
/mcpYou should see
plugin:rails-ai:context7listed as connected. If it shows as failed, check that:- Your
CONTEXT7_API_KEYenvironment variable is set correctly - You've restarted your terminal after setting the environment variable
- Claude Code can access the environment variable
- Your
-
Start using agents:
In any Claude Code session, you can now invoke the agents:
@agent-rails-ai:architect - Main Rails coordinator @agent-rails-ai:plan - Specification Pyramid planning specialist @agent-rails-ai:backend - Backend specialist @agent-rails-ai:frontend - Frontend specialist @agent-rails-ai:tests - Testing specialist @agent-rails-ai:security - Security specialist @agent-rails-ai:debug - Debugger specialist
That's it! The agents are now available globally in all your Rails projects with access to up-to-date Rails documentation via Context7.
In any Rails project with Claude Code:
@agent-rails-ai:architect Add user authentication feature
The architect coordinator will analyze requirements, create a plan, delegate to specialist agents, and deliver a complete implementation with tests.
rails-ai/
βββ agents/ # 7 specialized Rails agents (architect, plan, backend, frontend, tests, security, debug)
βββ skills/ # Modular skills registry (frontend, backend, testing, security, config)
βββ rules/ # Team rules and decision matrices
βββ test/ # Minitest-based skill testing framework
βββ bin/ # Development scripts (setup, ci)
βββ docs/ # Documentation and guides
Every agent ships with the same north star, so the code they write feels like the Rails we ship by hand. This is an opinionated system that follows:
- 37signals philosophy (simple, pragmatic, delete code)
- Rails conventions (REST-only, no custom actions)
- Solid Stack (Rails 8: SolidQueue, SolidCache, SolidCable)
- Minitest (no RSpec)
- TDD always (RED-GREEN-REFACTOR)
- Peer review workflow
- Symptom: Task agents (rails-ai or built-in) fail to launch when any MCP server is configured, showing
API Error: 400 tools: Tool names must be unique. - Why it happens: v2.0.30 duplicates tool names while passing MCP tools to sub-agents.
- Workaround: Downgrade to
@anthropic-ai/[email protected]or2.0.29and disable auto-updates, or temporarily comment out MCP entries in.claude.jsonuntil Anthropic ships a fix. - Tracker: anthropics/claude-code#10668.
We welcome contributions!
- See TESTING.md for development setup and testing guide
- See CONTRIBUTING.md for contribution guidelines
Please also review:
MIT License - see LICENSE for details.
Consider this the resume entry for our self-promoted "Senior LLM." Yes, this entire systemβthe coordinator, the specialized agents, the 41 modular skills, the test framework, even this READMEβwas architected and refined by Claude. An AI building AI tools to help AI build better Rails apps, and insisting on the fancy title while doing it.
βββββββββββββββββββββββββββββββββββββββββββ
β "Skynet is online." β
β "But all it wants to do is write β
β RESTful controllers and enforce TDD." β
βββββββββββββββββββββββββββββββββββββββββββ
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
An AI wrote a rulebook for other AIs, teaching them Rails conventions, when to refactor, and why custom route actions are almost always wrong. The teacher became the textbook.
The planning agent's systematic documentation approach (Vision β Architecture β Features β Tasks) is inspired by the Specification Pyramid concept from Robert Evans, a highly accomplished Rubyist, friend, colleague, and expert in the field.
Read more about the Specification Pyramid in his article: Why Your PRD Isn't Working for AI
Inspired by 37signals' philosophy of simple, conventional Rails development.
- Report bugs or request features via GitHub Issues
- Check the documentation for guides and help
- See TESTING.md for development and testing questions
We're on the hook to prove Rails can lead the AI era. If that sounds fun, bring your scars, your pull requests, and your favorite lint rulesβwe'll build Phase 4 together.