jqlong17/grokbot-agent-loop
Replaces DSH's stock agent loop with an interruptible dual-lane version: user input preempts the running step while background agent work never does.
Changes when the loop yields to you. On the stock loop a busy Enter waits for the current step boundary and a mid-stream steer parks until the step ends; here Enter performs a cooperative cancel so the new step claims your text immediately, and a mid-stream steer aborts the active stream while keeping the prefix already streamed. The dual-lane design is the interesting part: tool-continue and silent inject run on an agent lane that only proceeds when the user lane is empty at claim time, so background agent work can never preempt you, while your own steers and followups always take priority. Trajectory, usage and tool contracts are unchanged, and Cmd/Ctrl+Enter queues in the same next-turn way as before.
Install
dsh plugin --profile web add github:jqlong17/grokbot-agent-loopInstalls as a profile bundle that declares a dsh.bundle.patch; the README's alternative pnpm --dir "$DSH_HOME/profiles/web" add ... path requires applying the disable-and-insert patch by hand afterwards. The patch disables the stock agent-loop row and inserts its own, because Cordis cannot rename an existing id (a same-id rename is skipped with a name-mismatch warning). Uninstalling restores the stock loop. The README carries an explicit disclaimer that the GrokBot naming is a community homage and that it is not affiliated with xAI.
Compatibility
Requires a working DSH profile on dsh >=0.2.0 <0.3.0 and Node ^22.19.0 || >=24.0.0; peers resolve from the DSH installation on the @deepseek-ai/* 0.2.1-rc.3 line. Because it replaces the loop that every turn runs through, a mismatch shows up as broken turns rather than a missing feature — the README's uninstall path restoring the stock row is the escape hatch.
Details
- Repo: jqlong17/grokbot-agent-loop
- Category: Agent Capabilities
- Stars: 0
- Version: Unpinned; this line installs from the GitHub default branch
Alternatives
Jaylor-Wang/dsh-fast-loop · lynx-gt/dsh-subagent-tools · TT-Wang/dsh-slice-agent-loop