dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
中文 | English
A DeepSeek Harness (dsh) dual-face plugin that turns workspace files into chat artifacts: raster images render inline in the conversation, other files become download cards.
No more file:///... links or “the file is in output/” — when the model creates a user-facing file, it calls publish_artifact and the file is durably delivered through the chat UI.
publish_artifact toolpath (required): workspace file to publishtitle (optional): display titledisplay: auto (default) · inline · download~/.dsh/artifacts/v1/artifact/publishedGET /api/artifacts/:id/content — inline-safe previewGET /api/artifacts/:id/download — attachment downloadfs.resolve + fs.contains.png that is actually HTML will not inline)dsh plugin --profile web add github:Inkotake/dsh-rich-artifacts
For a locked, reproducible source install:
dsh plugin --profile web add github:Inkotake/dsh-rich-artifacts#<commit>
Then restart dsh web (or the profile you installed into).
The plugin registers a system-prompt section, so the model should call the tool on its own when it creates a deliverable. You can also ask for it directly:
Create a training-loss chart, export it to CSV, and publish both files as artifacts.
The agent then runs:
publish_artifact({ "path": "output/loss.png", "display": "auto" })
publish_artifact({ "path": "output/loss.csv" })
and the turn tail shows the image inline plus a CSV download card.
In the profile cordis.patch.yml:
- id: dsh-rich-artifacts
name: dsh-rich-artifacts
config:
root: ~/.dsh/artifacts
maxFileBytes: 104857600
maxTurnBytes: 524288000
maxImageBytes: 20971520
maxImagePixels: 40000000
inline:
png: true
jpeg: true
webp: true
gif: true
svg: false
| Field | Default | Meaning |
|---|---|---|
root |
~/.dsh/artifacts |
Artifact storage root |
maxFileBytes |
104857600 |
Per-file size cap |
maxTurnBytes |
524288000 |
Reserved per-turn cap (not yet enforced in V0.1) |
maxImageBytes |
20971520 |
Max inline image size |
maxImagePixels |
40000000 |
Max inline image pixels (best-effort parse) |
inline.* |
png/jpeg/webp/gif: true, svg: false |
Which image types may render inline |
pnpm install
pnpm run build
lib/index.js is the ESM host plugin, lib/client.js is the browser bundle
(window.__ModuleLoader__.load(...)). Both are committed so source installs
work without a build step.
node tests/artifact-store.test.mjs
DeepSeek Agent
│ creates file
▼
Workspace File
│ publish_artifact
▼
ArtifactStore ──────────────► artifact/published session event
│ │
│ (blob + metadata) │ (artifact_id + metadata)
▼ ▼
HTTP /api/artifacts/:id/* Session log (replayable)
│ │
└──────────────┬───────────────────┘
▼
Web UI turn-tail
┌─────────┴──────────┐
▼ ▼
ImageArtifact FileArtifact
artifact/published is a log-only event. Because the current harness has no
registration surface for out-of-repo session event types, the host adds it to
KNOWN_SESSION_EVENT_TYPES at startup so persisted sessions remain loadable
while the plugin is installed.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。