DeepSeek Harness plugin

dsh-gpt-remote-compaction

Compacts GPT conversations in DeepSeek Harness via a remote OpenAI-compatible endpoint.

Jump to install

Source facts

Repository
UABULAJIQL/dsh-gpt-remote-compaction
Latest update
Aug 14, 2026
Category
Memory
GitHub stars
1
Format
bundle
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/UABULAJIQL/dsh-gpt-remote-compaction
Plugin: dsh-gpt-remote-compaction
Author: UABULAJIQL

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

@sqnb/dsh-gpt-remote-compaction

中文 | English

Adds remote compaction for GPT routes in DSH. The plugin subclasses DSH's BasicCompactionEngine and replaces only summary generation, leaving native pressure policy, /compact, tool-pairing checks, durable replacement, and replay behavior in DSH.

Install

dsh plugin --profile web add https://codeload.github.com/UABULAJIQL/dsh-gpt-remote-compaction/tar.gz/refs/heads/main

Fully stop and restart dsh web after installation. A browser refresh does not load a new profile bundle.

When installing from a local checkout, use the file: protocol:

dsh plugin --profile web add file:C:/path/to/dsh_plugin/gpt-remote-compaction

Do not pass a local directory bare. pnpm treats that form as link:, which links the source without installing the plugin's runtime dependencies; dsh web then fails while loading the profile because @deepseek-ai/dsh-compaction-basic cannot be resolved.

Behavior

  • Only routes whose model id contains a gpt- or chatgpt- marker use remote summarization, including gpt-5 and openai/gpt-4o; other routes retain DSH's base summarizer.
  • It runs automatically when DSH BasicCompactionEngine reaches its context-pressure threshold, during context-overflow recovery, or through manual /compact.
  • Unless DSH_GPT_COMPACTION_MODEL is set, the remote request uses the GPT model actually routed for the current session.
  • Remote requests do not inherit the conversation's reasoning_effort; the remote endpoint and model apply their own default reasoning policy.
  • DSH owns history selection, retained-tail policy, tool-pairing checks, durable checkpoints, and replay; this plugin only replaces the remote summary request.

Remote endpoint

Defaults: https://api.openai.com/v1/responses, credential reference OPENAI_API_KEY, the current GPT conversation model, and an 8192-token summary output cap.

Environment overrides:

  • DSH_GPT_COMPACTION_ENDPOINT: OpenAI-compatible Responses or Chat Completions endpoint
  • DSH_GPT_COMPACTION_API_KEY_ENV: DSH credential reference, default OPENAI_API_KEY
  • DSH_GPT_COMPACTION_MODEL: dedicated remote compaction model
  • DSH_GPT_COMPACTION_MAX_OUTPUT_TOKENS: positive integer output cap

Credentials are resolved from DSH ctx.credentials by reference, with a process-environment fallback. An endpoint containing /chat/completions automatically receives the Chat Completions request shape.

Scope and limitation

Remote summarization applies only to model ids containing a gpt- or chatgpt- marker, including qualified ids such as openai/gpt-4o. Other routes use the base DSH LLM summarizer. OpenAI's native /responses/compact endpoint returns encrypted compaction items, which cannot be represented as a portable text summary in DSH; the plugin fails clearly rather than storing unusable ciphertext.

License

MIT

Copyright (c) 2026 sqnb