nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yueyao/dsh-session-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Batch browse, archive, delete and restore your DSH history sessions from a sidebar panel.
DSH stores every history session on disk under
DSH_HOME/sessions/<cwd-encoded>/<session-id>/ as a session.v4.jsonl.zstd
append-only event log, but the built-in session service exposes no delete or
archive API. This plugin fills that gap with a filesystem-level, reversible
workflow.
session/title event inside the log), with the real
working directory, origin, last-updated time and log size.DSH_HOME/archive/sessions/ directory. Data is preserved verbatim and can be
restored any time.rm -rf). Marked irreversible
in the UI and confirmed before running.A session log is a run of concatenated zstd frames, one per append, so
zlib.zstdDecompressSync alone stops after the first frame. The plugin locates
every frame by its 28 B5 2F FD magic bytes and inflates each slice. It then
reads:
session header, which carries the real, unencoded cwd
(the directory name alone is lossy: both / and a literal - encode to -);session/title event (measured: always within the
first six frames);session/title events, i.e. renames (measured:
always within the last sixty frames).The highest seq wins. Results are cached per session and invalidated by the
log's mtime and size, so listing 170 sessions costs a few milliseconds after the
first scan.
Install the plugin through the DSH plugin manager (Discover → Index sources),
or place the package in the profile's node_modules.
The host half also registers four tools for the agent to use directly:
session_manager_list — list all sessions and the archive.session_manager_archive — archive a batch by ids.session_manager_restore — restore a batch by ids.session_manager_delete — permanently delete a batch by ids.DSH_HOME/sessions/<cwd>/<id>/session.v4.jsonl.zstd # active sessions
DSH_HOME/archive/sessions/<cwd>/<id>/... # archived (preserved)
DSH_HOME/archive/sessions-index.json # archive index
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。