leonardoxr/dsh-coding-tools ↗★ 0
dsh-coding-tools
Bounded code reading, exact-version editing, structural search, and LSP intelligence for DeepSeek Harness.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:leonardoxr/dsh-coding-tools说明文档
阅读完整 README ↗Configuration
An expandable Coding tools card appears in Settings → Plugins → Plugin configuration. It provides switches for code_read, edit_ranges, ast_grep, and lsp, separate Require edit approval and Require process-start approval controls, and a conspicuously warned native-Windows compatibility opt-in for reduced process isolation. Approval prompts default on. Advanced limits and language-server plans remain profile configuration. Saved settings persist in DSH's user layer and apply live: disabled tools are unregistered, enabled tools are registered, and process-backed resources are stopped or recreated without restarting DSH Web. Reconfiguration cancels in-flight reads and queries, drains edits that may already have committed, and invalidates existing cursors and code_read version tokens.
Profile patch layers can replace the inserted row with explicit base configuration:
- insert:
- id: dsh-coding-tools
name: 'dsh-coding-tools'
config:
inlineMaxBytes: 8192
approvals:
editRanges: true
processStart: true
processPolicy:
allowWindowsPartialReadOnlyProcessConfinement: false
codeRead:
enabled: true
defaultLines: 200
maxLines: 2000
maxBytes: 262144
maxFileBytes: 16777216
snapshotMaxBytes: 67108864
versionedEdit:
enabled: true
requireObservedRanges: true
maxOperations: 100
maxChangedBytes: 1048576
diagnosticsOnWrite: true
ast:
grepEnabled: true
executable: '' # empty = pinned @ast-grep/cli binary
maxFileBytes: 2097152
maxMatchesPerPage: 50
maxTotalMatches: 5000
timeoutMs: 30000
lsp:
enabled: true
servers:
clangd:
command: '/absolute/path/to/clangd'
args: ['--background-index=false']
extensions: ['.c', '.cc', '.cpp', '.h', '.hpp']
languageId: 'cpp'
env: {}
maxOpenDocuments: 64
maxDocumentBytes: 16777216
maxDiagnosticBytes: 4194304
debug:
enabled: false
Executable paths in configuration must be absolute. Repository files never select a binary or inject command-line arguments. Environment entries are explicit; DSH's subprocess provider removes ambient credential-shaped and DSH_* variables before applying them.
Native Windows compatibility
processPolicy.allowWindowsPartialReadOnlyProcessConfinement defaults to false. When explicitly enabled on native Windows, only ast_grep and configured LSP starts may accept DSH's partial restricted-token enforcement; full remains required on every other host and for every unknown enforcement value. The process policy is still forced to read-only, executable plans remain operator-controlled, and all normal bounds and lifecycle cleanup remain active.
This is reduced isolation, not an equivalent Windows implementation of Linux full confinement. Everyone-writable ACLs and NTFS hard links can weaken write isolation, FAT-class targets outside granted roots remain writable, and the backend does not isolate reads, network access, or process visibility. Use it only with trusted repositories and executables.