DeepSeek Harness plugin

dsh-context-pack

Deterministic privacy-aware repository context packs for DeepSeek Harness

Jump to install

Source facts

Repository
MkaliezZ/dsh-context-pack
Latest update
Aug 19, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
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/MkaliezZ/dsh-context-pack
Plugin: dsh-context-pack
Author: MkaliezZ

Check the source files

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

File explorer3 files
README.mdSource · read only

dsh-context-pack

Deterministic, privacy-aware repository context packs for DeepSeek Harness (DSH).

The DSH-native /context-pack [repository path] command performs an explicit, read-only scan, builds a bounded pack, then queues that pack through agent.inject() for the next model step. It does not wake an idle agent, modify source files, or silently include files that exceed privacy/size rules.

Why

DSH makes model-visible context part of the agent/session lifecycle. A repository context plugin should therefore be bounded and inspectable rather than silently dumping an entire repository into every prompt.

v0.1 behavior

  • human-initiated /context-pack command; no model-directed autonomous scan;
  • deterministic path ordering;
  • fixed noisy-directory exclusions;
  • fail-closed sensitive-path exclusions (.env, common credential/secret names, SSH private-key names);
  • text-extension allowlist;
  • per-file, total-byte, file-count, and final injection budgets;
  • full-file inclusion only — no silent truncation;
  • SHA-256 per-file identity and whole-pack digest;
  • lightweight stack detection;
  • no network and no source mutation;
  • context is queued via the documented DSH agent.inject() seam and is therefore consumed at a later admitted model step.

Bundle config

- id: dsh-context-pack
  name: '@mkaliezz/dsh-context-pack'
  config:
    maxFiles: 60
    maxTotalBytes: 120000
    maxFileBytes: 30000
    maxInjectedBytes: 120000

Run:

/context-pack .

The command returns only a compact receipt (pack digest, included-file count, source bytes, exclusion count). The model-visible pack is injected separately through DSH rather than echoed into the command result.

Core API

const pack = await buildContextPack('/path/to/repo', {
  maxFiles: 60,
  maxTotalBytes: 120_000,
  maxFileBytes: 30_000,
})

Non-claims

  • not a secret scanner or DLP system;
  • not a sandbox;
  • no complete .gitignore compatibility yet;
  • no semantic relevance ranking;
  • no guarantee that every sensitive filename pattern is covered;
  • v0.1 does not persist a standalone context-pack lifecycle record beyond DSH's own command/inbox/session facts.

Development

npm test

Because DSH is Developer Preview, compatibility should be proven against a pinned DSH revision before each compatibility claim.

License

MIT