A Ruby on Rails engine for orchestrating AI agents with built-in observability, multi-tenancy, and asynchronous processing.
Current Status: Early Development - Epic 1 in Progress
Progress: 6/16 stories complete (37.5%)
| Epic | Progress | Status |
|---|---|---|
| Epic 1: "Hello, Agent!" Experience | 6/8 (75%) | 🟡 In Progress |
| Epic 2: "Useful Agent" - Tooling & Outputs | 0/3 (0%) | ⏸️ Pending |
| Epic 3: "Observable Agent" - UI | 0/2 (0%) | ⏸️ Pending |
| Epic 4: "Secure & Production-Ready Agent" | 0/3 (0%) | ⏸️ Pending |
- Core Models & Installation - Rails generator with Agent and Execution models
- Model Structure Alignment - LLM configuration and execution tracking
- Prompt File Generation - Consistent generator behavior across framework
- Agent Generation -
rails g catalyst:agentfor creating custom agents - RubyLLM Integration - Multi-provider LLM support (OpenAI, Anthropic, Gemini)
- Single Agent Execution API - Synchronous agent execution with comprehensive tracking
- Agentic Iteration Loop & Limits - Max iterations control for agent reasoning
- Asynchronous Execution - ActiveJob integration for background processing
For development/testing:
# Add to your Rails application's Gemfile
gem "catalyst", path: "path/to/catalyst"Then run:
bundle install
rails g catalyst:install-
Install the framework:
rails g catalyst:install rails db:migrate
-
Create an agent:
rails g catalyst:agent MyAgent
-
Configure API keys (see
config/initializers/ruby_llm.rb) -
Execute your agent:
# Create an agent agent = ApplicationAgent.create!( role: "Marketing Assistant", goal: "Create compelling marketing content", backstory: "Expert in brand marketing", agent_attributes: { name: "Marketing Agent", model: "gpt-4.1-nano" } ) # Execute synchronously response = agent.execute("Create a tagline for a new coffee shop") puts response # => "Brew Your Dreams, One Cup at a Time" # Check execution history agent.executions.last.status # => "completed" agent.executions.last.duration # => 2.3 seconds
- Product Requirements - Complete feature specifications
- Architecture - Technical design and patterns
- Epic 1 Progress - Current development status
This project is in active development. See our PRD for the complete roadmap.
The gem is available as open source under the terms of the MIT License.