dsh-artifact-index
Run the following command in DeepSeek Harness:
dsh plugin install Huuuuung/dsh-artifact-index
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Huuuuung/dsh-artifact-index in DeepSeek Harness to install; source repository: https://github.com/Huuuuung/dsh-artifact-index
About this plugin
The DSH Artifacts sidebar is a purely front-end viewer. After installing dsh-better-sidebar and dsh-artifacts, the tab loads and polls an external index endpoint for its data. Without that endpoint the sidebar stably displays a 404 error. This plugin is the missing backend half: it mounts the /report/ route on DSH's built-in web server, returns the exact JSON shape the upstream client expects, and streams artifact file bytes into its iframe on each request. Zero third-party runtime dependencies, strictly read-only, no telemetry, no outbound network calls, and no lifecycle install scripts.
Security is treated as an untrusted-input problem. A double realpath check blocks symlink escapes at both ends, only single-segment file names are accepted and percent-encoded traversal sequences are intercepted, an extension whitelist gates what can be served, and a tiered Content-Security-Policy is applied to HTML, SVG, and XML responses. Host and Sec-Fetch-Site headers form an origin gate that rejects cross-site reads of the local port. A final stat before delivery closes the stat-then-read race window so a file cannot be swapped between the size check and the actual read.
Built for DSH Desktop users who already have the Artifacts tab in their sidebar but keep seeing the 404, this plugin closes the gap with a read-only, single-directory listing. There is no extra service to install and no daemon to manage. Configuration is a single mount row in cordis.patch.yml covering the index directory, item and byte caps, CSP level, and optional trusted hosts. After restarting DSH and opening a new session, the Artifacts tab is populated with documents and images from your chosen directory.
Use Cases
- Artifacts tab shows a persistent 404 after the upstream install; this plugin fills the missing index endpoint
- Need a local directory browser inside DSH with no extra daemon or service to manage
- Serve whitelisted documents and images from a local directory with CSP and origin-gate hardening built in
Best For
- DSH Desktop users who have dsh-better-sidebar and dsh-artifacts already in their profile
- Users who prefer a zero-dependency, telemetry-free, script-free backend plugin
- Security-conscious users who value cross-site read protection, symlink escape blocking, and CSP enforcement
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.