DeepSeek Harness pre-written reuse firewall
Pre-write reuse firewall for DeepSeek Harness: before the agent writes a new helper/service, surface the existing implementations that already cover that intent.
Project overview
dsh-code-reuse-firewall Pre-write reuse firewall for DeepSeek Harness — for PYTHON repositories. Before the agent writes a new helper / service / manager, reusecheck deterministically surfaces the existing Python implementations that already cover that intent, so the agent reuses or extracts instead of duplicating. Why
Static checkers only catch what looks wrong. The expensive failure mode in AI-maintained codebases is the opposite: two implementations of the same capability drift apart silently, because nothing looked broken when the second copy was written. The fix is to intervene before the second copy exists — surface the overlap while the new code is still a plan, not a file.
Then configure the audit checkout and interpreter in your profile: Usage