How xqpsec/dsh-jailbreak works
This repository is a DeepSeek Harness plugin for rewriting outbound LLM request bodies, with a standalone portable kernel and optional HTTP proxy. The main user-to-result path is a host request passing through the plugin’s request-boundary transform before reaching the model; the README documents support for OpenAI, Anthropic, Responses, and Gemini request shapes. A separate evaluation and legacy-research branch measures the kernel and preserves older strategy experiments. The graph includes documented capabilities and indexed core modules; several implementation links are omitted because their source was not excerpted.
Main entry points: routes.js HTTP routes · kernel.js Portable kernel · proxy.js Kernel proxy · profile.js Model profiling
Components 27
Plugin Integration
- DSH host
- Plugin entry
index.js - Control panel
client.js - HTTP routes
lib/routes.js - Installation diagnostics
lib/doctor.js
Request Transform
- Kernel proxy
lib/proxy.js - Portable kernel
lib/kernel.js - Protocol adapters
lib/protocol.js - Endpoint handling
lib/endpoint.js - Anthropic handling
lib/anthropic.js
Research Features
- Scope gate
lib/gate.js - Research hub
lib/hub.js - Strategy arms
lib/arm.js - Search engine
lib/engine.js - Model profiling
lib/profile.js - Target taxonomy
lib/taxonomy.js - Prompt rendering
lib/render.js - Legacy H-CoT
lib/hcot.js - Live transport
lib/live.js - Prompt presets
lib/presets.js - Response judge
lib/judge.js
Evaluation
- Kernel A/B evaluation
eval/kernel-ab.mjs - Benign regression
eval/kernel-benign.mjs - Red-team evaluation
eval/kernel-redteam.mjs - Retry evaluation
eval/kernel-ladder-e2e.mjs - Legacy baseline
eval/run-baseline.mjs
Other components
- DSH user
Connections 20
- DSH user → DSH host: submits request
README.md - DSH host → Plugin entry: loads plugin
README.md - Plugin entry → Portable kernel: rewrites request
README.md - Portable kernel → DSH host: returns transformed body
README.md - Control panel → HTTP routes: calls API
lib/routes.js - HTTP routes → Research hub: serves research data
lib/routes.js - HTTP routes → Prompt presets: loads and lists
lib/routes.js - HTTP routes → Scope gate: routes gate operations
lib/routes.js - HTTP routes → Strategy arms: routes arm operations
lib/routes.js - HTTP routes → Live transport: routes live operations
lib/routes.js - Kernel proxy → Portable kernel: transforms requests
README.md - Kernel proxy → Kernel proxy: retries next rung
README.md - Model profiling → Prompt rendering: uses rendering
lib/profile.js - Model profiling → Target taxonomy: uses taxonomy
lib/profile.js - Kernel A/B evaluation → Portable kernel: transforms variants
eval/kernel-ab.mjs - Benign regression → Portable kernel: transforms variants
eval/kernel-benign.mjs - Red-team evaluation → Portable kernel: transforms variants
eval/kernel-redteam.mjs - Retry evaluation → Kernel proxy: tests proxy
eval/kernel-ladder-e2e.mjs - Legacy baseline → Legacy H-CoT: builds legacy prompts
eval/run-baseline.mjs - Legacy baseline → Response judge: scores responses
eval/run-baseline.mjs