Jaylor-Wang/dsh-fast-loop
Replaces the default agent loop with a bounded-concurrency scheduler, durable turn boundaries and leak-free session ownership.
The default agent loop runs tools one at a time. This swaps in a scheduler that dispatches parallelisable calls concurrently up to maxParallelToolCalls while keeping strict sequential FIFO order for durable event persistence, so parallelism does not cost you replay correctness. An exclusive-tool barrier blocks and synchronises in-flight tasks before a state-mutating command runs. Tool crashes are trapped so prior results settle and record instead of corrupting agent state, dependency lookups are shielded from caller shadow proxies so sessionProjections, systemPrompt, tools and llm stay reachable, and a turnBoundary projection keeps turn and step boundaries accurate across process restarts. The author ships a node:test lifecycle suite covering lock release across disk failures, setup rejections, caller aborts and teardown errors.
Install
dsh plugin --profile web add dsh-fast-loop@latestThe README's install line uses npm's @latest; the registry currently serves 0.2.0. It replaces the default agent-loop, so it is the kind of plugin to try on a profile you can roll back — remove it and the default loop is back.
Compatibility
TypeScript strict. The 0.3.0 notes the README leads with are about session lifecycle rather than throughput: it resolves the SessionAlreadyOwnedError (session/writer-held) lock conflict when switching or resuming sessions in DSH Web / Electron, disposes persistence handles through transaction-rollback finally blocks on cold read errors, aborted requests and setup failures, awaits native Cordis async disposers inside ownerCtx.effect, and drains session handles when the plugin itself is disabled or reloaded.
Details
- Repo: Jaylor-Wang/dsh-fast-loop
- Category: Agent Capabilities
- Stars: 2
- Version: 0.2.0 (npm)
Alternatives
Jaylor-Wang/dsh-awesome-agent-preset · TT-Wang/dsh-slice-agent-loop · log-li/dsh-automode