dsh-gh-pages-artifacts: Sharing Agent Artifacts on GitHub Pages

Introduction

When running Agents in DeepSeek Harness (dsh), reports, dashboards, charts, or long-form documents often land in workspace files first. To turn these into shareable links, the common approach is to manually push them to static hosting or rely on the built-in “Artifacts / site” features of each product. If you want links that the Agent publishes upon writing, where the same link can be updated in place and the publish history stays trackable locally, you need a clear publishing toolchain integrated into dsh.

Below we introduce the community plugin dsh-gh-pages-artifacts (maintainer opdsh): it publishes HTML pages and Markdown documents to GitHub Pages and returns shareable URLs like https://you.github.io/dsh-artifacts/q3-report-k3x9ab/. The plugin is positioned to replace Claude Artifacts and the Codex desktop site functionality within dsh; the current GitHub repository has 0 stars, version 0.1.1, license MIT.

What Is This

dsh-gh-pages-artifacts is a network-type plugin for DeepSeek Harness: Agents use a set of artifact_* tools to create, list, read back, update, and delete artifacts, with content hosted on GitHub Pages. It is classified as a “network tool”; see the catalog page at skillhub.cn, and source code and documentation at GitHub.

DeepSeek Harness’s ecosystem philosophy is “everything is a plugin”; community directories like skillhub are independent of DeepSeek / HiFloat and are not official app stores. Before installing, review the source code and license yourself, and remember that the plugin runs with the permissions of the current dsh process.

Core Features

Agent Tools

Tool Purpose Requires Approval
artifact_publish Create an artifact from a workspace path or inline content, or update in place via id; Markdown is rendered into a page with light/dark themes, HTML is served as-is; assets go under assets Yes
artifact_list List artifacts chronologically (id, title, URL), filterable via query No
artifact_read Read artifact source code or other text files in chunks No
artifact_delete Delete an artifact; the id is never reused, old links will never point to new content Yes
artifact_status Diagnose token, repository, Pages settings, and whether the deployment is live No
artifact_repository Associate/disassociate a repository, or switch between shared and per-artifact strategies No

The plugin also injects a brief system prompt and bundles the artifact-pages skill (invoke via /artifact-pages; a skill with the same name in ~/.dsh/skills or in the project can override it).

Repository Strategies

  1. shared (default): All artifacts occupy separate directories under the same repository, with URLs shaped like https://<owner>.github.io/<repo>/<id>/. Repository source priority: runtime artifact_repository association → config repository → owner / repo.
  2. per-artifact: Each new artifact creates its own repository <owner>/<repoPrefix><id> (default prefix artifact-), requiring a token with repository creation permissions.

You can switch strategies in plugin settings, via repoStrategy, or in conversation; existing artifacts do not move, and updates/deletions locate them through the local registry.

UI and Registry

The Web / Desktop sidebar Artifacts panel lists published pages (title, link, description, repository, update time), supports refreshing to pull publish records from other machines, and allows inline-confirmation deletion (no Agent approval needed).

The local registry defaults to $DSH_HOME/gh-pages-artifacts/registry.json (configurable via registryDir); an index.html in the same directory provides a clickable index. You can ask the Agent “What have you published?” or “Show me the artifact index”.

Requirements

  • DeepSeek Harness 0.2.0-rc.2 or newer, and still within 0.2.x (Web, Desktop, or CLI).
  • A GitHub account and a repository with GitHub Pages enabled (using the plugin’s built-in setup flow is recommended).
  • Fine-grained PAT: Contents: Read and write (required), Pages: Read-only (recommended). The per-artifact strategy requires a higher-permission token that can create repositories and configure Pages.
  • Node: ^22.19.0 or >=24.0.0 (required when installing from source).

Installation and Enablement

1. Create a Repository and Enable Pages

Run this yourself in the terminal (do not hand it to the Agent), and ensure GitHub CLI is logged in:

node bin/setup.mjs setup --author "Your Name <you@example.com>"

