DeepSeek Harness Default Workspace Plugin

Introduction

DeepSeek Harness (DSH) provides a local workspace for agent sessions, but creating a new session often requires manually navigating to a specific directory. This creates a disconnect between the workspace and persistent archiving: sessions run in the current directory, while archiving relies on external tools or manual organization. This plugin introduces a sidebar entry that designates a directory as the default workspace, allowing new sessions to launch directly in that directory, while archiving conversations as Codex-style JSONL rollouts organized by date.

What Is It

guopanei/dsh-default-workspace is a local DSH plugin maintained by guopanei, categorized under Memory. It adds a default workspace entry to DSH, enabling the New session option in the sidebar to launch directly in a specified directory, and archives sessions conducted in that directory as JSONL rollouts by date — in a format consistent with Codex CLI’s $CODEX_HOME/sessions/YYYY/MM/DD/rollout-*.jsonl.

Core Features

  • Sidebar entry: A sidebar item with a folder icon for selecting and saving the default path.
  • Default workspace for new sessions: The New session row in the sidebar sets the working directory of new sessions to the default path (including file tools and sandbox root). When opening another workspace via the sidebar or explicitly selecting a different directory for a session, the session still follows the normal logic.
  • Codex-style archiving: For sessions whose working directory equals the default path, conversations are archived as append-only JSONL rollouts by date — one file per day, one record per session.
  • Fully local operation: The plugin only writes local files and exposes a single local Host-authenticated route at /api/default-workspace. No external requests are made.

Installation & Activation

  1. Clone the repository:
git clone https://github.com/guopanei/dsh-default-workspace.git
  1. In DSH, go to Settings → Plugins → Add plugin and select the folder you just cloned.

  2. If the sidebar entry does not appear immediately, refresh the page.

The plugin can also be installed via the plugin_manager tool within an agent session (action: install_bundle, with target set to the absolute path of the cloned directory).

To uninstall, remove the bundle in Settings → Plugins; any folders and rollout files it has written will remain on disk.

Typical Usage

  1. Click Default workspace in the left sidebar.
  2. Select a folder (or type an absolute path directly), then click Save. This path is also registered as a regular workspace and will appear in the sidebar list.
  3. Click the New session row in the sidebar; the session will launch in the default directory.
  4. After a session has taken place, the corresponding rollout file can be found under <default-path>/<YYYY-MM-DD>/.

Archived files follow this naming convention:

<default-path>/<YYYY-MM-DD>/rollout-<HH-mm-ss>-<sessionId>.jsonl

Each line is a JSON object containing the following fields (corresponding to Codex CLI rollouts):

Field Description
session_meta Session ID, workspace path, creation time, and title (if any)
turn_start / turn_end Turn number and termination reason
user / assistant Message text (reasoning, images, and file attachments are not archived)
tool_call Tool name and parameters (truncated to 2,000 characters)
tool_result Result text (truncated to 8,000 characters) and error flag

The plugin reads the last recorded sequence from the file on restart or after uninstallation to prevent duplicate appends.

Use Cases & Considerations

  • Suitable for users who need to persist and archive agent sessions by date and want new sessions to automatically launch in a unified working directory.
  • The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and MIT license before installing.
  • Archiving only applies to sessions whose working directory equals the default path; sessions in other workspaces and sub-agent sessions are not archived.
  • Clearing the default path stops both redirection and archiving, while already-written files are preserved.
  • The path is stored in <profile>/default-workspace.json, independent of plugin configuration, so it persists across plugin restarts and upgrades.
  • Archive write failures are logged at the Host layer; the UI does not currently display error details.

In Short

This plugin brings DSH a unified default workspace and date-based conversation persistence through a sidebar entry and Codex-style archiving — ideal for developers who need structured session records. For more information, visit the plugin catalog page and the GitHub repository:
- https://www.skillhub.cn/plugins/guopanei/dsh-default-workspace
- https://github.com/guopanei/dsh-default-workspace

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

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

Xiaoye