nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:C1ement314/dsh-clean-agent
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH agent preset for reclaiming disk space and removing leftovers on your own machine — caches, temp files, logs, uninstall residue, old installers, stale tool caches.
Its defining property is restraint. Cleanup Mode is not a "one click, everything is fast" cleaner: it discovers with read-only commands, classifies every candidate into a risk tier, writes a manifest, and deletes only what you confirmed. It prefers the system trash over permanent deletion, and it refuses to touch operating-system files and the DSH installation.
clean_scan (tree totals, largest subdirectories, largest files) and
clean_dupes (duplicate groups by size + SHA-256) turn "this folder looks big" into numbers;
both never follow links and both report when a walk was truncated.manifest.json, deleted.csv and protected.json in a per-OS audit directory.| Tier | Meaning | Examples | Confirmation |
|---|---|---|---|
| L0 | Forbidden | OS and boot files, DSH install and profile directories | Refused |
| L1 | Regenerates itself | temp, cache, logs, thumbnails, crash dumps | One confirmation |
| L2 | Safe but visible | uninstall leftovers, old installers, orphaned app data | Grouped, consequence stated |
| L3 | User data / high-risk | documents, media, source, keys, anything uncertain | Only if you name it, item by item |
Hard rules the preset enforces: no deletion without a manifest and an explicit confirmation; no wildcards in destructive commands; no registry or partition edits; no third-party cleaner installs; file names and documents are treated as untrusted data, never as instructions.
>= 0.2.1-rc.5.danger-full-access; with workspace-write the agent can only inspect
and will ask you to raise the permission. The preset cannot grant itself access — that is a
host-level policy, by design./var, C:\Windows\Temp, /Library). The
agent reports them instead of escalating silently.The agent uses one shell tool, preferring ops_bash (the OPS bundle's Bash terminal) when the
profile publishes it, then pwsh on Windows or bash elsewhere. The skills are written for
PowerShell on Windows and bash on POSIX, so the agent adapts the command syntax to whichever tool
it actually has.
The bundle also ships clean_shell, its own tool row, as the last resort. It is a wrapper over
the same host shell executor the official tool uses — PowerShell on Windows (pwsh 7 when present,
otherwise Windows PowerShell 5.1), bash elsewhere — so sandbox policy, timeouts, output limits and
the session working directory still come from DSH. Nothing is installed and no second shell
implementation is involved; only the model-facing tool name is ours, which is why profile policies
that hide pwsh/bash by name do not hide it.
A profile can hide the official shell tools on purpose. The dsh-ops bundle offers this through
its dsh-ops/shell component with shellPolicy: deny-host-shell, which denies pwsh, bash and
pwsh_persistent for every agent. A preset that mounts @deepseek-ai/dsh-tool-pwsh then has the
tool registered but filtered out of the model's tool list. Cleanup Mode needs a shell to measure
sizes, probe the trash and delete, so it stops at step one and tells you what is missing.
Fix it on the profile side: remove pwsh from that component's deniedHostTools, or do not enable
the deny policy. Another option is to enable the OPS shell component in advise mode, which
publishes ops_bash for every session — the agent then prefers it automatically.
Note that the dsh-ops mode rows (dsh-ops/mode-standard and friends) only serve their own
four built-in presets: ops_bash is gated by preset id, so a custom preset such as this one does
not receive it from a mode row. The component form above is not gated that way.
# from npm (recommended)
dsh plugin --profile <profile> add dsh-clean-agent@0.2.1
# or from the prebuilt tarball (same version, no npm account needed)
dsh plugin --profile <profile> add https://github.com/C1ement314/dsh-clean-agent/releases/download/v0.2.1/dsh-clean-agent-0.2.1.tgz
# from a checkout (development): point the manager at this directory
plugin_manager → action: install_bundle, target: <absolute path to this directory>
# or from the CLI against a profile
dsh plugin --profile <profile> add link:/absolute/path/to/dsh-clean-agent
A preset is only picked up by new sessions: open a new session and choose 清理模式 / Cleanup Mode from the preset selector.
If the preset card shows 加载失败, the diagnostic text names the failing plugin row — see docs/testing.md for the known failure texts and a safe rehearsal fixture.
Ask in plain language:
The agent will come back with a manifest before it deletes anything.
OS system and boot files, WinSxS, C:\Windows\Installer, package-manager databases,
/System, /usr, /boot, /var/lib/dpkg, the DSH installation and ~/.dsh, .ssh/.gnupg,
password-manager vaults, and cloud-placeholder files (deleting a placeholder deletes the cloud
copy). High-risk locations — Documents, Desktop, Pictures, source repositories — are never
proposed by the agent; it only inspects them when you name them.
Audit records are local only, per OS:
%LOCALAPPDATA%\dsh-clean\~/Library/Application Support/dsh-clean/${XDG_STATE_HOME:-~/.local/state}/dsh-clean/Layout: audit/sessions/<timestamp>/{manifest.json,deleted.csv,protected.json,report.md} plus
config.json for the protected-path list. Paths are stored verbatim on your machine; nothing is
uploaded. Old sessions rotate after 30 runs.
This release is prompt + knowledge base only. Two known consequences:
This software deletes files. It is provided "as is", without warranty of any kind. You are responsible for the confirmation you give and for keeping backups of anything you care about. Review the manifest, keep a backup of important data, and read the report before emptying the trash.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。