[PR #20] [CLOSED] feat: Add self-improvement runner #93

Closed
opened 2026-02-27 10:22:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/20
Author: @krzemienski
Created: 1/3/2026
Status: Closed

Base: mainHead: feat/self-improve-minimal


📝 Commits (1)

  • 89fc1c0 feat: Add self-improvement runner

📊 Changes

1 file changed (+395 additions, -0 deletions)

View changed files

scripts/self_improve.py (+395 -0)

📄 Description

Summary

Adds a pure-Python self-improvement runner that enables Ralph to enhance itself using its own SDK.

What's Included

Single file: scripts/self_improve.py

Usage

# Run with a prompt file
python scripts/self_improve.py -P prompts/MY_FEATURE_PROMPT.md

# With web UI monitoring
python scripts/self_improve.py -P prompts/PROMPT.md --with-web-ui

# Dry run to validate setup
python scripts/self_improve.py -P prompts/PROMPT.md --dry-run

Key Features

  • Uses SDK directly - No subprocess CLI calls, pure Python
  • Inherits user's settings - MCP servers, CLAUDE.md, all your tools
  • Full parameter control - Context window, thresholds, costs via CLI
  • Web UI integration - Real-time monitoring of progress

Background

This follows the patterns from Anthropic's Effective Harnesses for Long-Running Agents:

"We developed a two-fold solution: an initializer agent that sets up the environment on the first run, and a coding agent that is tasked with making incremental progress in every session."

Now Ralph can use this pattern to improve itself.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mikeyobrien/ralph-orchestrator/pull/20 **Author:** [@krzemienski](https://github.com/krzemienski) **Created:** 1/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/self-improve-minimal` --- ### 📝 Commits (1) - [`89fc1c0`](https://github.com/mikeyobrien/ralph-orchestrator/commit/89fc1c0c67fe9458f459be50573a132b8bf3b9b2) feat: Add self-improvement runner ### 📊 Changes **1 file changed** (+395 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `scripts/self_improve.py` (+395 -0) </details> ### 📄 Description ## Summary Adds a pure-Python self-improvement runner that enables Ralph to enhance itself using its own SDK. ## What's Included **Single file:** `scripts/self_improve.py` ## Usage ```bash # Run with a prompt file python scripts/self_improve.py -P prompts/MY_FEATURE_PROMPT.md # With web UI monitoring python scripts/self_improve.py -P prompts/PROMPT.md --with-web-ui # Dry run to validate setup python scripts/self_improve.py -P prompts/PROMPT.md --dry-run ``` ## Key Features - **Uses SDK directly** - No subprocess CLI calls, pure Python - **Inherits user's settings** - MCP servers, CLAUDE.md, all your tools - **Full parameter control** - Context window, thresholds, costs via CLI - **Web UI integration** - Real-time monitoring of progress ## Background This follows the patterns from Anthropic's [Effective Harnesses for Long-Running Agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents): > "We developed a two-fold solution: an initializer agent that sets up the environment on the first run, and a coding agent that is tasked with making incremental progress in every session." Now Ralph can use this pattern to improve itself. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:22:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ralph-orchestrator#93
No description provided.