feat(ralph-loop): add strategy option for fresh context per iteration

Closes #1901

Add 'default_strategy' config option (default: 'continue') to control whether ralph-loop creates a new session per iteration ('reset') or keeps the same session ('continue'). The 'reset' strategy keeps the model in the smart zone by starting with fresh context for each iteration.

Supports --strategy flag for per-command override.
This commit is contained in:
YeonGyu-Kim
2026-02-21 02:27:57 +09:00
parent 51654c1c5e
commit 5c83fee619
16 changed files with 323 additions and 49 deletions

View File

@@ -3343,11 +3343,20 @@
},
"state_dir": {
"type": "string"
},
"default_strategy": {
"default": "continue",
"type": "string",
"enum": [
"reset",
"continue"
]
}
},
"required": [
"enabled",
"default_max_iterations"
"default_max_iterations",
"default_strategy"
],
"additionalProperties": false
},