Make Loop idle continuation explicit and reliable - #138
Merged
Conversation
ByBrawe
marked this pull request as ready for review
August 22, 2026 09:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Make
/loopbehave like a reliable continuation/scheduling primitive instead of a timer that can silently stall.Behavior
/loop <prompt>is the ergonomic infinite idle-loop form: when the current assistant turn stops and the session is safely idle, send the prompt again/loop idle <prompt>is the explicit equivalent/loop every 5m <prompt>is recurring and waits 5m before the first run/loop after 5m <prompt>//loop in 5m <prompt>is a one-shot delayed prompt/loop 5m <prompt>remains supported (starts on next idle, then interval cadence)continue/devam etprompts get project-aware continuation guidance so the agent resumes existing repository/conversation work instead of treating each turn as freshReliability
busy/retrybefore the first Loop run only when the latest assistant tail is actually completed and no tool/child work is activeloop.logat onlyadd/loop-status/loop-doctor/goalalready owns the same session, unless--allow-goal-overlapis explicitly suppliedRefactor
runtime/schedule-policy.jssrc/index.jsregenerated from the modular source treeVerification
/loop --max-runs 3 devam et, requires three autonomous turns, verifies persistedscheduleMode: idle, and confirms the run limit stops further turnsDocumentation
docs/SCHEDULING.mddefines the schedule/admission contract, stale-busy recovery, status/doctor diagnostics, session-bound behavior and dedicated/goalcoexistenceThis remains draft only until the exact synchronized head is green.