mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-24 22:55:57 +03:00
[PR #97] [MERGED] Modularize codebase, fix TUI mode, and add documentation #132
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#132
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/97
Author: @mikeyobrien
Created: 1/22/2026
Status: ✅ Merged
Merged: 1/22/2026
Merged by: @mikeyobrien
Base:
main← Head:feat/modularization-and-docs📝 Commits (6)
fb41da3feat: add prompt guidance for task breakdown and state management46dc5fcrefactor: modularize ralph-cli and ralph-core for improved code organizationa2d0e4bfix(adapters): use TUI mode for opencode_interactive backend9cc59c9docs: add Custom Backends and Per-Hat Configuration section to READMEb004258docs: add orchestration patterns documentation and bugfix preset555340aMerge branch 'main' into feat/modularization-and-docs📊 Changes
19 files changed (+5342 additions, -4249 deletions)
View changed files
📝
.agent/memories.md(+12 -0)➖
.agent/summary.md(+0 -34)📝
.agent/tasks.jsonl(+13 -0)➕
.claude/skills/create-hat-collection/SKILL.md(+227 -0)➖
.claude/skills/creating-hat-collections/SKILL.md(+0 -207)📝
.gitignore(+5 -0)📝
AGENTS.md(+1 -0)📝
README.md(+482 -0)📝
crates/ralph-adapters/src/cli_backend.rs(+44 -9)➕
crates/ralph-cli/src/display.rs(+427 -0)➕
crates/ralph-cli/src/loop_runner.rs(+1013 -0)📝
crates/ralph-cli/src/main.rs(+42 -1353)➖
crates/ralph-core/src/event_loop.rs(+0 -2646)➕
crates/ralph-core/src/event_loop/loop_state.rs(+77 -0)➕
crates/ralph-core/src/event_loop/mod.rs(+1230 -0)➕
crates/ralph-core/src/event_loop/tests.rs(+1367 -0)📝
crates/ralph-core/src/hatless_ralph.rs(+68 -0)➕
presets/bugfix.yml(+188 -0)➕
tasks/context-file-injection.code-task.md(+146 -0)📄 Description
Summary
ralph-cliandralph-corefor improved code organization - splits monolithic files into focused modules (display.rs,loop_runner.rs, event_loop submodules)opencode_interactivebackend adapterbugfix.ymlpresetChanges
Code Organization
ralph-cli/src/main.rs(1394 lines) into focused modules:display.rs- Display and formatting logicloop_runner.rs- Loop execution logicralph-core/src/event_loop.rs(2646 lines) into:event_loop/mod.rs- Core event loop logicevent_loop/loop_state.rs- Loop state managementevent_loop/tests.rs- Unit testshatless_ralph.rsfor non-hat Ralph functionalityBug Fixes
opencode_interactivebackend to use TUI mode instead of stream modeDocumentation
bugfix.ymlpreset for debugging workflowscreating-hat-collectionstocreate-hat-collectionNew Files
presets/bugfix.yml- Preset for debugging and bugfix workflowstasks/context-file-injection.code-task.md- Task spec for context injectionTest plan
cargo build- verify compilation succeedscargo test- verify all tests passcargo test -p ralph-core smoke_runner- verify smoke tests passralph runworks with existing configs🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.