dsh-humanize
提供内容审查、分层规范与延迟合并 适合对模型输出质量有高要求、需要旁路审查和格式优化的用户。
同名包的其他仓库
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lry722/dsh-humanize说明文档
阅读完整 README ↗Configuration
Open the dsh-humanize row in the Plugins list and edit its configuration. The bottom of the settings page shows where staged annotations and review request records are stored, with a copy button beside each path. These settings take effect immediately:
reviewProviderandreviewModel: the model used for review, picked from the host model catalog. Defaults to the model the session is using.reviewReasoningEffort: reasoning effort for the review model, picked from the efforts that model publishes. Defaults to the model's own default.mergeProviderandmergeModel: the model used by the merge subagent, with the same controls as the review model. The merge subagent covers/humanize,/humanize-loopand compaction-triggered merges. Defaults to the model the main session is using. Set both fields together; if only one is set, both follow the session model.mergeReasoningEffort: reasoning effort for the merge subagent, picked from the efforts that model publishes. Defaults to the reasoning effort the main session is using.reviewConcurrency: maximum number of concurrent review calls, shared across write review, batch review and re-review. Minimum 1, default 3.reviewRetries: number of retries after a failure. Minimum 0, maximum 3, default 1.reviewIntervalSeconds: minimum time between reviews, counted from the end of the previous review. Writes during the interval are reviewed together when it ends. Minimum 0, maximum 3600, default 60. Set 0 to review without waiting.loopMaxRounds: maximum rounds for loop merge. Minimum 1, maximum 10, default 3.mergeOnCompaction: whether to merge all staged annotations in the project when context compaction ends. Default true. When off, merges only run on/humanizeor/humanize-loop.storageDir: where staged annotations are stored. Leave empty for the default~/.dsh/humanize.
Each of the review and merge model sections has a test button. It sends a minimal request to confirm the provider, model and reasoning effort respond. An empty model selection follows the session model for review; the test button requires both fields to be set.
Review call records are stored separately in the system temp directory; the exact path appears at the bottom of the settings page. When a review response cannot be parsed, the raw response is written next to the call record for comparison.
Relative paths resolve against the process working directory. Changing the storage location leaves the old contents in place.
Review concurrency is shared across write review, batch review and re-review. A batch is also capped by the number of files it has to review. High concurrency can hit the model provider's rate limit.
A call that hits a rate limit is recorded as failed and retried. A review that times out ends as aborted and is not retried. Other failures wait longer before each retry. After the retry budget is spent, the review is marked failed. Write review and batch review share this retry behavior.
When a batch review ends, it lists the files that still failed and why, up to three entries. The rest are counted only. If write reviews keep failing, a failed record appears in the task list and points at the review model configuration.
You can also pass the same settings to the dsh-humanize entry in the profile's cordis.patch.yml:
- id: dsh-humanize
config:
settings:
reviewProvider: deepseek
reviewModel: deepseek-chat
Usage
Put a PROSE.md in the directory of the file under review or in a parent directory. The user-wide spec goes at ~/.dsh/PROSE.md. Specs stack by directory; the narrower the scope, the higher the priority.
The front matter of PROSE.md can declare which files the spec covers with include, using .gitignore syntax:
---
include:
- "*.md"
- "docs/**/*.txt"
- "!drafts/"
---
include belongs to the whole spec chain. If any level of the chain declares it, only files that match enter review. Write review and batch review both follow this scope. If no level declares include, the spec applies to every file.
PROSE.md must contain a level-1 # Rules heading. Numbered lines under it are review rules. Every other level-1 section is passed to review and merge unchanged as supplementary context, such as definitions or a glossary. For example: