dsh-protect-generated-files: Intercepting Agent Adversaries Modifying Lockfiles and Generated Code
2026-10-22
DeepSeek Harness plugin
DeepSeek
DSH
dsh-protect-generated-files
admin-security
code generation
This article introduces the DeepSeek Harness community plugin *dsh-protect-generated-files* (by acus9345, admin-security). The plugin intercepts tool calls to deny adversaries from performing write/edit operations on lockfiles, generated code, and common in-place shell file modifications, while prompting the correct source files to modify and regeneration commands. It covers three types of detection logic (lockfile filenames, known output paths, and file header comments), installation commands for web/headless/ACP modes, *cordis.patch.yml* configuration options, and usage of *identical* retry and ignore functions. Licensed under MIT; please review the source code and permission boundaries before installation.
Read More