Sandbox
@tony/claude-code-riper-5

RIPER-5 workflow harness for Claude Code

This repo provides a guided Claude Code workflow that moves through research, planning, execution, and review. It uses custom slash commands, consolidated subagents, and a memory bank to keep work organized and reproducible.

93 stars11 forksUpdated 1mo ago
Who it's for

Builders who use Claude Code and want a repeatable workflow for larger tasks.

What it delivers

You can keep agent work in a clear research-plan-execute-review flow instead of jumping straight into implementation.

What it does

Strict workflow mode

`/riper:strict` turns on protocol enforcement before you start work.

Research and innovate phases

`/riper:research` and `/riper:innovate` run in read-only mode so the agent can investigate before coding.

Planning phase

`/riper:plan` creates technical specs and can write to the memory bank.

Execution phase

`/riper:execute` implements the approved plan, or a specific step like `/riper:execute 2.3`.

Review phase

`/riper:review` checks the implementation against the plan and can run tests.

Memory bank commands

`/memory:save`, `/memory:recall`, and `/memory:list` store and retrieve project context.

Claude Code project setup

`project-info.md`, `riper-config.json`, and `settings.json` let you adapt the workflow to your project.

How to get it

  1. 1Copy the .claude directory to your project root
    cp -r .claude /path/to/your/project/
  2. 2Optional: Add .claude/memory-bank/ to .gitignore to keep plans and reviews private
    echo ".claude/memory-bank/" >> .gitignore
  3. 3Or selectively ignore just plans and reviews while keeping memory bank structure
    echo ".claude/memory-bank/*/plans/" >> .gitignore
  4. 4Run
    echo ".claude/memory-bank/*/reviews/" >> .gitignore
  5. 5Note: If you accidentally commit these, remove them before merging
    git rebase -i HEAD~n  # where n is number of commits to review
  6. 6Start a guided RIPER session
    /riper:strict

README

RIPER Workflow for Claude Code

Research • Innovate • Plan • Execute • Review

A structured, context-efficient development workflow for Claude Code using custom slash commands and subagents.

🎯 Overview

RIPER creates a controlled, guided flow that enforces separation between research, planning, and execution phases. This helps:

  • Reduce context usage through specialized agents
  • Prevent premature implementation before understanding
  • Maintain clear documentation of decisions
  • Enable reproducible development processes

🚀 Quick Start

Installation

  1. Copy the .claude directory to your project root:
cp -r .claude /path/to/your/project/
  1. Update .claude/project-info.md with your project details

  2. Customize .claude/riper-config.json with your tech stack and paths

  3. Optional: Add .claude/memory-bank/ to .gitignore to keep plans and reviews private:

    echo ".claude/memory-bank/" >> .gitignore
    

    Or selectively ignore just plans and reviews while keeping memory bank structure:

    echo ".claude/memory-bank/*/plans/" >> .gitignore
    
    echo ".claude/memory-bank/*/reviews/" >> .gitignore
    

    Note: If you accidentally commit these, remove them before merging:

    git rebase -i HEAD~n  # where n is number of commits to review
    

Basic Usage

Start a guided RIPER session:

/riper:strict

Then use the workflow commands:

  1. Research - Investigate the codebase

    /riper:research analyze authentication system
    
  2. Plan - Create technical specifications

    /riper:plan add OAuth2 support
    
  3. Execute - Implement the approved plan

    /riper:execute
    

    Or execute a specific substep:

    /riper:execute 2.3
    
  4. Review - Validate implementation

    /riper:review
    

📚 Commands Reference

RIPER Workflow Commands

CommandDescriptionMode Restrictions
/riper:strictEnable strict protocol enforcementNone
/riper:researchEnter research mode (read-only)Read only
/riper:innovateBrainstorm approaches (optional)Read only
/riper:planCreate technical specificationsRead + Write to memory bank
/riper:executeImplement approved planFull access
/riper:execute <step>Execute specific plan stepFull access
/riper:reviewValidate against planRead + Test execution
/riper:workflowFull guided workflowVaries by phase

Memory Bank Commands

CommandDescription
/memory:save <context>Save important context
/memory:recall <topic>Retrieve saved context
/memory:listList all memories

🏗️ Architecture

Agents

RIPER uses 3 consolidated agents for efficiency:

  1. research-innovate - Handles research and brainstorming phases
  2. plan-execute - Manages planning and implementation
  3. review - Validates implementation against specifications

Memory Bank Structure

.claude/memory-bank/
├── main/                  # Main branch memories
│   ├── plans/            # Technical specifications
│   ├── reviews/          # Code review reports
│   └── sessions/         # Session contexts
└── [feature-branch]/     # Feature branch memories
    └── ...

Mode Capabilities

ModeReadWriteExecutePlanValidate
RESEARCH
INNOVATE
PLAN📄*
EXECUTE
REVIEW📄*✅**

* Only to memory bank
** Only test execution

🔧 Configuration

project-info.md

Update with your project details:

  • Project name and description
  • Common commands
  • Directory structure
  • Tech stack
  • Development guidelines

riper-config.json

Customize workflow settings:

  • Important paths
  • Tech stack patterns
  • Memory bank configuration
  • Agent models

settings.json

Claude Code project settings:

  • Project name
  • Description
  • Custom instructions

💡 Tips & Best Practices

When to Use RIPER

Good for:

  • Complex multi-step features
  • Refactoring critical code
  • Implementing architectural changes
  • Tasks requiring careful planning

Skip for:

  • Simple bug fixes
  • Minor text changes
  • Straightforward updates
  • Exploratory coding

Workflow Tips

  1. Always start with research - Understanding before coding prevents wasted effort
  2. Use memory bank - Save important context for future sessions
  3. Be specific in plans - Detailed specs lead to accurate implementation
  4. Review ruthlessly - Catch deviations early
  5. Iterate on substeps - Use /riper:execute 2.3 to fix specific parts

Context Efficiency

  • Research phase uses cheaper, focused tools
  • Plans are saved to memory, reducing repetition
  • Execute phase has full context from approved plan
  • Review validates without reimplementing

🤝 Contributing

Improvements welcome! Key areas:

  • Additional workflow commands
  • Better memory management
  • Enhanced agent capabilities
  • Integration examples

📜 Credits

This implementation is based on the RIPER-5 workflow created by an anonymous contributor (robotlovehuman) on the Cursor Forums.

📄 License

MIT - Use freely in your projects


Example Session

Start strict mode (always):

/riper:strict

Research existing code:

/riper:research analyze current API structure

Create a plan:

/riper:plan add rate limiting to API endpoints

Review the generated plan in .claude/memory-bank/main/plans/:

/riper:execute

Or execute specific steps

/riper:execute 1.2
/riper:execute 2

Validate implementation:

/riper:review

Troubleshooting

Q: Commands not working?
A: Ensure .claude directory is in project root

Q: Memory bank not saving?
A: Check write permissions on .claude/memory-bank/

Q: Agent errors?
A: Verify riper-config.json is valid JSON

Q: How to customize for my project?
A: Start with project-info.md and riper-config.json

Recognition

Mentioned in Awesome Claude Code

Files in the repo

Repository payload5 top-level entries
  • .claude
  • .gitignore
  • AGENTS.md
  • LICENSE
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k
ruvnet/rufloHarnesses

🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k