Releases: vansearch/ralphloop-implementation
Release list
v1.3.0 — Contract Task Descriptions
What's New in v1.3.0
Contract Task Descriptions
Planning agent now generates "contract" task descriptions — specific enough that workers execute without exploring the codebase.
Before (vague):
```
- E2-T1 Implement AppCacheScanner
```
After (contract):
```
- E2-T1 Create `Sources/App/Scanners/AppCacheScanner.swift` implementing
`ScannerProtocol` (`Sources/App/Protocols/ScannerProtocol.swift`).
Scan `~/Library/Caches/`. Register in `ScannerRegistry.allScanners`
(`Sources/App/ScannerRegistry.swift`). Return `[ScanResult]` sorted by size.
```
Phase 0 — Explore First
build_planning_prompt() now begins with an explicit exploration phase:
- Find protocol/interface files
- Read 1–2 existing implementations
- Find registries and factory files
- Note naming conventions
Planning agent does this once, so each worker runs without repeating the discovery.
Verified DOC-INDEX Sections
Step B now requires the planning agent to read each section before mapping — confirming it contains the actual interface definition, not just a reference to it.
Token Impact
| Stage | Before | After |
|---|---|---|
| Planning (runs 1x) | Same | ~30% more (exploration) |
| Worker (runs per task) | High (exploration) | ~80% less (contract) |
| Net for 10 tasks | baseline | ~70% fewer total tokens |
Files Changed
ralph.py—build_planning_prompt(): Phase 0 + contract format + Step B verificationSKILL.md— Step 2: pre-work exploration + contract examples; Step 3: verification rule
v1.2.0 — Parallel Orchestrator
What's new
Parallel execution via git worktrees
Add [parallel] to any epic header in TASKS.md to run its tasks concurrently:
## Epic 2 — Scanners [parallel]
- [ ] **E2-T1** Implement AppCacheScanner
- [ ] **E2-T2** Implement SystemCacheScanner
- [ ] **E2-T3** Implement LogsScannerThe orchestrator:
- Creates an isolated git worktree per task (
.ralph/worktrees/E2-T1/, etc.) - Runs all workers simultaneously via
ThreadPoolExecutor, streaming prefixed output ([E2-T1] ...) - Merges successful branches sequentially into the main tree
- Runs
VERIFY_STEPSonce on the merged state - Marks all passing tasks done; reverts and re-queues failed ones as sequential
New CLI flags
python ralph.py --no-parallel # force sequential (disable parallel)
python ralph.py --max-parallel 8 # allow up to 8 concurrent workers
Other changes
run_claude()now acceptscwdandoutput_prefixfor worker isolation- All state writes (
log_activity,log_progress,add_guardrail) are thread-safe show_status()displays[parallel]tag on parallel epic headerstemplates/.gitignoreupdated: adds.ralph/worktrees/and planning filestemplates/TASKS.mdupdated: includes[parallel]example with commentREADME.md: new Parallel Execution section + updated CLI referenceSKILL.mdStep 2:[parallel]syntax documented in format + rules
Upgrade
curl -O https://raw.githubusercontent.com/vansearch/ralphloop-implementation/main/ralph.pyOr re-run the skill in your project:
/ralphloop-implementation
v1.1.0 — Full Restore
What's new in v1.1.0
Files restored
| File | Description |
|---|---|
ralph.py |
Production loop — 841 lines, 6 security hardening measures |
setup.py |
Project scaffolding script — creates TASKS.md, docs/, .ralph/, .gitignore |
README.md |
Full documentation with CLI reference and quick-start guide |
templates/TASKS.md |
Task list template with example epics |
templates/docs/DOC-INDEX.md |
Routing table template |
templates/.ralph/guardrails.md |
Guardrails header template |
templates/.ralph/progress.md |
Progress log header template |
templates/.gitignore |
.gitignore entries for .ralph/ state files |
SKILL.md updated
Step 4 no longer embeds a 690-line ralph.py code block. It now references the standalone file with curl download instructions — keeping SKILL.md focused and readable.
Quick start
# Download to your project
curl -O https://raw.githubusercontent.com/vansearch/ralphloop-implementation/main/ralph.py
curl -O https://raw.githubusercontent.com/vansearch/ralphloop-implementation/main/setup.py
# Scaffold the project
python setup.py --name "My Project" --lang swift
# Start the loop
python ralph.py --dry-runOr use the Claude Code skill
/ralphloop-implementation
v1.0.0 — Stable Release
Ralph Loop Implementation — Versão Estável
Esta é a versão completa e estável da skill ralphloop-implementation.
O que está incluído
- Doc routing via
DOC-INDEX.md— reduz contexto em ~95% por iteração - Security audit gate — roda OWASP Top 10 após cada plano completo
- Planning mode contínuo — gera novos Epics automaticamente quando tasks acabam
ralph.pycompleto (~400 linhas) com CLI:--dry-run,--status,--task,--reset- Retry automático — 3x por task com backoff
- Guardrails de segurança — sanitização de paths, output em streaming
Como usar
/ralphloop-implementation
Arquivos gerados pelo bootstrapper
TASKS.md— checklist de tasksdocs/DOC-INDEX.md— tabela de roteamento task → docralph.py— loop autônomo externo.ralph/— estado do loop (guardrails, progress, activity log)