dsh-workspace-change-awareness
Run the following command in DeepSeek Harness:
dsh plugin install kingcheng12/dsh-workspace-change-awareness
Paste the following prompt into your AI chat to install this plugin:
Install this plugin in DeepSeek Harness by running dsh plugin install kingcheng12/dsh-workspace-change-awareness; the source code is available at https://github.com/kingcheng12/dsh-workspace-change-awareness
About this plugin
In a DeepSeek Harness session, an agent edits files while a human developer, an IDE, or an external script may be modifying the same repository concurrently. Without an external-change awareness layer, the agent keeps acting on stale cached content and produces results built on incorrect premises. dsh-workspace-change-awareness closes that blind spot: before every model request it invalidates affected paths through a shared Chokidar watcher, then re-resolves and stats each path via ctx.fs so the model sees the true workspace state.
The plugin enforces three layers of protection. First, a pre-step notice: when a path changes outside the session's acknowledged baseline, a user-role notice is injected at agent/pre-step, asking the model to re-read the affected files and inspect the current diff; the notice is persisted before the model can see it. Second, a turn-stopping final check: if a new filesystem state arrives or the watcher boundary degrades while the model is still reasoning, agent/turn-stopping performs one additional step to feed the latest state into the model. Third, graceful degradation and recovery: a watcher error first emits a model-visible coverage-degradation warning before the registry attempts a fresh watcher, and previously acknowledged paths continue to be revalidated through ctx.fs.stat() on every subsequent step, so a brief outage never silently drops a change.
This mechanism fits real-world engineering environments where multiple actors touch the same files simultaneously: a developer's terminal, IDE auto-save, CI hooks, and the harness agent all operate on the same codebase. A brand-new agent starts from the current workspace state and does not report initial files as changes; a resumed or compacted session receives a conservative re-read reminder because process-local observations cannot cover edits made while DSH was stopped. The bundle works out of the box with no configuration, is released under the MIT license, and suits teams and individuals who want an external change-awareness layer in their harness workflow.
Use Cases
- A human developer and an agent edit different files in the same repository at the same time
- An IDE auto-save or an external script modifies files while the agent is still reasoning
- Multiple agents operate concurrently on the same workspace and each needs to detect the other's changes
Best For
- Developers building multi-agent workflows on DeepSeek Harness
- Teams where agents, IDEs, CLI tools, and CI scripts edit the same codebase concurrently
- Engineers who need agents to maintain workspace consistency during long-running tasks
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.