Problem
If I have a fixed number of tokens left in my current Claude session before it resets. I would like the ability to specify how many loops ralph will run before it exits pre-maturely. This would allow me to run Ralph a set number of times without worrying about hitting my session cap pre-maturely.
Proposed solution
Add an optional --loops # parameter to the bmalph run command. This would tell ralph to run for X loops before exiting pre-maturely.
Update the circuit breaker logic to check and respect this new number if it is set.
Alternatives considered
Manually modifying the @fix_plan file down to the number of loops I'd like it to perform. However, this doesn't seem like a good long-term solution.
Additional context
This would also be good for testing the workflow by just having it run 1 loop at a time.
I'm more than happy to write up a PR to add this functionality and relevant tests if that would help. I was going to write this up locally for myself, but I figured it might be a good addition to the overall project.
Problem
If I have a fixed number of tokens left in my current Claude session before it resets. I would like the ability to specify how many loops
ralphwill run before it exits pre-maturely. This would allow me to run Ralph a set number of times without worrying about hitting my session cap pre-maturely.Proposed solution
Add an optional
--loops #parameter to thebmalph runcommand. This would tellralphto run for X loops before exiting pre-maturely.Update the circuit breaker logic to check and respect this new number if it is set.
Alternatives considered
Manually modifying the
@fix_planfile down to the number of loops I'd like it to perform. However, this doesn't seem like a good long-term solution.Additional context
This would also be good for testing the workflow by just having it run 1 loop at a time.
I'm more than happy to write up a PR to add this functionality and relevant tests if that would help. I was going to write this up locally for myself, but I figured it might be a good addition to the overall project.