DeepSeek Harness 插件

maburykh-gif/dsh-plugins#textru-unique

Star 数 ★ 0 分类 工具与能力 收录于 2026-11-25

通过 text.ru API 提供两个 agent 工具做查重:textru_unique 提交文本、等待结果并返回重复率、命中来源以及需要改写的片段;textru_balance 返回账号剩余字符数。需要 text.ru 密钥,从凭据库的 TEXT_RU_KEY 读取。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:maburykh-gif/dsh-plugins#path:/packages/textru-unique

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

Host plugin for DeepSeek Harness that checks text uniqueness through the text.ru API and tells the agent what exactly to rewrite.

Tools

Tool What it returns
textru_unique uniqueness score, report link, matching sources with their percentage, and the fragments of your text that are not unique
textru_balance characters left on the account

Because the API returns the word indexes of every match, the plugin turns them back into sentences of the original text — so the agent rewrites the flagged fragments instead of guessing.

Install

  1. Get a userkey in your text.ru account (API section).
  2. Store it in the DSH credential store as TEXT_RU_KEY.
  3. Install the bundle and use the tools: ask the agent to check uniqueness, or call textru_unique directly.

The key is read from the credential store on every call; it is never written into this package or into the configuration.

Configuration

Field Default Meaning
apiKeyEnv TEXT_RU_KEY credential name holding the text.ru key
pollIntervalMs 4000 first poll delay, growing to 10 s
timeoutMs 300000 how long one check may take

Limits and costs

  • Minimum 100 characters per check; longer texts are accepted up to 150 000.
  • Every check spends characters from your balance, including repeated checks after a rewrite.
  • The service allows up to 10 texts per second and 3 000 000 characters per hour.
  • Text.ru compares against the open web, not against closed university databases.

Example

Agent: textru_unique({ text: "..." })
→ 43.51% · 2 sources · 4 fragments

License

MIT.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。