dsh-three-modes: Switch between Discussion, Adversarial, and Task modes within the same session

dsh-three-modes is a DSH workflow plugin maintained by sunlei1214, providing three mode buttons (Discussion, Confrontation, and Task) and a master toggle below the input box. Switching modes updates the system prompt, tool permissions, and sampling temperature simultaneously, without creating a new session or losing context. In Discussion and Confrontation modes, tools are physically disabled (the default list covers write, edit, bash, etc.), while Task mode enables them. The temperature defaults to 0.7/0.2; in Task mode, the current value is inherited and only overwritten when the mode changes to avoid disrupting the prompt cache. State is stored in the session event stream and persists after refresh or forking. It supports the `/mode` slash command and `cordis.yml` configuration. Installation requires cloning the repository and mounting it as a profile bundle. The plugin directory must be a real directory copy under `node_modules`; otherwise, it will be silently skipped. The plugin runs with the permissions of the current DSH process; source code and license should be reviewed before installation.

Read More