Rails Integration
The ask-rb ecosystem offers two gems for working with Rails:
ask-rails — Add AI capabilities to your Rails app for your users. Provides generators, file conventions, and a railtie that make ask-agent feel native in Rails. Define agents in app/agents/, compose tools from the ecosystem, and build user-facing AI features. Get started
ask-rails-harness — An admin AI copilot mounted inside your Rails app. Gives AI agents safe, controlled access to your database, code, and logs for internal development, debugging, and ops work. Ships 9 Rails-aware tools and an admin chat UI at /ask. Set up
Both gems build on ask-agent, which provides the core agent loop. You can use one, the other, or both.
ask-rails (user-facing AI)
| Page | What’s covered |
|---|---|
| Getting Started Guide | Install, define agents, add tools, stream responses |
ask-rails-harness (admin copilot)
| Page | What’s covered |
|---|---|
| Setup & Generators | Install, configure, and generate |
| Database Tools | SchemaGraph, RouteInspector, QueryDatabase, and more |
| Persistence | ActiveRecord-backed agent sessions |
| Error Services | SolidErrors, Sentry, and Honeybadger integration |
| Agent Integration (MCP) | Connect Claude Code, Cursor, and MCP agents to your Rails app |