ystyle/dsh-tool-terminal-search

ystyle★ 0TypeScriptLast synced: 2026-08-14

Open on GitHub

README excerpt

dsh-tool-terminal-search A terminal search tool plugin for DeepSeek Harness (dsh): locate lines in large retained terminal scrollback by literal substring or regular expression, without paging backward blindly through tens of thousands of log lines. The tool is composed only over the public ctx.terminals.read seam — no upstream package changes, so it runs on published dsh releases today. Why terminal read pages retained scrollback by newest-relative offset / count . With backend log output running to tens of thousands of lines, a model cannot tell where the interesting lines are: it has to page backward from the newest output one page at a time, and totalLines alone does not locate a needle in the retained buffer. terminal search closes that gap by finding lines by content. Install In your dsh profile directory (e.g. /.dsh/profiles/web ), add the dependency and the patch entry: Restart your dsh profile. The model gains terminal search next to the official terminal open / terminal send / terminal read tools. Behavior terminal search(sessionId, pattern, regex?, offset?, limit?) : - Pages the whole retained scrollback (newest → oldest) through terminal read and matches each line. - pa…

View full README on GitHub →
Terminal / TUIdsh-pluginterminalsearch

Category