rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:TheM14/dsh-session-cleaner
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
An archived-session management plugin for DeepSeek Harness. It adds an Archived Conversations page to Settings with restore, safe deletion, leftover cleanup, and continuation under a new agent preset.
The plugin does not replace existing menus or rewrite a source session's header or event history. Its UI uses the host's semantic design tokens and follows the active theme.
0.1.0-rc.6.Clone and build the repository:
git clone <repository-url>
cd dsh-session-cleaner
npm install
npm run build
Enter the local plugin directory, add it to the dsh Web profile, then restart dsh web:
cd path\to\dsh-session-cleaner
dsh plugin --profile web add .
dsh web
To uninstall:
dsh plugin --profile web remove dsh-session-cleaner
Deletion is permanent. A live session is never deleted. If the host still owns a session, restart dsh and do not open that session again before deleting it.
Deletion follows this order:
verify archived + not live
-> rename log into quarantine
-> commit workspace registry
-> commit projection cache
-> purge quarantined log
If the registry or projection-cache write fails, the plugin stops and attempts to roll back prior changes. If logical deletion commits but final file cleanup fails, the quarantined log remains under $DSH_HOME/storages/.dsh-session-cleaner-trash/ and can be removed by Clean leftovers.
Sweep reads every required state before it starts writing. Any prerequisite read failure aborts the cleanup. A staged write failure also stops later stages and returns the completed counts.
Every POST request requires a plugin-specific sentinel header. The host also validates Origin, Sec-Fetch-Site, session-id syntax, and a 64KB request-body limit.
Continuation creates a lineage child through the public ctx.agents.create and ctx.agentPresets.mount services:
agent-preset/selected boundary is appended;parentSession, seedLength, and the target agentPreset;Real Web validation confirmed that the complete history renders, the target preset survives a cold restart, and the source log hash remains unchanged.
npm run build
npm test
npx tsc --noEmit -p tsconfig.json
npm test cleans and rebuilds lib/ before running the pure-logic and fake-host route tests. Prebuilt Host and Client bundles, declarations, and sourcemaps live in lib/ and are intentionally committed.
See plugin-design.md for the detailed transaction, security, and architecture decisions.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。