You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/memory.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -434,17 +434,6 @@ No parameters required.
434
434
435
435
Returns a list of all stored keys with their values and expiration times. Useful for debugging or inspecting current project state.
436
436
437
-
### ralph-loop
438
-
439
-
Start a Ralph iterative development loop. By default runs in an isolated git worktree. Set `inPlace` to `true` to run in the current directory instead.
440
-
441
-
| Parameter | Type | Required | Description |
442
-
|-----------|------|----------|-------------|
443
-
|`prompt`| string | Yes | The task prompt to iterate on |
444
-
|`completionPromise`| string | No | Phrase that signals completion when wrapped in `<promise>` tags |
445
-
|`name`| string | No | Name for the worktree branch |
446
-
|`inPlace`| boolean | No | Run in current directory instead of creating a worktree |
447
-
448
437
### ralph-cancel
449
438
450
439
Cancel an active Ralph loop and optionally clean up the worktree.
@@ -551,7 +540,6 @@ During a Ralph loop, certain tools are blocked to keep the agent focused:
551
540
-`question` — No interactive questions; work autonomously
552
541
-`memory-plan-execute` — Cannot start new plan sessions
553
542
-`memory-plan-ralph` — Cannot start nested Ralph loops
554
-
-`ralph-loop` — Cannot start additional loops
555
543
556
544
Blocking is enforced via `tool.execute.before` (throws error) with `tool.execute.after` as defense in depth.
557
545
@@ -566,7 +554,7 @@ Blocking is enforced via `tool.execute.before` (throws error) with `tool.execute
566
554
567
555
| Command | Description |
568
556
|---------|-------------|
569
-
|`/ralph-loop <prompt>`| Start a Ralph loop via the Code agent|
557
+
|`/ralph-loop <prompt>`| Start a Ralph loop (delegates to memory-plan-ralph)|
570
558
|`/cancel-ralph`| Cancel the active Ralph loop |
571
559
572
560
---
@@ -654,7 +642,7 @@ The default agent is set to `code`.
654
642
| Command | Description | Agent | Mode |
655
643
|---------|-------------|-------|------|
656
644
|`/review`| Run a code review on current changes | auditor | subtask |
657
-
|`/ralph-loop`| Start a Ralph iterative development loop| code | direct |
645
+
|`/ralph-loop`| Start a Ralph loop (delegates to memory-plan-ralph)| code | direct |
658
646
|`/cancel-ralph`| Cancel the active Ralph loop | code | direct |
659
647
660
648
---
@@ -711,7 +699,7 @@ Memory injection is controlled independently by `memoryInjection.enabled` (defau
711
699
712
700
### tool.execute.before
713
701
714
-
Blocks certain tools during active Ralph loops to keep the agent focused on the current task. Throws an error with a descriptive message when a blocked tool is called. Blocked tools: `question`, `memory-plan-execute`, `memory-plan-ralph`, `ralph-loop`.
702
+
Blocks certain tools during active Ralph loops to keep the agent focused on the current task. Throws an error with a descriptive message when a blocked tool is called. Blocked tools: `question`, `memory-plan-execute`, `memory-plan-ralph`.
Copy file name to clipboardExpand all lines: packages/memory/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,6 @@ Iterative development loops with automatic auditing. Runs in an isolated git wor
82
82
83
83
| Tool | Description |
84
84
|------|-------------|
85
-
|`ralph-loop`| Start an iterative development loop with optional auditing |
86
85
|`ralph-cancel`| Cancel an active Ralph loop and clean up the worktree |
87
86
|`ralph-status`| Check status of active Ralph loops |
88
87
|`memory-plan-ralph`| Execute an architect plan using a Ralph iterative loop |
@@ -92,7 +91,7 @@ Iterative development loops with automatic auditing. Runs in an isolated git wor
92
91
| Command | Description | Agent |
93
92
|---------|-------------|-------|
94
93
|`/review`| Run a code review on current changes | auditor (subtask) |
95
-
|`/ralph-loop`| Start a Ralph iterative development loop| code |
94
+
|`/ralph-loop`| Start a Ralph loop (delegates to memory-plan-ralph)| code |
96
95
|`/cancel-ralph`| Cancel the active Ralph loop | code |
97
96
98
97
## CLI
@@ -330,7 +329,7 @@ The loop completes when the Code agent outputs the completion promise. It auto-t
330
329
331
330
By default, Ralph loops run in an isolated git worktree. Set `inPlace: true` to run in the current directory instead (skips worktree creation, auto-commit, and cleanup).
332
331
333
-
See the [full documentation](https://chriswritescode-dev.github.io/opencode-manager/features/memory/#ralph-loop) for details.
332
+
See the [full documentation](https://chriswritescode-dev.github.io/opencode-manager/features/memory/#ralph-loop) for details on the Ralph loop system.
Copy file name to clipboardExpand all lines: packages/memory/src/index.ts
-32Lines changed: 0 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -592,7 +592,6 @@ export function createMemoryPlugin(config: PluginConfig): Plugin {
592
592
question: 'The question tool is not available during a Ralph loop. Do not ask questions — continue working on the task autonomously.',
593
593
'memory-plan-execute': 'The memory-plan-execute tool is not available during a Ralph loop. Focus on executing the current plan.',
594
594
'memory-plan-ralph': 'The memory-plan-ralph tool is not available during a Ralph loop. Focus on executing the current plan.',
595
-
'ralph-loop': 'The ralph-loop tool is not available during a Ralph loop. Focus on executing the current plan.',
596
595
}
597
596
598
597
constPLAN_APPROVAL_LABELS=['New session','Execute here','Ralph (worktree)','Ralph (in place)']
@@ -936,38 +935,7 @@ Do NOT output text without also making this tool call.
936
935
return`${entries.length} active KV entries:\n\n${formatted.join('\n')}`
937
936
},
938
937
}),
939
-
'ralph-loop': tool({
940
-
description: 'Start a Ralph Wiggum iterative development loop. By default runs in an isolated git worktree. Set inPlace to true to run in the current directory instead.',
941
-
args: {
942
-
prompt: z.string().describe('The task prompt to iterate on'),
943
-
completionPromise: z.string().optional().describe('Phrase that signals completion when wrapped in <promise> tags'),
944
-
name: z.string().optional().describe('Optional name for the worktree branch'),
945
-
inPlace: z.boolean().optional().describe('Run in current directory instead of creating a worktree'),
946
-
},
947
-
execute: async(args,context)=>{
948
-
if(config.ralph?.enabled===false){
949
-
return'Ralph loops are disabled in plugin config.'
950
-
}
951
938
952
-
logger.log(`ralph-loop: creating worktree for prompt="${args.prompt.substring(0,80)}"`)
0 commit comments