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:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user