dsh-taskfold: A Context Folding Plugin for Keeping Code Agent Sessions Concise

dsh-taskfold is a memory management plugin for DeepSeek Harness, designed to address context window overflow and high costs caused by the accumulation of historical messages in long sessions. The plugin wraps workflows with the `task_begin` and `task_end` commands, and after a task is completed, it automatically collapses the content into a short title summary while persisting the original content. Users can retrieve the pre-collapse content on demand at any time using the `fold_recall` command. It can be used in conjunction with the built-in compression mechanism, supports installation, and requires a process restart to take effect, helping developers keep sessions organized and control inference costs.

Read More