MkaliezZ / dsh-context-pack

목록에 있음

Deterministic, privacy-aware repository context packs for DeepSeek Harness context injection.

main도구 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:MkaliezZ/dsh-context-pack

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 0492649동기화 2026. 8. 18.

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

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨

저장소 정보

언어
TypeScript
라이선스
MIT
마지막 업데이트
2026. 8. 15. 오전 6:16

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.