Run the above command in the plugin repository checkout directory; it will create a public repository dsh-artifacts under your account (it will ask first), create the gh-pages branch, and enable Pages. After the package is published to npm, you can also use npx dsh-gh-pages-artifacts setup to complete the same steps.

Do not use a <user>.github.io personal site repository, to avoid conflicts with an existing site root directory.

2. Configure the GitHub Token

Read from the environment variable GH_PAGES_TOKEN by default (the config tokenEnv can change the name). Do not paste the token into the conversation. Optional sources (priority high to low):

  1. Environment variable before starting dsh: export GH_PAGES_TOKEN=github_pat_...
  2. $DSH_HOME/.credentials.yaml (default ~/.dsh/.credentials.yaml, permissions 600, supports hot reload):
version: 1
refs:
  GH_PAGES_TOKEN: github_pat_...
  1. .env in the startup directory or $DSH_HOME (requires restarting dsh; when coming from a project .env, the plugin requires configuring owner)

3. Install the Plugin

Install from the latest release (recommended):

dsh plugin --profile web add https://github.com/opdsh/dsh-gh-pages-artifacts/releases/latest/download/dsh-gh-pages-artifacts.tgz

Desktop / Web can fill in the same URL under Plugins → Add Plugin. Restart the running CLI profile after installation.

Install from GitHub source (a local build happens at install time; you need to allow it in the profile’s pnpm-workspace.yaml allowBuilds as prompted by dsh):

dsh plugin --profile web add github:opdsh/dsh-gh-pages-artifacts

4. Optional Configuration

Open Plugins → GitHub Pages Artifacts, or configure in the profile’s cordis.patch.yml, for example when using a non-default repository:

- id: gh-pages-artifacts
  config:
    owner: your-login-or-org
    repo: dsh-artifacts

Use dsh --profile web --dump-config to view the merged configuration. Common options include repoStrategy, siteDir ('' or docs, the latter avoids a root-directory public listing), approval, noindex, blockSecrets, etc. See the repository README for the full table.

Typical Usage

After the above steps, you can drive the Agent directly with natural language, for example:

  • “Turn this Q3 sales data into a dashboard page and publish it.”
  • “Write a one-page summary of this repository’s architecture and publish it.”
  • “What have you published?”; “Update the page with id q3-report-k3x9ab.”
  • If a link doesn’t work or the configuration is off: “Run artifact_status to check.”

After successful publishing, the Agent replies with the Pages URL; the same id can be updated via multiple artifact_publish calls, and the link stays unchanged. Markdown is converted into a static page with the source.md preserved; for complex interactions, you can have the Agent publish HTML.

Use Cases and Notes

Who it’s for: Developers and teams who need to quickly produce shareable reports, documentation, or small visualization pages in dsh and already have or are willing to use GitHub Pages.

Publicity: Published artifacts are visible to anyone holding the link; GitHub Free also requires hosted repositories to be public, and old versions may remain in git history after deletion. The plugin adds noindex by default, requires approval before publishing/deletion (except fully-privileged sessions under unless-full-access), and blocks hidden files and suspected credentials content, but the sharing scope is still up to you.

Technical constraints: Each change is an atomic commit via the Git Data API, no force-push; it refuses to write to existing Jekyll sites (with _config.yml and no .nojekyll) or protected branches. Pages typically update within about a minute, and browser caching may last up to about 10 minutes.

Security and permissions: The Agent runs as your OS user; path / assets are confined to the workspace, but it cannot prevent the Agent from proactively copying sensitive data into the workspace or submitting it inline—approval prompts and human judgment remain the final line of defense. Cookies / localStorage under the same GitHub Pages origin are shared across subpaths; for sensitive scenarios consider a separate org or a custom domain (configurable via baseUrl).

Conclusion

dsh-gh-pages-artifacts brings “write a page → publish → pin the link → list/update/delete” into a dsh plugin and sidebar, making it suitable for turning Agent output directly into shareable artifacts on GitHub Pages. For more information, visit the SkillHub catalog page and the GitHub repository README (which includes a Chinese README.zh.md).

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye