rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Night-maze/dsh-desktop-pet-naiwa
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A Windows desktop companion built as a DeepSeek Harness plugin. It renders a transparent, frameless, always-on-top WPF window and reports real Agent progress, today's estimated Token cost, and the real Platform wallet balance. It supports click interactions, long-press drag, edge hiding, and drag-and-drop files to the Windows Recycle Bin.
中文完整说明:README.zh.md。
DSH client plugins are browser-side React UI running in a sandbox; they cannot create native OS windows. The plugin therefore consists of:
lib/index.js) that observes session/event, maintains a replay-aware daily token ledger, reads the real account balance, and owns a child process;pet/DesktopPet.ps1 + DesktopPet.cs) that renders the pet and performs gestures/file drops;turn/start, step/start, tool/call, turn/end, agent/error projection.≈.ctx.deepseekAccount.getBalance; failures keep the last value as stale, never zero.IFileOperation + FOFX_RECYCLEONDELETE; no permanent-delete fallback. AppContainer/low-integrity processes are refused.Install from npm:
dsh plugin --profile desktop add dsh-desktop-pet-naiwa
Or install a local checkout:
dsh plugin --profile desktop add link:F:\path\to\dsh-desktop-pet-naiwa
Then enable the dsh-desktop-pet-naiwa bundle in Plugins (or add it to dsh.profile.bundles), remove any absolute-path development row, and restart/reload. After the first client-graph scan, the sidebar shows 🐾 桌宠; refresh the page if it is not there yet.
See README.zh.md for installation, configuration, security guarantees, tests, acceptance, and known limitations. Full config sample: config.example.yml. Acceptance checklist: docs/acceptance.md.
node test/run-tests.mjs # host unit tests
node test/mock-host.mjs # real WPF + mock Cordis integration
powershell -STA -File scripts/demo.ps1
The recycle test must run in a normal user process, not the DSH workspace sandbox:
powershell -STA -File scripts/test-recycle.ps1
The settings API (/desktop-pet-api/*) answers only requests the composition's ctx.connection.requestRejection admits: the Host header rules out DNS rebinding, the Origin rules out cross-site calls, and the browser login cookie requires a real session. The loopback-only check stays as the boundary for profiles that ship no connection service. The only file-removal path is the Windows Shell recycle API with FOFX_RECYCLEONDELETE. If the Shell cannot recycle, the operation fails and the original stays. The pet refuses drive roots, system directories, reparse points, and restricted (AppContainer/low-integrity) processes. Cost is an estimate, balance is real, and progress is not fabricated.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。