mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 15:15:57 +03:00
[PR #111] [MERGED] feat: multi-loop concurrency via git worktrees #140
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/111
Author: @mikeyobrien
Created: 1/25/2026
Status: ✅ Merged
Merged: 1/25/2026
Merged by: @mikeyobrien
Base:
main← Head:multi-loop-concurrency📝 Commits (4)
19d56aafeat: add multi-loop concurrency via git worktrees87f10c9fix(loops): fix 4 bugs in multi-loop concurrency commandsf0f1426docs(readme): add multi-loop concurrency documentation12d53dfdocs: expand parallel loops documentation comprehensively📊 Changes
24 files changed (+6578 additions, -34 deletions)
View changed files
📝
AGENTS.md(+64 -0)📝
Cargo.lock(+1 -0)📝
Cargo.toml(+1 -1)📝
README.md(+274 -0)➕
crates/ralph-cli/presets/merge-loop.yml(+315 -0)📝
crates/ralph-cli/src/loop_runner.rs(+236 -11)➕
crates/ralph-cli/src/loops.rs(+775 -0)📝
crates/ralph-cli/src/main.rs(+153 -2)📝
crates/ralph-cli/src/presets.rs(+25 -2)📝
crates/ralph-core/Cargo.toml(+4 -0)📝
crates/ralph-core/src/event_logger.rs(+17 -0)📝
crates/ralph-core/src/event_loop/mod.rs(+108 -5)➕
crates/ralph-core/src/file_lock.rs(+493 -0)📝
crates/ralph-core/src/lib.rs(+21 -0)➕
crates/ralph-core/src/loop_completion.rs(+239 -0)➕
crates/ralph-core/src/loop_context.rs(+471 -0)➕
crates/ralph-core/src/loop_history.rs(+589 -0)➕
crates/ralph-core/src/loop_lock.rs(+443 -0)➕
crates/ralph-core/src/loop_registry.rs(+580 -0)📝
crates/ralph-core/src/memory_store.rs(+37 -3)...and 4 more files
📄 Description
Summary
Adds support for running multiple Ralph orchestration loops in parallel using git worktrees for filesystem isolation. This enables working on multiple independent tasks simultaneously without conflicts.
Key Features
.worktrees/<loop-id>/.ralph/loop.lock, additional loops detect this and spawn worktrees.agent/memories.mdis symlinked to main repo, enabling cross-loop learningNew CLI Commands
New
ralph runOptions--exclusive--no-auto-mergeArchitecture
Files Changed
loop_lock.rs,loop_registry.rs,merge_queue.rs,worktree.rs,loop_context.rs,loop_completion.rs,loop_history.rs,file_lock.rsloops.rs,loop_runner.rs,main.rs,presets.rsmerge-loop.ymlREADME.md,AGENTS.mdTest plan
cargo test)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.