ralph

Run constitution-driven tmux iteration loops until a desired state is reached.

18|2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/LightconeResearch/lightcone-cli --skill ralph-lightconeresearch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ralph
Source: https://github.com/LightconeResearch/lightcone-cli/tree/main/claude/lightcone/skills/ralph
Command: npx skills add https://github.com/LightconeResearch/lightcone-cli --skill ralph-lightconeresearch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ralph helps you move from a flexible desired state to steady progress over many iterations, without turning your work plan into a stale checklist.

Core Features & Use Cases

  • Constitution-driven iteration: Define “done” in a markdown constitution and re-read it each loop iteration so the work adapts to what’s actually found.
  • Three modes in one skill: Draft a constitution (Study → Draft → Refine → Launch), launch a loop via the bundled runner, or run a single iteration while already inside an active loop.
  • Tmux-based long-running runner: Launches a persistent tmux session that spawns fresh workers per iteration and stops when the constitution frontmatter is set to closed.

Quick Start

Tell the agent to start a constitution iteration loop by running: .claude/skills/ralph/scripts/ralph constitution.md

Frequently Asked Questions about ralph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run long-running adaptive iteration loops for evolving research workflows?

Long-running adaptive iteration loops use a constitution-driven tmux runner to repeatedly inject a system prompt, allowing your research workflow to adapt based on new evidence found during each cycle.

What is constitution-driven iteration for adaptive planning?

Constitution-driven iteration defines your desired state in a markdown file and re-reads it each loop, ensuring adaptive planning adjusts goals dynamically rather than functioning as a stale checklist.

How do I start a constitution iteration loop using a tmux runner?

To start a constitution iteration loop, execute the bundled ralph runner script with your markdown constitution file, which launches a persistent tmux session spawning fresh workers per iteration.

When do I need versioned provenance and YAML frontmatter status validation in a tmux loop?

Versioned provenance and YAML frontmatter status validation are needed when running end-to-end reproductions or refactoring loops, as they track progress and allow the tmux loop to stop when marked closed.

Can I run a single iteration while already inside an active tmux loop?

Yes, you can run a single iteration while inside an active loop; the skill supports three modes including drafting a constitution, launching a full loop, or executing individual iterations on demand.

What are the limitations of using a tmux runner for long-running science reproductions?

The tmux runner requires a root SKILL.md-defined workflow with YAML frontmatter and will not stop automatically unless the constitution frontmatter is explicitly set to closed.