rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:amd47802574/dsh-turn-hider
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Hide any single chat turn from the DeepSeek Harness (DSH) transcript — display only.
One click on the trash icon at the end of a message's icon row, and that whole turn (user message + assistant reply + tool activity + usage line) disappears from the conversation view. Nothing else changes: session logs, projection caches, the full-text search index and the model's context are never touched. Every hidden turn can be restored at any time.
为什么做这个 / 中文说明见 README.zh.md
session.v4.jsonl.zstd log, projection cache and search index stay exactly as
they were; the model still sees the hidden content in later turns.localStorage. They survive page reloads, app restarts and
re-entry into the session, and are scoped per session.--dsw-alias-*), so light/dark themes are followed automatically.F:/desktop/草稿文件/dsh产物/dsh-turn-hider;~/.dsh/profiles/desktop/package.json:dependencies: "dsh-turn-hider": "file:F:/desktop/草稿文件/dsh产物/dsh-turn-hider"dsh.profile.bundles: "dsh-turn-hider"pnpm install inside the profile directory (or simply create a junction:
mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-turn-hider" "<this folder>");dsh plugin add github:amd47802574/dsh-turn-hider
or install it from any plugin manager that reads GitHub sources, then restart.
A PR to the DSH plugin marketplace is planned; once merged, the plugin appears in the in-app store search.
copy 👍 👎 summary share 🗑 22:53 — the trash sits right before the clock;chat flow rows (seats)
├─ user message row (icon row clock="start") ─┐
├─ tool process group (data-chat-turn="N") ├─ turn block N
├─ assistant reply row (icon row clock="end") ─┘
└─ turn tail / usage (data-turn-tail="N")
data-chat-turn / data-turn-tail / data-turn-process) → React fiber props
(routedNode.location.turn.turn, or a turn prop) → ordinal count of user
messages.data-dth-hidden="1" on every row of the block; a single CSS
rule (display:none !important) collapses it. A debounced MutationObserver
re-applies the state whenever React re-renders or history pages in.localStorage["dsh-turn-hider:hidden:v1"] keyed by
session id.Does the model still see hidden turns? Yes. This is a display-layer tool; the next request still carries the hidden content. Use it to declutter your view, not to erase context.
Is anything deleted? No. Logs, caches, indexes and session state are untouched. Hiding is reversible and local to your browser profile.
Does it sync across browsers/devices? No — the hidden list is per browser (localStorage). Different windows of the same browser share it.
Does hiding survive app restarts? Yes, as long as the same browser profile is used.
| Symptom | Fix |
|---|---|
| No trash button on icon rows | Restart DSH after installing; the bundle loads at startup |
| Click does nothing | Update to ≥ 0.1.1 (user-message-anchored blocks) and restart |
| Badge missing | You are not inside a session view; open a conversation first |
| A turn comes back after scrolling | History re-paged in; the observer re-hides it within ~100 ms |
Remove dsh-turn-hider from dsh.profile.bundles and dependencies (or
uninstall via the plugin manager), then restart. To wipe the hidden list, clear
the dsh-turn-hider:hidden:v1 key from localStorage.
| Host | Status |
|---|---|
| DSH Desktop (Electron web UI) 0.2.x | ✅ tested |
DSH Web profile (dsh web) |
expected to work (same client runtime) |
| Chat themes | tokens-based, follows light/dark |
No build step: client.js is hand-written in the official client-bundle shape
(window.__ModuleLoader__.load({ id, factory })), host.js is a no-op cordis
service. node --check client.js is the only validation needed.
dsh-turn-hider/
├── client.js # browser half: scan, hide, inject, panel, storage
├── host.js # cordis mount anchor (no-op)
├── cordis.patch.yml # bundle patch: insert the anchor service
├── package.json # dsh.bundle.patch + dsh.client declarations
└── icon.svg
PRs welcome — keep the display-only guarantee: never touch session data.
MIT © amd47802574
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。