Spec-driven feature delivery pipeline with Smart Ralph and Codex
From README links · today
Turned a vague feature request into reviewed specs, then executed tasks one
What they did
Started from a single feature request ("Add JWT authentication") and ran the Smart Ralph spec pipeline instead of letting an agent improvise code. The flow began with /start (or $ralph-specum-start in Codex), which detected scope: a single spec went straight to research, while anything too large was routed to triage, which split the goal into dependency-aware specs via exploration research, a triage analyst pass, validation research, and a finalized epic plan. For the single-spec path, the agent analyzed the codebase and searched the web to produce a research file, then wrote requirements as user stories with acceptance criteria, then a design doc covering architecture, patterns, and decisions, then a POC-first task breakdown. Each artifact stayed in the project so it could be reviewed or edited before moving on. Execution then ran task by task with fresh context, recording progress between tasks so a stopped session could resume. An optional prototype step was available to test one focused design question without promoting throwaway code to production.
How it went
Produced a reviewable spec trail (research, requirements, design, tasks) before any implementation, and execution advanced one task at a time with resumable state. The approach is designed to avoid the classic failure of agents drifting from requirements, since each phase is a persisted file the user can correct. Polish depends on reviewing artifacts between phases; the --quick flag skips approval prompts and trades review for speed.
Worth knowing
Requires installing the plugin for the right host: Claude Code uses /plugin marketplace add plus /plugin install and a restart, while Codex needs a sparse marketplace add and a new task. Automatic task execution in Codex depends on reviewing and trusting the bundled Stop hook via /hooks; until then you run $ralph-specum-implement once per task. Codex asks for approval after each artifact unless the exact --quick flag is passed. Triage quality and spec correctness still depend on the model and on the user editing artifacts.
Wiring
Install per host first. Claude Code: `/plugin marketplace add tzachbon/smart-ralph` then `/plugin install ralph-specum@smart-ralph`, restart, and invoke `/ralph-specum:start <slug> "<feature>"`. Codex: `codex plugin marketplace add tzachbon/smart-ralph --sparse .agents/plugins --sparse plugins/ralph-specum-codex` then `codex plugin add ralph-specum@smart-ralph`, start a new task, run `/hooks` to review and trust the Stop hook for automatic execution, otherwise call `$ralph-specum-implement` per task. Order of operations: /start detects scope; single spec goes research -> requirements -> design -> tasks -> execution; oversized goals go /triage -> exploration research -> triage analyst -> validation research -> epic plan -> individual specs. Use `$ralph-specum` to let the tool pick the next action, and add `--quick` only when you want to skip per-artifact approval. Spec artifacts persist in the project and progress is recorded between tasks for resume.
Try it yourself
Install Smart Ralph for this repo and take one feature from request to executed tasks. Use the Codex flow: run `codex plugin marketplace add tzachbon/smart-ralph --sparse .agents/plugins --sparse plugins/ralph-specum-codex` then `codex plugin add ralph-specum@smart-ralph`, start a new task, and run /hooks to review the Stop hook before trusting it. Then run `$ralph-specum-start <short-slug> "<feature description>"` for a single feature, or `$ralph-specum-triage "<larger goal>"` if it spans multiple systems. Do not pass --quick: stop after each artifact (research, requirements, design, tasks) and show it to me for edits. Keep all spec files in the repo, then execute task by task with $ralph-specum-implement, committing after each task and reporting progress so the run can resume if interrupted.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-codex-and-smart-ralphcurl -s https://api.runchr.com/api/recipes/runchr/stack-codex-and-smart-ralph/manifestThis stack has no prompt yet. You get the tools and the wiring, not the prompt.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-codex-and-smart-ralph/manifest.