# Repository Briefing: killher1/dsh-claude-preset
> Source: https://repoforai.com/repo/killher1/dsh-claude-preset (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/killher1/dsh-claude-preset
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B+ (75/100 · Maintenance 35/35 · Adoption 9/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI
- **Momentum**: 91 ★ total (+3 24h / +45 7d) · 7 forks
- **Topics**: `dsh-plugin`
- **When to Use**: Best for: DSH teams that want Claude Code-style planning and tool guidance while retaining their existing sandbox, tools, and profile setup. Skip if: You need a standalone agent, an MCP server, local inference out of the box, or Claude Code-specific features such as hooks and persistent memory.

## Overview
```text
### Architecture & Core Mechanics
This is a JavaScript preset extension for DeepSeek Harness, not a separate agent runtime or MCP server. The package requires Node.js 20 or later and declares `@deepseek-ai/dsh-agent-preset` and `@deepseek-ai/dsh-compaction-basic`. DSH loads it as a bundle in the target profile. `index.js` and `prompt-text.js` blank `harness:identity`, inject the adapted persona into `deployment:persona-prefix`, and add a separate search-guidance section.

`index.js` registers tool descriptions from `tool-descriptions.js` in the `claude-code` agent's child scope rather than replacing tools globally. `cordis.patch.yml` adapts Plan Mode and configures an isolated compaction group. In `compaction.js`, a `BasicCompactionEngine` subclass changes the summary instructions while retaining DSH's thresholds and checkpoint locking. If the base class cannot load, the extension warns and falls back without the custom compactor.

### Key Capabilities & Differentiators
The preset changes how the model is instructed to use 11 tools, without adding new tool implementations. It appends guidance to the native `bash` and `pwsh` descriptions so sandbox constraints and `sandbox_permissions` instructions remain visible. `glob` and `grep` stay native, preserving overflow spill files, while DSH-specific tools such as `apply_patch`, `jobs`, and `workflow` remain available.

Plan Mode asks for context, one recommended approach, critical files, reusable utilities, and verification, while preserving DSH's planning controls. Compaction uses a nine-section summary and removes draft material. In one interactive webpage task using DeepSeek V4.1 1017, elapsed time fell from 686 s to 383 s (44.2% lower), total tokens from 5,370,913 to 2,292,784 (57.3% lower), and output tokens from 83,010 to 56,574 (31.8% lower). This tests one task on one model, not broader model compatibility or output quality.

### Trade-offs & Limitations
Compared with stock DSH, this preset adds a more prescriptive workflow without migrating away from native tools or sandbox policies. Prompt guidance can steer behavior, but does not enforce it. The extension also introduces compatibility points to test on DSH upgrades: prompt section names, scoped tool registration, and the compaction base class. Compared with Claude Code itself, this is a prompt and workflow port, not a feature-equivalent runtime: hooks, output styles, persistent memory, and Chrome automation are not carried over.

The nine-section summary makes long-session state easier to scan, but do not assume that every implementation detail survives compression or that two context managers will work well together. Treat the token and timing results as a reason to run a pilot, not as a capacity or cost forecast. Measure task completion and verification quality on representative repositories alongside time and token use.

### Hardware & Deployment Guide
Use an existing DSH installation and Node.js 20 or later. Install through the DSH Plugins UI, run `dsh plugin --profile web add dsh-claude-preset` for npm, or point the same command at a local checkout. The CLI installer uses `pnpm`; Electron desktop installations are managed separately through the desktop UI. Restart `dsh web` or the DSH host, then select the Claude Code preset in a new session.

If another plugin manages context, set `DSH_CLAUDE_PRESET_DISABLE_COMPACTION=1` before startup to avoid double compaction. Alternatively, set `compaction-basic` to `enabled: false` to skip registration, or `auto: false` to retain manual `/compact`. The plugin installs into the host profile but does not supply inference or bring a remote model offline. No GitHub release is listed; pin a package version or use a controlled checkout and test it against your DSH version before rollout.
```

## Key Capabilities
```text
- Profile isolation: Loads as a DSH bundle without changing the host installation; tool-description overrides are scoped to the `claude-code` agent.
- Tool boundaries: Overrides 11 descriptions, appends guidance to native `bash` and `pwsh` descriptions, and leaves `glob` and `grep` definitions intact for spill files.
- Plan Mode: Adds a single recommended approach, critical files, reused utilities, and verification while retaining DSH's `exit_plan_mode` workflow.
- Context compaction: Extends `BasicCompactionEngine` with a nine-section summary; automatic compaction can be disabled without removing `/compact`.
- Prompt adaptation: Maps Claude Code v2.1.329 guidance to DSH tool names and `AGENTS.md`, without porting Claude Code-specific features.
- Benchmark scope: One DeepSeek V4.1 1017 webpage task went from 686 s to 383 s and from 5,370,913 to 2,292,784 total tokens.
```

## Quick Start / Clone
```bash
git clone https://github.com/killher1/dsh-claude-preset.git
dsh plugin --profile web add ./dsh-claude-preset
```
