dsh-plugin-focus: Fixing Targets, Constraints, and Decision-Making in the DSH Agent
dsh-plugin-focus is an MIT-licensed plugin for DSH agents designed to address context compression and cross-session information loss. It uses a persistent focus board to record goals, constraints, and decisions, ensuring that key information is stably retained within the model's context. Core features include a focus tool supporting set, get, append, and clear actions, as well as a mechanism that automatically injects focus content into the model context at the start of each round or when changes occur. When clear is executed, old content is automatically archived to a backup file. The plugin provides configurable prompt guide sections, session projection, and an experimental read-only Web panel. After installation, DSH must be restarted. Configuration options cover file paths, archiving strategies, and injection length limits (maxChars), with all file access restricted.
Read More