# dsh-plugin-disk-usage **Repository Path**: QianChengdeai/dsh-plugin-disk-usage ## Basic Information - **Project Name**: dsh-plugin-disk-usage - **Description**: deepseek 工作空间文件夹空间大小插件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-11-16 - **Last Updated**: 2026-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Workspace sizes Adds a **Workspace sizes** entry to the left sidebar. Open it to see how much space each folder inside your workspaces uses on this computer. ## Install From npm, against one DSH profile: ```sh dsh plugin --profile add dsh-plugin-disk-usage ``` Or in the DSH desktop app, open **Plugins → Add plugin**, enter `dsh-plugin-disk-usage`, then enable the bundle and restart DSH. This release requires DSH `>=0.2.2-rc.3 <0.3.0`. ## What it shows - A column chart at every level: workspaces by total size on the overview, and the entries of the current folder once you drill in. It shows the twelve largest columns plus one aggregate column for the rest, and hides itself when there is nothing to compare. - One card per workspace with its total size, file count, and folder count. - A ranked bar chart of every folder directly inside the workspace: each row carries the folder name, a proportional bar, its share of the workspace, and its size, plus one summed row for the files that sit directly in the workspace root. - Select a folder to drill into it: its files and subfolders appear as their own bar-chart rows, with a breadcrumb trail back to the workspace. ## Where to find it The entry sits in the left sidebar's panel list beside **Plugins** and **Schedules**. The sidebar owns the button, its tooltip label, and the selected state; the panel fills the centre column while it is selected. The other sidebar entries and the conversation remain one click away. To go back, use **Up one folder** in the breadcrumb row; at a workspace root it reads **All workspaces** and returns to the workspace list. ## How it measures Sizes are computed by the Host half inside the running Harness process from file metadata only (`readdir` + `lstat`): no file content is read, nothing is written, and no data leaves this computer. The browser asks for a report over the Host's authenticated `/api` channel, so only the page this Host serves can read it. Bounds keep one huge tree from holding the panel open: - Symbolic links are skipped, so a link loop cannot recurse forever. - At most `maxEntries` directory entries are visited per report. - A report stops after `timeBudgetMs`, and anything incomplete is marked as partial in the panel. Reports are cached for `cacheTtlMs`; **Refresh** bypasses the cache and measures again. ## Configuration The bundle's row in `cordis.patch.yml` accepts these keys: | Key | Default | Meaning | | --- | --- | --- | | `maxEntries` | `300000` | Directory entries visited per report before it stops early. | | `timeBudgetMs` | `20000` | Wall-clock budget for one report before it stops early. | | `cacheTtlMs` | `15000` | How long one workspace/folder report is reused. | | `concurrency` | `16` | Maximum concurrent filesystem operations. | | `exclude` | `[]` | Folder names skipped at every level, for example `.git`. | ## Limitations - Only registered workspaces are measured; an arbitrary path cannot be requested. The panel reads sizes for the workspace list the sidebar shows. - Folder sizes look at the local filesystem the Host runs on. Symbolic links and special files are not counted. - A very large workspace can still take a few seconds on first open. The panel shows its progress state and keeps earlier results visible while a drill-down loads. - Turning the plugin off removes both the sidebar entry and the report route; no state is kept.