Bundle
noatmark-dsh-plugin
NoAtMark text hygiene as a DeepSeek Harness (dsh) plugin — sanitize untrusted text, scan invisible characters, clean LLM formatting, and escape CSV formula injection.
- Source
- ylwl1997
- stars
- 2 stars
- License
- MIT
- Updated
- Updated 15 hours ago
Readme
# noatmark-dsh-plugin
[](https://awesome-dsh-plugin.com)
**NoAtMark text hygiene** as a [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (dsh) plugin.
Everything-is-a-plugin: this plugin gives your dsh agent four text-hygiene tools, backed by the same deterministic engines behind [noatmark.com](https://noatmark.com).
## Tools
| Tool | What it does |
|---|---|
| `sanitize_text` | Strip invisible/zero-width characters and flag prompt-injection + hidden-text signals. |
| `scan_text` | Report invisible characters (with code points + positions), injection patterns, and hidden text. |
| `clean_format` | Clean LLM formatting artifacts (blank lines, stray fences, trailing spaces) — meaning untouched. |
| `sanitize_csv` | Escape CSV formula injection (OWASP): `= + - @` prefixes get a leading quote. |
All processing is deterministic and local — no data leaves your machine.
## Install
Add this plugin to your dsh Web UI. If you're running from a source checkout, use a `cordis.yml` patch:
```yaml
- insert:
- id: noatmark
name: noatmark-dsh-plugin
```
or point at the source directly (absolute path):
```yaml
- insert:
- id: noatmark
name: '/path/to/noatmark-dsh-plugin/src/index.ts'
```
Start dsh with the patch:
```sh
npx @deepseek-ai/dsh web --patch ./cordis.yml
```
## Usage
In a dsh session, ask the agent to use a tool, e.g.:
> Sanitize this pasted text before you summarize it.
> Scan this file for invisible characters.
> Clean the formatting of this AI output.
> Escape this CSV before saving it.
## Development
```sh
pnpm install
pnpm build # tsc -> dist/
```
## Resources
- Web tools: https://noatmark.com/
- NoAtMark SDK (npm/PyPI): `noatmark-text-hygiene`
- DeepSeek Harness: https://github.com/deepseek-ai/deepseek-harness
- Official docs: https://deepseek-harness.github.io/deepseek-harness/
MIT
Install
dsh plugin --profile web add github:ylwl1997/noatmark-dsh-plugin
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install noatmark-dsh-plugin from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.