Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

ralphy-openspec

> 编程语言
Open source

Ralph loop + OpenSpec integration for Cursor, OpenCode and ClaudeCode heavy lifting.

195 stars0 likes0 views
WebsiteGitHub

About

Ralph loop + OpenSpec integration for Cursor, OpenCode and ClaudeCode heavy lifting.

ralphy-spec

English | 简体中文 | 한국어 | 日本語

Spec-driven AI development with iterative execution. Combines OpenSpec + Ralph Loop for predictable AI-assisted coding.

Website: https://ralphy-spec.org Docs: https://ralphy-spec.org/en/docs/ Changelog: https://ralphy-spec.org/en/changelog/ · GitHub

Quick Start

bash
npx ralphy-spec init

CLI basics:

bash
ralphy-spec run --dry-run
ralphy-spec run
ralphy-spec status
ralphy-spec budget --json

Logs & artifacts (during/after runs):

  • ralphy-spec/STATUS.md: live status (primary)
  • ralphy-spec/runs/.md: run log (immutable on completion)
  • ralphy-spec/logs//...: backend transcripts (stdout/stderr + metadata)

Then use the commands for your AI tool:

Cursor

Command What it does
/ralphy-plan Create specs from requirements
/ralphy-implement Build with iterative loop
/ralphy-validate Verify acceptance criteria
/ralphy-archive Complete and archive

If you want to run the full workflow from a terminal with Cursor as the backend (no IDE slash commands), you must authenticate Cursor Agent first:

bash
cursor agent login
# or set CURSOR_API_KEY in your environment

ralphy-spec run --backend cursor
# backend output streams by default; add --no-stream-backend to silence

Claude Code

Command What it does
/ralphy-plan Create specs from requirements
/ralphy-implement Build with iterative loop
/ralphy-validate Verify acceptance criteria
/ralphy-archive Complete and archive

OpenCode

Use natural language with AGENTS.md:

  • "Follow AGENTS.md to plan [feature]"
  • "Follow AGENTS.md to implement [change]"
  • "Follow AGENTS.md to validate"
  • "Follow AGENTS.md to archive [change]"

With Ralph Loop Runner:

bash
npm install -g @th0rgal/ralph-wiggum
ralph "Follow AGENTS.md to implement add-api. Output TASK_COMPLETE when done." --max-iterations 20

Example Workflow

bash
# 1. Plan: Create spec from your idea
You: /ralphy-plan Add user authentication with JWT

# 2. Implement: AI builds it iteratively  
You: /ralphy-implement add-user-auth

# 3. Validate: Verify tests pass
You: /ralphy-validate

# 4. Archive: Complete the change
You: /ralphy-archive add-user-auth

What Gets Created

…

Note: Legacy .ralphy/ folders are migrated to ralphy-spec/ automatically when found.

How It Works

Ralph Wiggum Loop: AI receives the same prompt repeatedly until task completion. Each iteration, it sees previous work in files and self-corrects.

OpenSpec: Specs before code. Structured specifications with acceptance criteria ensure AI knows exactly what to build.

The Combination:

Problem Solution
Vague requirements in chat Specs lock intent
AI stops mid-task Loop retries until done
No way to verify Tests validate output
Tool-specific setup One command for all

Installation Options

bash
# npx (recommended)
npx ralphy-spec init

# Global install
npm install -g ralphy-spec
ralphy-spec init

# With specific tools
ralphy-spec init --tools cursor,claude-code,opencode

Credits

Built on the work of:

  • Ralph Methodology by Geoffrey Huntley
  • opencode-ralph-wiggum by @Th0rgal
  • OpenSpec by Fission-AI

License

BSD-3-Clause

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言