oliverkim5017/dsh-oliver-qol ↗★ 0

dsh-oliver-qol

Personal quality-of-life features for the DeepSeek Harness 适合需要清理孤立状态、优化任务板及辅助搜索的 DSH 深度用户。

Package
dsh-oliver-qol
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.2
Version
0.4.0
Last updated
Oct 23, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:oliverkim5017/dsh-oliver-qol

Configuration

- id: oliver-qol
  config:
    sessionDelete:
      sessionsRoot: 
          # default: dshHomePath('sessions')
      quiescenceTimeoutMs: 15000    # default: 15000
      quiescencePollMs: 200         # default: 200
      removeOrphanedTeamState: true # default: true
      pruneTaskBoardReferences: true # default: true
      taskBoardLedgerPath: 
   # default: dshHomePath('task-board', 'ledger-v2.json')
    opencodeSearch:
      enabled: false                # default: delegate to the built-in search provider
      model: deepseek-v4.1-flash    # auxiliary Messages model; any OpenCode Go id
      proxyUrl: ''                  # search-only proxy host; empty connects directly
      proxyPort: ''                 # search-only proxy port; empty keeps the URL's own

sessionDelete.sessionsRoot must match the root of the profile's session-persistence-jsonl row ($DSH_HOME/sessions by default). If a deployment moves that root, set both.

removeOrphanedTeamState and pruneTaskBoardReferences clean the two pieces of state that only reference a session, after its log is gone. Both are best-effort: a failure is warned and skipped, never surfaced as a failed delete, because the session the user asked to delete is already deleted.

  • AgentTeams keeps /.agent-teams// (team.json + member inboxes) under the directory the session ran in. When the delete removes a team's captainSessionId, that team can never be resumed — the plugin treats the captain as its only owner key — so the directory is removed. A team that lost only a member while its captain lives may still be running or resumable, so it is reported, not edited: rewriting team.json from here would race the plugin for a team it still owns.
  • Task board keeps $DSH_HOME/task-board/ledger-v2.json, and every card's executions[] entry pins the session that performed it. Only those dangling records are dropped. Cards, columns, prompts, schedules and open executions (endedAt absent) are never touched, and an unknown schemaVersion is refused rather than pattern-matched. The replace is optimistic — the file is re-read immediately before the write, and any concurrent change aborts the pass — so losing one cleanup pass is possible and harmless; clobbering the board's newest state is not.

opencodeSearch is a live section: the Extend settings row writes it without a restart. Per search, the provider reads the baseURL and apiKeyEnv that the opencode-go profile row (the dsh-opencode-go plugin) currently resolves, and resolves that credential reference through the credentials service — the same OPENCODE_API_KEY the chat route uses. Those are the only two facts it borrows: the proxy is the row's own (proxyUrl/proxyPort), so nothing configured for chat traffic reaches a search, and nothing a search sets reaches chat. Without that plugin the documented defaults apply (https://opencode.ai/zen/go/v1, OPENCODE_API_KEY).

proxyUrl takes a host (127.0.0.1), a host and port (127.0.0.1:7890), or a full URL with a scheme (socks5://127.0.0.1); a bare host is read as HTTP. proxyPort is a decimal 1–65535 and overrides any port inside proxyUrl; empty means the search uses whatever port the address carries. Both empty connects directly. The Extend-settings row commits each half on blur or Enter — one typed address is one write — and refuses a port the host would refuse, so the row and the next search cannot disagree.

How the search selection works

The bundle patch points the web seam at this provider (web.searchProvider: opencode-go). While the Extend-settings row is off, the provider delegates every search to the built-in deepseek-official provider, so installing this plugin changes nothing until the feature is enabled. A deployment can drop the web override from cordis.patch.yml (or its own profile patch) to ignore the provider entirely.

One search is one auxiliary model turn against the OpenCode Go endpoint with the native web_search_20250305 server tool — latency plus tokens count against the Go usage quota. deepseek-v4.1-flash is verified end-to-end through this provider (10 structured results, ~10k input tokens); other Go model ids are selectable but unverified for server-side search. OpenCode Go requires x-opencode-session on every request: the provider sends the initiating conversation's id and, outside a conversation, one stable per-instance id.