Preface¶
When doing multi-turn conversations in DeepSeek Harness (DSH), the model often writes scripts, configs, images, or documents, with paths scattered across the workspace. When you later want to find “that config I changed last week” or “assets generated in a past conversation,” you usually have to dig through chat history or rely on your own memory of directories. The community plugin dsh-artifact-library (maintainer wyq183) adopts a “local-first” approach: automatically registering AI outputs, organizing them with summaries and tags, and supporting natural-language retrieval. It also ships with a workspace-bound local file search: on Windows it leverages a portable Everything engine, and on Linux it uses a pure-Node scoped index — without handing your entire disk over to an indexer. The DSH ecosystem itself is “everything is a plugin”; the plugin directory site skillhub.cn is a community site with no official affiliation with DeepSeek / 幻方.
What Is This¶
dsh-artifact-library plays the role of “artifact cabinet + resource cabinet + workbench” inside DSH: it subscribes to session events, registers each turn’s outputs into the library, and records the source session. New entries can be marked as “pending refinement”; the in-session model or the admin page’s “Refine Now” can complete summaries, tags, and projects. On the retrieval side, it offers keyword and semantic search, plus “related suggestions” connections based on project, tag, directory, etc. Starting from v0.7.0, a local file manager was added: millisecond filename/path search within strictly scoped directories, with one-click registration of hits as artifacts.
Data lands in ~/.dsh/artifact-library/ by default (overridable via the DSH_ARTIFACT_LIBRARY_DIR environment variable); the startup log will show a self-evident line like artifact-library: store at ~/.dsh/artifact-library/artifacts.json (N records). The official documentation emphasizes that data never leaves the local machine.
Core Features¶
The following summarizes capabilities as published in the README; unreleased UI capabilities are not listed here.
Native Panel¶
Since v0.6.0, the “Artifact Library” icon in the left sidebar opens a native React panel in the main area, using DSH’s public sidebar slot and not relying on any third-party sidebar plugin. The panel provides statistics, filters (kind / status / project / sorting), card / list / project views, and operations such as preview, edit, trash, and locate in the file manager within the detail drawer.
Automatic Collection and AI Refinement¶
- Each turn’s outputs are auto-registered, with a default cap of 20 entries per turn (adjustable in settings).
- New entries are marked “pending refinement”; the in-session model can proactively complete metadata, or after selecting entries in the admin page, you can trigger dedicated refinement sessions in bulk via “Refine Now / Refine Project / Refine Folder” (the model only pre-selects; nothing is applied automatically).
Retrieval, Linking, and Organization¶
| Capability | Description |
|---|---|
| Semantic search | Semantic search in the admin page, or the model calling artifact_find |
| Keyword search | artifact_search (first 8,000 characters of the body; if later parts of a longer document aren’t searchable, a truncation notice is shown) |
| Related suggestions | “Scan related entries” on the edit page, or artifact_suggest_links |
| Organization suggestions | Organization entry in the admin page, or artifact_suggest_cleanup (duplicates, missing files, pending refinement, zombie projects, etc.) |
| Project merging | artifact_merge_projects: rule-based clustering of candidates, undoable, old names converted to tags |
The library supports bulk folder import; project_overview can provide a one-line overview of a project’s outputs and resources.
Local File Manager (v0.7.0)¶
Switch to the “Files” view in the panel; the first time, you need to “Start file indexing.” The index scope is limited to the DSH workspace + directories where registered artifacts reside + user-specified extra directories — no full-disk indexing. Query syntax is consistent on Windows and Linux, Everything-style, e.g.: ext:psd, dm:today, size:>10mb, path:project.
| Platform | Index backend | Locate in file manager |
|---|---|---|
| Windows | Bundled portable Everything (vendor/everything/) |
explorer /select, |
| Linux | Pure-Node scoped index | D-Bus FileManager1.ShowItems, falling back to xdg-open of the directory |
It is isolated from the user’s locally installed Everything; lazy-launched — no search, no process. The session working directory is incorporated into the index with debounced events (config.indexScopeDebounceMs is adjustable). On the model side, search_files is available with the same scope as the panel.
Model Tools¶
The README lists 12 artifact tools: register_artifact, artifact_list, artifact_get, artifact_update, artifact_trash, artifact_restore, artifact_stats, artifact_search, artifact_find, artifact_suggest_links, artifact_suggest_cleanup, project_overview; plus 1 additional: search_files.
Maintenance¶
Scheduled cleanup (default every 7 days, cleanupIntervalDays settable to 1–365), automatic backups (default keeping 10 copies, backupKeep settable to 1–100), whole-library JSON export.
Installation and Activation¶
The plugin declares a minimum DSH runtime of >= 0.2.0-rc.2 (peerDependencies); if not satisfied, dsh plugin allow-version is required for an explicit override. Node requires >= 20.
Installation steps:
- In an environment where the DSH CLI is already installed, run the official install command:
dsh plugin add github:wyq183/dsh-artifact-library
If data lands in the web profile, you can use the commented variant:
# dsh plugin --profile web add github:wyq183/dsh-artifact-library
-
Restart
dsh weband confirm the startup log shows the artifact library store path line. -
Use either or both of the following:
- Open the native panel via the sidebar 🐋 “Artifact Library”;
- Use the sidebar footer “Artifact Library · Web version”, or visit<dsh web address>/ext/artifact-library/to enter the full admin page (some capabilities such as folder import, Refine Now, semantic search, and organization suggestions still mainly live on this page; they have not all been ported to the native panel yet).
Typical Usage¶
Have the model find artifacts: describe your need in any conversation, e.g., “Find the last output about video assets”, and the model will call artifact_find; use artifact_search or artifact_list / artifact_get when you need precise fields.
Register and update: the model can manually register via register_artifact; when auto-collection already covers session outputs, you can refine entries pending refinement on the admin page, or use artifact_update to change tags, project, or linked resources.
Bring local files into the library: in the panel’s “Files” view, click “Register” after a search hit; or have the model use search_files to locate a path within scope and then call register_artifact.
Project perspective: call project_overview for a project; if the same project has been split into multiple names, use artifact_merge_projects in the organization flow and confirm group by group as described in the README.
Maintenance: rely on the default scheduled cleanup and backups; export JSON from the admin page before migration or archiving.
Fit and Caveats¶
Who it’s for: users who use DSH for long-running projects and want to preserve and retrieve AI outputs and referenced materials across sessions; scenarios where you need to quickly search files within the workspace and registered directories and bring them into the artifact library. In the community directory it is classified as a “memory” plugin.
Platforms: Windows and Linux are the platforms explicitly supported and fully usable per the README; macOS is not yet adapted and should not be treated as a production dependency.
Permissions and security: the plugin runs with the current dsh process permissions, so its read/write scope matches the host. Before installing, read the GitHub repository source code and the MIT license, and understand that file indexing and auto-collection touch the local disk. The README also has dedicated “Security boundary”, “Privacy”, and “Known limitations” sections — it is recommended to read them before deployment.
Capability boundaries (excerpt): keyword search only indexes the first 8,000 characters of the body; semantic search, some organization, and import capabilities remain primarily in the full admin page; screenshots are marked as to-be-added in the repository, and the UI is subject to actual runtime behavior.
Epilogue¶
dsh-artifact-library brings DSH session outputs and local files within a scoped range into a single local library, connecting collection, refinement, retrieval, and model tools — reducing the loss of “artifacts living only in a single conversation.” Directory page: skillhub.cn/plugins/wyq183/dsh-artifact-library; source code and detailed configuration: github.com/wyq183/dsh-artifact-library.