DeepSeek Harness Plugin

maburykh-gif/dsh-plugins#textru-unique

Stars ★ 0 Category Tools & Capabilities Added 2026-11-25

Uniqueness checks through the text.ru API as two agent tools: textru_unique submits the text, waits for the result and returns the score, the matching sources and the fragments that need a rewrite; textru_balance returns the characters left on the account. Needs a text.ru key, read from TEXT_RU_KEY in the credential store.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

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

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

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.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.