MichengAI/dsh-archive-manager ↗★ 82

@michengai/dsh-archive-manager

NPM-installable DSH Web plugin for managing archived sessions. 适合积累了大量历史会话,需要高效分类、检索和恢复归档的用户。

Package
@michengai/dsh-archive-manager
Compatibility
Unverified
Harness peer range
0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.7-rc.1 || 0.1.7-rc.2
Cordis peer range
^4.0.1
Version
1.0.5
License
Apache-2.0
Last updated
Sep 27, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MichengAI/dsh-archive-manager

Usage

GoalAction
Archive one chatOpen its sidebar menu and choose Archive session
Archive a workspaceOpen the workspace menu and choose the option to archive its chats
Find an archiveOpen Settings → Archived sessions, then choose title/content search or filter by project, favorites, and dates
Change the orderSort by update time, creation time, title, or most/fewest turns
Restore one chatClick the restore icon, or choose More → Restore and open
Archive a project or ungrouped chatsOn Unarchived, open the group’s … menu and confirm archiving all chats in that group, regardless of search filters
Favorite a chatClick its right-side star; use the favorites dropdown to filter
Preview archived contentClick a match snippet or More → Quick preview
Clean up idle chatsOn Unarchived, set idle days, preview candidates, and confirm
Locate a sessionCopy its ID or path from More
Handle read errorsExpand diagnosis, diagnose first, and confirm repair when eligible
Archive across projectsSwitch to Unarchived, select sessions across projects, then click Archive and confirm
Restore or delete in bulkSelect chats and use the bulk actions, or use the project menu; there are no separate Restore all / Delete all buttons

The page opens on Archived, with Unarchived on the right. Switching tabs clears selections; changing search or project filters preserves them. Check the hidden selection count before applying bulk actions, or clear your selection first.

Select all filtered results selects matching sessions, including collapsed groups. Project-wide actions still apply to the whole project regardless of search filters. Unarchived excludes subagents and blank placeholders.

Settings and sidebar batch archive/restore call the single-session APIs serially: official ctx.workspaces.archiveSession on every supported host, official ctx.workspaces.unarchiveSession on DSH 0.1.6+, and this plugin's workspaceRegistry.unarchiveSession on older hosts.

Favorites and idle cleanup

Compact project groups can be collapsed. Stars and restore/archive icons appear on the right; archived session menus include restore-and-open and deletion.

  • Use the star on either tab and the Favorites only dropdown to find important chats. Favorites persist on the host across archive, restore, and browser changes. Reopen management to see changes made in other pages. Unknown or unreadable sessions retain their stored favorite IDs; cleanup requires confirmed artifact absence.
  • On Unarchived, enter 1–36,500 whole idle days and preview candidates under the current filters. Deselect individual candidates before confirmation. Favorites, the current chat, running sessions (including subagents), and pending interactions are protected; sessions without a valid activity time are excluded.
  • Archive rechecks favorites and activity. Batch archive, restore, and delete report successful, skipped, failed, and remaining items; the first failure stops the batch. Retry only the remainder. Delete retries still require confirmation.
  • Undo this archive restores sessions archived by the current batch, including successful retries. It is available only while the current management page remains open; refreshing or closing clears it. Permanent deletion cannot be undone.
  • Favorites can still be archived manually. Protection applies to idle cleanup only. There is no scheduled or automatic background cleanup.

View and continue archived conversations

Native conversation navigation has been available since 0.1.40; 1.0.0 uses these entry points:

  • Click the session title: open the native DSH session to view messages, attachments, and tool details. Continue chatting while keeping the session archived.
  • More → Restore and open: unarchive the session and open it to resume work.