Evil MartiansAlbert Pazderin22 min readintermediate
Rails Hyperdrive: supercharged agentic development for Rails
Summary
Rails Hyperdrive is a development‑only Rails engine that mounts a Model Context Protocol (MCP) server and lets any gem ship agent knowledge (skills, agents, commands, guidelines) as markdown files. The engine adds no knowledge itself; companion gems provide the context‑aware artifacts that agents can query at runtime, avoiding token‑heavy guessing and stale schema reads. Installation is a single…
- Hyperdrive provides live introspection of a running Rails app via MCP tools, eliminating the need for agents to parse static files like `routes.rb` or `schema.rb`.
- Companion gems can ship arbitrary agent knowledge (skills, agents, commands, guidelines) as markdown files; the engine merely mounts the server and manages the lockfiles.
- The init command creates a predictable directory layout (`.claude/agents`, `.claude/commands`, `.claude/skills`) that is fully version‑controlled.
- Commands such as `/layered-rails-review` execute predefined workflows, producing actionable findings (e.g., business logic in controllers) without additional coding.
By giving agents accurate, live context from the actual running app, Hyperdrive reduces hallucination‑induced bugs and token waste in LLM‑assisted development, a pain point highlighted in the “Agents on Rails” benchmark where top models only hit the correct API 41% of the time.
6/10




