DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Rice Patrol — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
R

dsh-rice-patrol

Rice Patrol

Rice Patrol: bounded reasoning repetition guard and clean recovery for DeepSeek Harness

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:LeeLizuoLiu/rice-patrol#4bde541876a3bb5cb2f7a4bd28712f5a853b4525
READMECompatibilityVersions

Compatibility and provenance

Rice Patrol is published as dsh-rice-patrol and currently resolves to version 0.2.11-desktopcompat.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/10/2026

Versions

0.2.11-desktopcompat.1prerelease
10/10/2026
0.2.10stable
10/1/2026
0.2.9stable
9/29/2026
0.2.6stable
9/28/2026
Show 2 more versionsCollapse versions
0.2.4stable
9/28/2026
0.2.3stable
9/27/2026
Latest
0.2.11-desktopcompat.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/17/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

README

Rice Patrol 🍚🐋

中文

Rice Patrol protects reasoning streams in DeepSeek Harness (DSH). When sustained short-line repetition is confirmed, it stops the current generation and resumes the unfinished task in the same conversation.

One automatic recovery flow

Enable the plugin; no response-mode selection is needed. Every confirmed loop follows the same stop-and-resume flow. There is no Stop / Observe / Recover selector, observation logger, or n-gram detector.

Legacy mode: stop, mode: observe, and mode: recover values no longer select behavior. They may be removed, but leaving them in an old profile does not prevent automatic recovery. Use DSH's plugin enable/disable control to turn off Rice Patrol entirely.

The Stop recovery button remains available during recovery. New user input also interrupts the current recovery. Unverifiable session or background-job state pauses recovery with an explanation.

Detection

The plugin reads reasoning text exposed by DSH, splits it into trimmed nonempty lines, and scores the last 50 lines. A median line length of at most 20 characters, with at least 70% of lines having an exact duplicate inside that window, produces a warning. After at least 50 additional nonempty lines, another matching window confirms the loop and stops generation.

A warning alone does not stop output. The rule is provider-independent and uses a fresh detector for each model request. An ordinary output-token limit is outside its scope. This update does not change detection thresholds.

Continuation

Rice Patrol waits for the stopped generation and stream cleanup, verifies host background jobs, excludes interrupted reasoning from model-visible history, and continues through the original Agent and session. Completed file edits and tool results remain available. The continuation asks the model to inspect workspace state before repeating side effects.

Each newly confirmed loop can recover; the same stop submits only one handoff. Failed or blocked old recoveries do not restart themselves. The resumed Agent follows normal DSH policies, without an extra summarization model request or plugin-imposed limits on later model/tool calls.

resumeTimeoutMs defaults to five minutes for handoff and the first resumed response, rather than the entire subsequent task. Minimal recovery status and deduplication records remain; there is no per-chunk observation log.

Enablement and configuration

The current package is 0.2.11-desktopcompat.1, with a desktop entry for DSH 0.2.0-rc.2. The source is available on GitHub; this update does not publish an npm package.

Enable Rice Patrol and its components on the Plugins page. The plugin page explains automatic recovery; recovery status appears near the conversation input. See config/recover.example.yml.

Provider/model filters, state directory, and recovery timeouts remain configurable. Response mode is not configurable. Use only one controller that cancels and resumes a given reasoning stream.

Restart DSH after updating installed files to load the new host code. Historical implementation notes are in docs/SINGLE_AGENT_RECOVERY.md. MIT license.