tzachbon/smart-ralph
Spec-driven development with smart compaction. Claude Code plugin combining Ralph Wiggum loop with structured specification workflow.
What it solves
Smart Ralph is a spec-driven development framework for AI coding agents (specifically Claude Code and Codex). It prevents agents from jumping straight into coding without a plan, instead forcing a structured process of research, requirements gathering, and technical design before any implementation begins. This ensures that complex features are well-thought-out and can be resumed or audited across multiple sessions.
How it works
The project implements a multi-agent workflow where different specialized agents handle specific phases of development:
- Triage: Splits large goals into smaller, dependency-aware specs (Epics).
- Research: Analyzes the existing codebase and searches the web for feasibility.
- Requirements: Defines user stories and acceptance criteria.
- Prototype: (Optional) Tests a specific design question in a disposable environment.
- Design: Defines the architecture and technical trade-offs.
- Tasks: Breaks the design into a sequence of executable tasks.
- Execution: Implements the tasks one by one, using fresh context for each task and applying quality gates (POC, refactoring, testing, and linting).
It also includes a codebase indexing feature that scans projects to create searchable component specs, helping the research agents find existing code more efficiently.
Who it’s for
Developers using Claude Code or OpenAI Codex who want a more disciplined, architectural approach to AI-assisted feature development rather than simple prompt-based code generation.
Highlights
- Spec-Driven Workflow: Forces a sequence of research $\rightarrow$ requirements $\rightarrow$ design $\rightarrow$ tasks $\rightarrow$ implementation.
- State Persistence: Records progress in
.progress.mdandtasks.md, allowing work to be resumed after a session stop. - Codebase Indexing: Automatically scans controllers, services, and models to create a searchable index for the AI.
- Multi-Agent Specialization: Uses distinct roles (e.g.,
triage-analyst,product-manager,architect-reviewer) for different phases. - Flexible Execution: Supports both a detailed "normal" mode with approval checkpoints and a "quick" mode for faster iteration.
Related
- Project
- Project
- Project
- Project
- Project