rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ailawu0409/dsh-session-archive
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文文档 · Releases · Report an issue
A community plugin for DeepSeek Harness that adds a session archive management section to Settings. It supports manual and automatic archiving, restore, search, project grouping, and guarded permanent deletion.
Unofficial plugin: This project is not published or endorsed by DeepSeek. DeepSeek Harness extension APIs may change between releases.
Warning: Permanent deletion removes session log data and cannot be undone by the plugin. Back up important sessions before deleting them.
settings.section.icon slot; older hosts keep the default glyph without error.@local/session-archive; remove that build before installing this one.Run the following command in an environment where the DSH CLI is available:
dsh plugin --profile desktop add github:ailawu0409/dsh-session-archive
Restart DeepSeek Harness, then open Settings → Archive management (归档管理).
To install a specific release, use its tag, for example:
dsh plugin --profile desktop add github:ailawu0409/dsh-session-archive#v0.1.1
Back up important session data, run the installation command again to fetch the desired revision, and restart DeepSeek Harness. Check the release notes before upgrading.
If an old development build named @local/session-archive is installed, remove it first:
dsh plugin --profile desktop remove @local/session-archive
dsh plugin --profile desktop add github:ailawu0409/dsh-session-archive
The public package uses a new plugin identity, so do not run the old and new packages together. Existing plugin-state settings and audit files are not intentionally cleared by an upgrade.
Turn off automatic archiving, then remove the package and restart DeepSeek Harness:
dsh plugin --profile desktop remove dsh-session-archive
Removing the package does not request permanent session deletion. Local settings and audit files may remain in the profile; back them up before removing them manually.
Automatic archiving is off by default. Enable it in Settings and choose a retention period. Settings offers 3, 7, 14, and 30 day choices, plus any custom value already stored by the Host.
After automatic archiving is enabled (or at startup when it is already enabled), the Host runs its first scan within about one minute and then scans every 60 minutes by default. The scan interval is an advanced Host setting and is not currently exposed in Settings.
A session must be safely named and older than the retention cutoff before it becomes a candidate. Running, live, pinned, blank, subagent, unavailable, migration-required, and already archived sessions are excluded. A scan processes at most 50 candidates, and scan/settings/delete work is serialized so operations cannot interleave.
Use the Session scope selector to switch between Archived sessions and Unarchived sessions. The archived view lists the archive set; the unarchived view lists normal sessions that are not archived, excluding subagent sessions and blank sessions except the live main session.
Search matches the session title, id, and project name. Choose a project to filter, sort by last update or creation time, and expand or collapse project groups. Actions are available per session and per project group. The archived view also has a page-level Delete all button, and the unarchived view has a page-level Archive all button.
The page-level Delete all and Archive all buttons apply to the whole view, not only to rows matching the current search or project filter. Per-group menus apply to that group's currently visible rows. There is no page-level unarchive-all action; unarchive all is available from each project group's menu.
Running sessions are skipped by the UI's archive action and reported in the result summary. DSH can also refuse pinned, in-use, or missing sessions.
Permanent deletion is available from the Archived sessions view. It requires confirmation and can target one session, one project group, or every archived session in the view. There is no trash or undo operation. Export or back up anything you may need later.
Before removing anything, the Host:
Sessions whose log is already absent are reported as skipped rather than failed. A single Remote request accepts at most 500 session ids; Delete all and a group delete split their work into smaller consecutive requests automatically and report the combined result.
After a successful deletion, the confirmed sessions disappear from the archived list immediately and stay gone when Settings is closed and reopened; the page reconciles with the Host's authoritative archive set, so the archived list and the DSH sidebar agree. Refused sessions stay in the list and show the Host's reason (pinned, in use, unreadable log, identity mismatch, and so on) instead of a neutral "No changes." notice. A refusal or an answer that carries no readable deletion batch is reported as an error, and no row is removed for it.
The plugin has no telemetry and no third-party analytics. Settings and deletion audit records are stored locally in the active DSH profile:
plugin-state/session-archive.json — durable settings: auto-archive toggle, retention days, scan interval, and an optional advanced session-log root override.plugin-state/session-archive-audit.log — JSON lines for successful, already-absent, and partial deletion outcomes; rotated at approximately 1 MiB with one previous generation kept as .1.For deletion, the plugin checks the configured log root (when set), DSH's JSONL persistence configuration, and the default DSH locations ($DSH_HOME/sessions, otherwise ~/.dsh/sessions). Session logs remain in the configured DSH JSONL session storage until explicitly deleted.
Audit records can contain session IDs and local log paths. Do not attach them to public issues without reviewing and redacting them.
Node.js 22 or newer is required. The project has no third-party runtime dependencies and does not require a dependency-install step for its tests.
npm run check
npm test
npm pack --dry-run
Host tests use temporary profiles, synthetic sessions, and fake services. Client tests load client.js through a mocked browser module loader, validate the Remote descriptor, and exercise the pure UI helpers. Do not run destructive tests against a real DSH profile.
See CONTRIBUTING.md, SECURITY.md, and CHANGELOG.md for contribution, security, and release information.
Released under the MIT License.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。