[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108481":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":14,"lastSyncTime":26,"discoverSource":27},108481,"voltdir","CubeLink-oss\u002Fvoltdir","CubeLink-oss","Read-only Windows disk analysis for AI agents: one call, stable JSON, low memory.",null,"Rust",46,4,0,2,53,6,52.11,"Apache License 2.0",false,"main",[],"2026-11-07 16:07:29","2026-11-23 15:46:53","\u003Cp align=\"center\">\u003Cimg src=\"assets\u002Fen\u002Fbanner.svg\" alt=\"voltdir: Your disk, explained in one call.\" width=\"100%\">\u003C\u002Fp>\n\n**Read in:** English · [正體中文](README.zh-TW.md) · [简体中文](README.zh-CN.md) · [한국어](README.ko.md) · [日本語](README.ja.md) · [Tiếng Việt](README.vi.md)\n\n**Scan once. Then ask as many questions as you like, about a second each.**\n\n**Windows disk analysis built for AI agents.** One call tells you what is filling a drive: the largest folders, which file types take the most space, where the empty files are, and what changed since last week. Read-only, a single executable, and stable JSON output.\n\n| All of `C:\\` (administrator) | Memory, 1 million files | One scan, 1 million files | An agent asking a series of questions |\n|:---:|:---:|:---:|:---:|\n| **5.7× faster**\u003Cbr>6.6 s vs 37.5 s | **11× less**\u003Cbr>14 MB vs 163 MB | **up to 117× faster**\u003Cbr>than Get-ChildItem; 2.5× faster than the best .NET code | **17.4× faster**\u003Cbr>30 questions in a row, about 1 s each |\n\n> **The first question costs as much as any scan.** voltdir scans the folder and builds the index, and a careful Python script is no slower at that (0.9× on 2.6 million files). The win is every question after it. Where voltdir does not win yet is listed further down.\n\n**All of `C:\\` (administrator): 5.7× faster, 6.6 s against 37.5 s.**\n\n![All of C:\\, about 3.1 million files](assets\u002Fen\u002Fchart-mft.svg)\n\n**Memory on a folder with 1 million files: about 11× less.**\n\n![Peak memory, folder with 1 million files](assets\u002Fen\u002Fchart-memory.svg)\n\n**One scan of a folder with 1 million files: up to 117× faster than a typical Get-ChildItem script, and 2.5× faster than the strongest .NET code.**\n\n![Single scan, folder with 1 million files](assets\u002Fen\u002Fchart-scan.svg)\n\n**An agent working through a series of questions for you: 17.4× faster over 30 questions, about 1 s each.**\n\n![Follow-up questions: scan once, ask many times](assets\u002Fen\u002Fchart-followups.svg)\n\nMeasured on real folders against well-written baselines. Every number, **including where voltdir does not win yet**, is in [`benchmarks\u002FRESULTS.md`](benchmarks\u002FRESULTS.md), all the charts are on the [benchmark page](BENCHMARKS.md), and the scripts in [`benchmarks\u002F`](benchmarks\u002FREADME.md) reproduce them on your own machine.\n\n- **Read-only.** voltdir reads names, sizes, timestamps and attributes. It never reads file contents, never deletes or moves anything, never touches the network, and never elevates itself.\n- **One `voltdir.exe`** (x64, about 0.75 MB). The C runtime is linked statically and only built-in Windows DLLs are imported. No third-party dependencies to install.\n- **An agent skill.** [`skills\u002Fvoltdir\u002FSKILL.md`](skills\u002Fvoltdir\u002FSKILL.md) (about 5,600 characters) ships with the executable and starts every task with `overview`.\n- Status: **v1 candidate**, Windows x64 only.\n\n## Say it in plain words\n\nYou do not write search patterns. You tell your agent what you want; it turns that into a search, and voltdir answers from its index without reading a single file's contents.\n\n| You say | voltdir finds |\n|---|---|\n| “LINE and WeChat keep downloading PDFs. Find them all and sort them out” | Every PDF on every drive you name (`C:` and `F:` alike): where each came from (chat-app folders, Downloads, desktop), how old, how big, which look like invoices or contracts and which are duplicates, as a list for you to act on |\n| “Sort out the photos from my phone” | Camera and phone photos (`IMG_0001.JPG`, `PXL_…heic`), with the folder, size and date of each |\n| “Clean up my screenshots” | Everything named like `Screenshot 2026-01-02.png`, wherever it was saved |\n| “Is my Downloads folder full of duplicates?” | Copies such as `report (1).pdf` and `report - copy.docx`, as a candidate list |\n| “What can I safely clear out?” | Leftovers (`.bak`, `.old`, `.tmp`, unfinished downloads), old installers and empty folders, with size and age. A list for you to decide on; voltdir never deletes anything |\n| “Find my receipts for tax time” | File names containing `invoice` or `receipt`; nothing is opened |\n| “How many projects do I have on this machine?” | Folders that contain `package.json`, `Cargo.toml`, `pyproject.toml` or `go.mod` |\n\nThe exact patterns your agent uses are tested and listed in [`skills\u002Fvoltdir\u002Freference.md`](skills\u002Fvoltdir\u002Freference.md).\n\n### The PDFs your chat apps downloaded\n\nLINE, WeChat, Telegram and similar apps save every PDF they receive into their own folders, and most people never look there. On one real machine, 371 of the 728 PDFs on the drive were in WeChat's folder. Scan once, then ask in turn: how many are there and how big; which came from which app; which are older than a year; which look like invoices or contracts; which are duplicate downloads. Seven questions like that took 1.25 s in total after the scan, because PDF searches use the file extension rather than a name pattern. Your agent then proposes folders and a move list; voltdir only reads names, so nothing is opened, moved or deleted until you say so.\n\n## Built for agents\n\n- **It says what it did not see.** Unreadable folders are listed under `coverage` and the exit code is 2, so a partial answer is never passed off as complete.\n- **It cannot be talked into anything.** File names are data. Control characters and right-to-left tricks are escaped, so a file called “ignore previous instructions…” stays a name.\n- **It says how fresh the answer is.** `index: used (built 12 minutes ago)` on stderr.\n- **Any agent can find it.** A Claude skill and plugin, plus an [`AGENTS.md`](AGENTS.md) for agents that read one. A plain command line; there is no server to run.\n\n---\n\n## Install\n\n### As a Claude Code plugin\n\n```text\n\u002Fplugin marketplace add CubeLink-oss\u002Fvoltdir\n\u002Fplugin install voltdir@voltdir\n```\n\nThe plugin contains the skill and a prebuilt `voltdir.exe` ([`skills\u002Fvoltdir\u002Fbin\u002F`](skills\u002Fvoltdir\u002Fbin)). Your agent picks it up for questions like \"why is my disk full?\", \"find the big files\" or \"what grew this week?\".\n\n### As a standalone executable\n\nCopy [`skills\u002Fvoltdir\u002Fbin\u002Fvoltdir.exe`](skills\u002Fvoltdir\u002Fbin) into any folder. There is nothing to install. The binary is not code-signed yet, so Windows SmartScreen may warn you the first time you run it. Before you do, you can confirm it was built from this source; see [Verify the bundled binary](#verify-the-bundled-binary).\n\n---\n\n## Quick start\n\n```powershell\n# First call: totals, largest folders and files, file types, large stale files, empty files,\n# plus ready-to-run \"next\" commands\nvoltdir overview D:\\Projects\n\n# Save a compact index during the same scan; follow-up questions no longer rescan\nvoltdir overview D:\\Projects --save-index C:\\Temp\\p.idx\nvoltdir report --index C:\\Temp\\p.idx --top-dirs 20 --by-ext 15\n\n# Save a full snapshot only when you need find or diff; it also writes a name index,\n# so every later find --snapshot answers in a fraction of a second (older snapshots: voltdir index FILE)\nvoltdir overview D:\\Projects --save-snapshot C:\\Temp\\p.ndjson\nvoltdir find --snapshot C:\\Temp\\p.ndjson --ext .log --min-size 100M --sort size --limit 20\nvoltdir diff C:\\Temp\\monday.ndjson C:\\Temp\\friday.ndjson --match-roots\n```\n\nFor a whole drive, run PowerShell **as administrator** so voltdir can use the `mft` engine, which reads the NTFS Master File Table directly. Without elevation it falls back to the `walk` engine; some system folders will be unreadable, and `coverage` in the output lists every one of them.\n\n---\n\n## Benchmarks\n\nAll the charts (memory, a whole drive, agent follow-ups, single scans, a plain Python script) are on the **[benchmark page](BENCHMARKS.md)**, with the numbers in [`benchmarks\u002FRESULTS.md`](benchmarks\u002FRESULTS.md).\n\n### Where voltdir does not win yet\n\n| Area | Where it stands |\n|---|---|\n| The first question | No faster than a careful Python script on a standard-user scan; both wait on the same NTFS directory opens (0.9× on 2.6 million files). The win comes from the questions after it. |\n| Regex searches | Searches with several alternatives take about 2 s on 2.6 million names; the matcher is not optimised yet. |\n| Single scan without elevation | About 2.5× faster than the best .NET baseline on 1 million files, but slower on all of `C:\\` (0.78×). The bottleneck is the cost of opening directories on NTFS. |\n| Token usage | About the same as the baseline; the voltdir group used 4–10% more. Each agent call carries roughly 73,000 tokens of fixed overhead that no tool can reduce. |\n| Memory for an elevated full-drive scan | 186 MB, on par with a streaming .NET script (177 MB), not ahead of it. |\n\nThe reasons are explained in [`benchmarks\u002FRESULTS.md`](benchmarks\u002FRESULTS.md).\n\n## What works well, and what to watch out for\n\n**What works well**\n\n- **Counts you can trust.** Junctions and hard links are handled, so totals match reality (see the [benchmark page](BENCHMARKS.md)).\n- **No silent gaps.** If some folders can't be read, the exit code is 2 and `coverage` lists exactly which.\n- **Cheap follow-ups.** About 0.05 s per question once an index exists.\n- **Stable output.** The same input with the same engine gives byte-for-byte identical JSON.\n\n**Found in an independent evaluation, and fixed in 0.0.2.** We tested voltdir the way an agent uses it, and fixed everything that turned out to be a bug:\n\n- A pattern written with forward slashes (`--exclude \"*\u002Fnode_modules\u002F*\"`, `--path \"*\u002Fsrc\u002F*\"`) used to match nothing, silently: the command succeeded and nothing was excluded. `\u002F` and `\\` now mean the same thing in every pattern.\n- An `--exclude` pattern that matches no path now prints a warning on stderr, so a typo can no longer pass unnoticed.\n- `--json` is accepted by every command (it changes nothing; the output is always JSON), and `--follow-links none` is accepted (it is the default).\n- `--help` now says that exit code 2 is normal for a whole drive and what the `mft` engine needs.\n\n**Things to know** (by design, not bugs):\n\n| Behavior | Why | What to do |\n|---|---|---|\n| `find --snapshot ... --exclude` stops with an error | Scan options apply when scanning, not when reading a snapshot | Exclude at scan time (`scan --exclude`), or filter with `--path` |\n| Whole-drive scans exit with 2 | System folders such as the recycle bin can't be read; the result is valid and `coverage` lists them | In scripts, treat 2 as \"complete with warnings\", not as a failure |\n| `find --limit` keeps the first matches in path order (default 100) | Results are sorted by path unless you ask otherwise | Use `--sort size`, and compare `matched_total` with the length of the list |\n| The speed advantage depends on the tree | About 5× over a Python loop on a folder with 1 million files, about 2× on a developer workspace or a whole drive (see the [benchmark page](BENCHMARKS.md)) | Run the benchmarks on your own folders |\n\n---\n\n## Commands\n\n| Command | What it does | Output |\n|---|---|---|\n| `overview \u003CPATH>... \\| --snapshot \u003CFILE> \\| --index \u003CFILE>` | **Answers the common questions in one call** (about 3 KB): totals, largest folders and files, file types, large stale files, empty files and folders, unreadable locations, and ready-to-run `next` commands. Options: `--save-index`, `--save-snapshot`, `--rank physical\\|logical`, `--dir-rank rollup\\|direct`, `--detail concise\\|full` | One JSON document (`voltdir.overview\u002F1`) |\n| `report \u003CPATH>... \\| --snapshot \u003CFILE> \\| --index \u003CFILE>` | Direct aggregates: `--top-files`, `--top-dirs`, `--by-ext`, `--many-files` | One JSON document (`voltdir.report\u002F1`) |\n| `find \u003CPATH>... \\| --snapshot \u003CFILE>` | Search by name (wildcards or `--name-regex`), path, type, extension, size, date, or emptiness | One JSON document (`voltdir.find\u002F1`) |\n| `diff \u003CA> \u003CB>` | Compare two snapshots: grown, shrunk, added, removed. For snapshots of different paths, add `--match-roots` (or `--a-root` \u002F `--b-root`) | One JSON document (`voltdir.diff\u002F1`) |\n| `scan \u003CPATH>... --out \u003CFILE>` | Writes a **snapshot** only. `--out` is required because snapshots can run to hundreds of MB; use `--out -` to write to stdout explicitly | NDJSON (`voltdir.snapshot\u002F1`) |\n| `info` | Environment and capabilities: version, elevation, engines, volumes | One JSON document |\n\nCommon options: `--out \u003CFILE|->`, `--engine auto|mft|walk`, `--threads \u003CN>`, `--exclude \u003CGLOB>`, `--follow-links mount|symlink|junction`, `--hardlinks dedupe|none`, `--timeout-sec \u003CN>`, `-q`. For the full syntax, run `voltdir --help` or `voltdir help \u003Ccommand>`.\n\n## Two engines\n\n| | `walk` | `mft` |\n|---|---|---|\n| Needs administrator | No | **Yes** (reads the volume's MFT) |\n| Scope | Any folder on any file system | Only the **root** of a local NTFS drive, such as `C:\\` |\n| All of `C:\\` (about 3.1 million files) | About 54 s | **About 6.6 s, 186 MB peak** |\n| What you see | Limited by permissions; reserved entries such as `$MFT` are not visible | Reserved entries (marked `reserved: true`) and the contents of `System Volume Information` |\n\n`--engine auto` (the default) uses `mft` when it can and otherwise falls back to `walk`, saying why on stderr. `--engine mft` is strict: if the engine is unavailable, voltdir exits with code 3.\n\n## Exit codes\n\n| Code | Meaning |\n|---|---|\n| 0 | Complete success |\n| 1 | Usage error, including an unusable snapshot or index, or a `diff` between snapshots whose roots do not overlap without `--match-roots` |\n| 2 | The result is valid, but **some folders could not be read** (usually access denied). `coverage` lists them; **do not treat the result as complete** |\n| 3 | The requested engine is unavailable (for example `--engine mft` without elevation, or a non-NTFS volume) |\n| 4 | Writing the output file failed (no partial file is left behind) |\n| 5 | Timed out or cancelled (whatever was scanned is still written) |\n\n## Output format\n\n- Paths are in Win32 form, without the `\\\\?\\` prefix. Unpaired UTF-16 surrogates are escaped as `\\uXXXX`, so nothing is lost. Control characters and bidirectional-text characters are always escaped, so a crafted file name cannot smuggle instructions into an agent's context.\n- Timestamps are RFC 3339 in UTC; sizes are integers in bytes. `size_logical` is the end-of-file position, `size_physical` is the space actually allocated on disk.\n- Output order is fixed: the same input with the same engine produces byte-for-byte identical output.\n- **Hard links** count once toward physical size and once per name toward logical size.\n\n## Build and test\n\nRequires Rust 1.94 or later with the MSVC toolchain.\n\n```powershell\ncargo build --release          # produces target\\release\\voltdir.exe\n.\\scripts\\ci.ps1               # formatting, clippy, all tests, license check, benchmark-script self-tests, skill checks\n```\n\nTo reproduce the benchmarks, see [`benchmarks\u002FREADME.md`](benchmarks\u002FREADME.md).\n\n## Verify the bundled binary\n\nThe `voltdir.exe` in [`skills\u002Fvoltdir\u002Fbin\u002F`](skills\u002Fvoltdir\u002Fbin) is not a separate download. It is built from the source in this repository with `cargo build --release`, and its SHA-256 is recorded next to it in `voltdir.exe.sha256`. The build is deterministic: the linker runs with `\u002FBrepro`, so the binary contains no timestamps and no paths from the build machine. With the same commit and the same toolchain, you get the same bytes.\n\nThe published binary was built with **Rust 1.94.0** (`x86_64-pc-windows-msvc`). To check it yourself:\n\n```powershell\ngit clone https:\u002F\u002Fgithub.com\u002FCubeLink-oss\u002Fvoltdir\ncd voltdir\nrustup toolchain install 1.94.0\ncargo +1.94.0 build --release\n(Get-FileHash target\\release\\voltdir.exe -Algorithm SHA256).Hash\nGet-Content skills\\voltdir\\bin\\voltdir.exe.sha256\n```\n\nThe two hashes should match (the first is printed in upper case). If they do not, check that you are on the same commit and that `rustc +1.94.0 -V` reports 1.94.0; a different version of the MSVC linker can also change the bytes. If you would rather not run a binary you did not build, use your own `target\\release\\voltdir.exe` instead; the skill also accepts `voltdir` on your `PATH`.\n\nSome security scanners flag any skill that bundles an executable. That warning is expected here, and the steps above are how you settle it. What the binary can and cannot do (no networking code, no credential APIs, only five imported system libraries) is written down in [`SECURITY.md`](SECURITY.md).\n\n## Repository layout\n\n| Path | Contents |\n|---|---|\n| [`skills\u002Fvoltdir\u002F`](skills\u002Fvoltdir) | The agent skill: [`SKILL.md`](skills\u002Fvoltdir\u002FSKILL.md), the full [`reference.md`](skills\u002Fvoltdir\u002Freference.md), and the prebuilt `bin\u002Fvoltdir.exe` |\n| [`.claude-plugin\u002F`](.claude-plugin) | Claude Code plugin and marketplace manifests |\n| [`benchmarks\u002F`](benchmarks\u002FREADME.md) | Reproducible benchmark scripts and the [results summary](benchmarks\u002FRESULTS.md) |\n| `src\u002F`, `tests\u002F` | Source code and tests |\n| `scripts\u002F` | CI, license check, test-data generators |\n\n## Privacy\n\nvoltdir runs entirely on your computer. It reads names, sizes, timestamps and attributes (never file contents), opens no network connections, and collects nothing. It writes only the files you ask for with `--out`, `--save-index` and `--save-snapshot`; those contain file paths, so treat them as sensitive. When an AI agent runs voltdir, the agent reads the output as part of your conversation with it. The bundled skill asks the agent to confirm with you before scanning a whole drive, a personal folder, or anything that looks private, unless you named the folder yourself. The full statement is in [`PRIVACY.md`](PRIVACY.md). Questions and bug reports: [GitHub Issues](https:\u002F\u002Fgithub.com\u002FCubeLink-oss\u002Fvoltdir\u002Fissues).\n\n## License\n\n[Apache License 2.0](LICENSE). Copyright holders are listed in [`NOTICE`](NOTICE).\n","voltdir 是一个专为 AI 代理设计的 Windows 只读磁盘分析工具，通过单次扫描构建轻量索引，支持毫秒级反复查询磁盘使用情况。核心功能包括识别最大文件夹、统计各类型文件空间占用、定位空文件、检测近期变更等；采用 Rust 编写，内存占用低（百万文件仅约14 MB）、执行快（全盘扫描比 PowerShell 快5.7倍），输出稳定 JSON，无需运行时依赖。适用于需高频、低开销分析本地磁盘状态的 AI 自动化任务，如智能清理助手、系统健康监控、运维脚本增强等场景。","2026-11-24 04:34:21","CREATED_QUERY"]