rails_agent_console adds `ai`, `ai!`, `ask` and `explain` to the Rails console you already use. It describes your real schema (models, columns, associations) to an LLM, gets back one ActiveRecord query, checks it call by call against a read-only allowlist, fixes the model's common mistakes in code, and runs it only after you confirm. Works with OpenAI, Anthropic, Gemini, Ollama or any OpenAI-compatible endpoint, at about 1,700 tokens per question.

Required Ruby Version

>= 3.1.0

Authors

Ivan Blažević

Versions

  1. 0.1.0 September 29, 2026 (54 KB)

Pushed by

SHA 256 checksum