Repository navigation
v0.1.0
DevDoctor's first GitHub release includes the developer disk CLI and local web UI.
Install the wheel with web support using uv.
uv tool install 'devdoctor[web] @ https://github.com/katagun/devdoctor/releases/download/v0.1.0/devdoctor-0.1.0-py3-none-any.whl'
devdoctor servev0.1.0 changelog
Changed
-
scan --coveragenames the directory that holds the bytes. Rows are
listed three levels below home, so 100 GB of model files further down showed
up only as the organisation folder above them. Each listed row now follows
its dominant child (one holding at least 80% of the row) down to the
directory worth looking at. -
The web UI's lint and test tooling is current: ESLint 10, the React Hooks
rules 7, jsdom 30. ESLint 10.9 (with@eslint/js10),
eslint-plugin-react-hooks7.1,eslint-plugin-react-refresh0.5, jsdom 30.0
and@testing-library/jest-dom7.0 replace five stale Dependabot updates
(#60-#64); what the new React Compiler rules found in five hooks and the
Settings page (refs written during render, state set synchronously in effects)
is fixed. jsdom 30 needs Node 22.22.2+ on 22.x, 24.15+ on 24.x, or 26+, so
the web CI job and the macOS packaging job now run on Node 24; the web job
used to take whatever Node the runner shipped, and packaging used Node 20. -
Scans are about 2.4x faster with byte-identical results. Directory sizing
was 83% of a scan and ran one tree at a time inside each provider. Trees are
now walked with onestatper entry and no per-file path objects, a few at a
time on one shared pool of four walks (more made the same trees slower on
APFS). Reference machine, 503 entries and 168 GB: 160 s to 68 s, with 471 of
474 comparable entries identical to the byte and the other three changed on
disk between runs.scripts/bench_sizer.pyreproduces the comparison, and
DEVDOCTOR_SIZER_WORKERSoverrides the pool size. Sizes are still never
cached between scans: no cheap key proves a cached size is current. (#92) -
Starting a web cleanup re-checks only what you selected. Before a job
starts, the server confirms each selected entry against the disk. It used to
re-run the entry's whole provider, so onenode_modulesfolder re-sized all
267 on the reference machine (about 58 s). Providers still find their
candidates on disk as before, but measure only the selected ones. -
A wedged Docker daemon no longer hangs the scan.
docker system dfblocks
for as long as the daemon does; each Docker query is now bounded at 60 s and
reports a diagnostic instead. (#92) -
--providerdecides what runs, not just what is shown. A scan limited to
some providers used to run every provider and filter afterwards, so
scan --provider time-machine-local-snapshotstook as long as a full scan
(160 s on the reference machine, now 0.2 s).scan,clean,recipeand the
web recipe endpoint now run only the named providers, and a web cleanup job
re-scans only the providers that own the selected entries. Provider names may
be comma-separated, and an unknown name is a usage error instead of an empty
result. (#92) -
devdoctor clean --executeshows what it will do before it does it. The
itemized plan (path, risk, estimated reclaim, exact command) prints before
the single confirmation whatever the flags; each entry prints a line as it
finishes, with the command's error when it fails; the summary states
estimated reclaimed versus planned and the measured free-space change, in
human units. The scan phase names the running providers. (#126) -
Project scans follow a marker-anchored depth budget instead of a flat cap.
Both project-walking providers measured depth from the scan root and stopped at
six levels, which a normal monorepo inside a worktree exhausts immediately
(~/projects/github/org/repo/.worktrees/branch/apps/web). Depth is now counted
from the nearest enclosing project marker (package.json,pyproject.toml,
Cargo.toml, and similar) under a hard absolute ceiling, so deep-but-legitimate
layouts stay reachable while pathological trees remain bounded.Scan roots now also include the homes agent tools keep their scratch checkouts
in (~/.claude-worktrees,~/.codex/worktrees,~/.cursor/worktrees) and
~/Documents/projects. Roots, markers, depth policy and the prune list are
shared across providers indevdoctor.providers._walk.On one real machine:
node_modules20.2 GB -> 32.1 GB across 117
directories, andpython-venvs195 MB -> 2.6 GB across 31 (21 of that
machine's 27 virtualenvs sat at depth 7 and had never been visible). -
Scanning no longer skips dot-directories. Three independent walkers — the
project index, the virtualenv provider, and the large-file provider — each
refused to descend into any directory starting with., so anything inside an
agent or git worktree (.worktrees/,.claude/worktrees/,.codex/) was
structurally invisible. Pruning is now driven by an explicit, auditable list of
names shared across all three (devdoctor.providers._walk.PRUNE_DIR_NAMES),
which also gained the build and tool caches the dot-rule was implicitly
covering (.terraform,.next,.gradle,.mypy_cache, and similar).On one real machine, surfaced
node_moduleswent from 4.6 GB across 33
directories to 20.2 GB across 75. Large files in hidden directories such as
~/Documents/.archiveare now reported. Virtualenvs inside worktrees are now
reachable in principle, though most remain hidden behind the virtualenv
provider's own depth cap until that is addressed separately.Behaviour change worth calling out:
large-filespreviously skipped hidden
directories by design, and no longer does. -
Migrated the web and desktop toolchain from npm to Bun — local scripts,
CI, release builds, Electron packaging, dependency updates, and contributor
docs now use the pinned Bun version and committed text lockfile. -
Renamed the package and CLI from
diskdoctortodevdoctor, completing
the transition that started with the repository rename. The installable
package is nowdevdoctor, the command isdevdoctor, and the
DISKDOCTOR_*environment variables are nowDEVDOCTOR_*. Existing local
state in~/.local/share/diskdoctorkeeps working: the new CLI falls back
to it until adevdoctordata directory exists.
Added
-
Agent session stores, offered by age. Codex and Claude Code transcripts
are the user's history, so the newagent-sessionsfamily never offers them
wholesale.codex-sessionsandclaude-code-sessionsgroup sessions into
fixed age buckets (under 30 days, 30 to 90, 90 to 180, 180 to 365, over a year), one
entry each, as young as the bucket's newest member, so--older-than 90d
selects whole buckets exactly. Buckets untouched for the retention floor
(90 days;DEVDOCTOR_SESSION_RETENTION_DAYS, never under 30) are
reclaimable with one delete per session; younger buckets are dangerous and
advice only, even under--allow-dangerous. A Claude Code session is its
transcript plus the directory beside it (subagents, tool results);memory/
is never touched.opencode-sessionssizes OpenCode's SQLite database and
counts its sessions by age read-only; no database is ever edited. The web
recipe hint now counts an entry's further commands. (#84) -
The iOS Simulator's dyld caches are covered.
~/Library/Developer/ CoreSimulator/Cachesheld 1.3 GB on the machine that prompted #88 while the
Xcode provider attributed only the unavailable simulators;coresimulator-caches
offers it as a reclaimable deletion, rebuilt on the next simulator boot. -
Terraform workspaces are covered, and the duplicate plugins are measured.
terraform-workspacesfinds.terraformnext to.terraform.lock.hclor
main.tfunder the project roots and offers each as a reclaimable deletion
(terraform initre-creates it). The plugin binaries underproviders/are
byte-identical across workspaces, so the scan adds up the copies of each
plugin beyond the first and says what a sharedTF_PLUGIN_CACHE_DIRwould
collapse: the lasting fix is configuration, not deletion. The scan's note
header now reads "note(s) from the scan (skipped paths, tool advice)", since
notes are no longer only about skipped paths. (#82) -
AI agent and editor caches are covered. Safe deletions for VS Code and
Cursor extension package downloads, Cursor's staged updates and both
editors' session logs; reclaimable deletions for Codex CLI runtimes and exo
model weights; and one advice entry per editor for installed extensions
(VS Code, Cursor, Windsurf), naming the editor's own uninstall command. The
agent worktree homes were already covered bygit-worktrees. Session and
transcript stores stay untouched until #84 gives them age-based retention.
(#83) -
Twelve more developer caches are covered. Safe deletions for
pre-commit hook environments, Puppeteer browsers, node-gyp headers,
Electron binaries, opam's download cache and Google's updater cache;
Docling models as reclaimable; and one advice entry per installed rustup
toolchain, nvm Node version and pyenv Python version, plus Vagrant boxes and
Steampipe plugins, each naming its tool's own uninstall command, because one
may be in use and a bare delete leaves the tool's index stale. About 10 GB
on the machine that prompted this. (#88) -
Colima is covered.
colima-vm-diskfinds the Lima disk images under
~/.colima/_lima(the data disk and each profile's diffdisk), reports what
they occupy against what they reserve likeDocker.raw, and is advice only:
deleting a Lima disk destroys the VM's containers and volumes, so the guidance
is to free space inside the VM orcolima stopandcolima delete.
colima-cacheoffers the downloaded base images as a safe deletion. On the
machine that prompted this: 7.1 GB of disks and 673 MB of cache that no
provider saw. (#85) -
The web Disk page filters by age and states its coverage. An "untouched
for" chip row (30d+, 90d+, 6mo+, 1y+) is the web form ofscan --older-than:
it narrows the rows already loaded, leaves entries of unknown age out, and
runs no scan, like the risk chips. The totals row states how much of the
volume's used space an unfiltered scan accounts for, the coverage line the
CLI already printed. On the machine that prompted this, one click isolated
24 GB ofnode_modulesuntouched for 90 days. -
A scan says how much of the disk it accounts for. DevDoctor reported 90 GB
on a machine with 396 GB used and gave no hint that it was a quarter of the
picture. Every unfiltered scan now ends with a coverage line, classified
bytes against the volume's own used space, and--jsoncarries acoverage
object.scan --coveragealso sizes the home directory outside every
classified path and lists the ten largest directories no provider accounts
for, which is how gaps in the provider catalogue used to be found by hand. On
the reference machine it adds about 20 s to a 53 s scan. Used space comes
fromdf, because on APFS total minus free also counts the system, swap and
preboot volumes. (#81) -
Sparse files are explained instead of silently under-reported. Docker
Desktop'sDocker.rawis 80 GB long and occupies what Docker has written, so
DevDoctor's figure and Finder's disagree by tens of gigabytes. Entries from
path providers andlarge-filesnow carryapparent_bytesin--json, and
scanprints aSparse:note when an entry reserves at least 1 GiB and a
tenth more than it occupies. The gap was never on the disk, so it is
described and never offered as reclaimable. (#86) -
--older-thanonscanandclean, andscan --sort age. Age was the
deciding factor in every "is this safe to remove?" judgement, and every entry
already carried its modification time.--older-than 6mokeeps only entries
untouched that long (12h,90d,2w,6mo,1y); entries of unknown age
are left out rather than assumed old.--sort agelists the longest untouched
first. The table'sStale?column is nowAge. (#89) -
An entry's age is the newest modification anywhere inside it. It was the
top-level directory's own modification time, which does not move when a file
deep inside is rewritten: Docker'svmsdirectory read as 6.9 years old with
an image written that day. The sizer already stats every file, so it reports
the newest at no extra cost. The Time Machine bundle is likewise dated by the
youngest snapshot it deletes, not the oldest, so an age filter can no longer
offer it while it removes snapshots the filter excluded. (#89) -
Time Machine local snapshots provider (
time-machine-local-snapshots,
macOS only). Lists hourly APFS local snapshots via
tmutil listlocalsnapshots /and offers one bundle that deletes all but the
newest restore point (newest first), plus one entry per snapshot. macOS
system-update snapshots (com.apple.os.update-*) are never touched, and
deleting local snapshots never touches the external backup. Approving the
bundle marks the per-snapshot entriesskipped:covered— they are never
prompted nor executed twice — and therecipescript lists the bundle's
commands once, with covered snapshots as label-only lines. -
devdoctor historylists past cleanup runs — CLI and web UI now write one
audit log — and shows a run entry by entry.cleangains--yes(skip the
final confirmation only; the plan still prints) and--risk. (#126) -
End-to-end docs.
docs/gains a tutorial written from a real
14-to-70 GB session, a CLI reference, web UI guide, provider catalogue,
safety model, FAQ, and agent docs; the landing page serves them under
site/docs/, withllms.txt/llms-full.txtat the site root. (#125) -
Live scan progress in the web UI. While a scan runs, the Disk page shows
how many providers have finished, the bytes found so far and which providers
are running, ahead of the countdown from past scans; the Dashboard's loading
label shows the provider count. The page reads a new server-sent-events
endpoint,GET /api/scan/progress, that mirrors the scan running in the
server;GET /api/scanis unchanged. (#117) -
Hermetic end-to-end tests for the web UI. Playwright now drives a
devdoctor servestarted under a throwaway home, with one YAML cache and one
node project as fixtures, and runs in CI: the disk table and its risk chips,
the cleanup wizard up to its review step, the dashboard total, auto-snapshots,
and the providers page. (#105) -
Git worktrees provider (
git-worktrees). Finds the linked worktrees of
repositories under the project roots, including worktrees those repositories
register elsewhere, and classifies each one without writing to the repository
or using the network. A worktree whose changes are already in the default
branch and that has no uncommitted changes is offered for removal with
git worktree remove, never--force. Squash and rebase merges are detected
withgit merge-treeon git 2.38 or later; older git and partial clones detect
only true merges and fast-forwards. A worktree containing a nested repository
or worktree, even an ignored one, is never offered, becausegit worktree removewould delete it; nested repositories are detected by a.gitentry or
by a directory git recognises as a repository (HEAD,objects/,refs/),
bare repositories included. Every other worktree is reported as advice: not
integrated, uncommitted changes, contains nested repository, locked, broken
pointer, no default branch, git error, or unverifiable. Contents of a removable
worktree, such asnode_modules, virtualenvs and build output, are counted
once, under the worktree, instead of again by their own providers. The first
devdoctor diffagainst an older snapshot therefore shows those bytes moving
from their own providers togit-worktreesfor removable worktrees.
(#79) -
Expanded provider coverage — added pnpm, Yarn, Bun, bounded
node_modules, Go caches, Cargo dependency/build storage, Xcode/iOS,
Android SDK/build storage, Conda, NuGet, and tox/nox providers, grouped by
stable ecosystem families. -
CLI (
devdoctor) — repeatable disk-cache analysis and interactive
cleanup for macOS and Linux:scan,recipe,clean,snapshot,diff,
andproviders, with a preview-first safety model and explicit
safe/reclaimable/dangerous labels. Providers cover Ollama, LM Studio, Docker,
and Hugging Face, plus a set of YAML-defined cache paths. -
Local web UI (
devdoctor serve) — a FastAPI backend and React
dashboard with a size treemap, per-provider details, and live scan/cleanup
over server-sent events. -
Electron desktop app packaging (macOS) — a desktop shell that bundles the
web UI and a standalone (PyInstaller) copy of the backend, so the app runs
with no separate Python install; first-run flow waits for the backend and
points users at Full Disk Access.
(#5) -
Structured logging and a scan diagnostics channel — a
-v/--verbose
flag, no more silently-swallowed errors, and scans now surface skipped paths
(for example, permission denied) instead of looking empty.
(#10) -
Virtualized cache table — the web UI windows its rows, so scans with
thousands of entries render only the visible slice.
(#8) -
Versioned SQLite migration runner — a real migration path so the local
history schema can evolve without breaking existing databases.
(#11) -
Public project surface — a
landing page, a public
roadmap, and community docs (CONTRIBUTING, SECURITY,
CODE_OF_CONDUCT, issue and PR templates). -
CI and repository hardening — GitHub Actions CI (Python and web), CodeQL
scanning, Dependabot, web ESLint, and CODEOWNERS.
Changed
-
Made disk-byte semantics explicit — reports and snapshots now distinguish
filesystem footprint, estimated reclaimable space, and shared allocations;
cleanup history no longer presents estimates as verified bytes freed. -
Introduced typed cleanup actions — path deletion, argv commands, and
non-executable advice replace shell-like execution while old snapshots and
generated commented scripts remain compatible. -
Made shared-file accounting deterministic — hard-linked allocations are
reconciled after concurrent discovery and recalculated for the complete
selected cleanup plan without double-counting overlapping entries. -
Rebranded to DevDoctor — the product is now DevDoctor and ships a public
landing page; the Python package and CLI stay nameddevdoctorduring the
transition, with copyright attributed to embark-delve. -
Parallelized provider discovery — discovery runs concurrently in a
bounded thread pool, with identical, deterministic output.
(#9) -
Modernized the web toolchain — migrated the UI to react-router 7 and
upgraded to Vite 8 and Vitest 4. -
Made the desktop backend build reproducible — the packaged backend is
built with the required extras so the bundle is consistent.
Fixed
-
Codex indexes are counted accurately in
scan --coverage. The report
excludes the measured SQLite files and their sidecars from the unclassified
walk and still shows unrelated files and directories under~/.codex.
(#184) -
Providers look where the tools actually keep things, and stop when a tool
does not answer.terraform-workspacesremoves onlyproviders/and
modules/: deleting.terraformwhole also dropped the selected workspace
and backend settings, so the next apply could targetdefault.
huggingface-hubfollowsHF_HUB_CACHEandHF_HOME,ollamafollows
OLLAMA_MODELS, and LM Studio's current~/.lmstudiois found. Every tool a
provider asks during a scan (conda info,xcrun simctl,ollama list,
go envand the rest) now has a 30-second limit, so one hung tool no longer
hangs the scan.large-filesno longer walks Photos and other library
packages or app bundles. The desktop app adds Homebrew,~/.local/binand
the other usual tool directories to the backend'sPATH: opened from Finder
it had only the system directories and most tool-backed providers found
nothing. -
The web UI's API only answers its own page, and a cleanup job can no longer
be left stuck. A page on another site, or on another local port, could post
to the API through the browser;/api/*now refuses any request whose
OriginorSec-Fetch-Sitesays it came from elsewhere. Terminating a
process requires the name it was listed under, so a bare pid is refused. A
job whose page never opens its event stream is cancelled after a minute
instead of holding the one job slot for ever, cleanup commands time out after
30 minutes, and the wizard ends on the summary with an error when the
connection drops instead of showing "executing" indefinitely. -
A cleanup run that hits trouble still finishes, and says what it did. A
command that cannot start (a missingbrew) or hangs now fails its own entry
instead of raising out of the run with earlier entries already deleted and no
record; cleanup commands time out after 30 minutes. Ctrl-C records the
entries already deleted rather than an empty list. With no terminal, an entry
that needs an answer is skipped on its own: reading end-of-input as "quit"
dropped every safe entry sorted after it while exiting 0. A path already gone
when its turn comes is skipped, not reported as reclaimed. A cache root that
is a symlink is advice only, sincerm -rf linkfrees nothing and loses the
relocation. The plan table shows each entry's commands in full (the first
five of a long list) instead of one truncated line. Apaths.yamlpath that
is not absolute once expanded is ignored with a note. -
Four ways a cleanup could delete more than it showed are closed. With
--allow-dangerous, answeringa(all in this provider) approved the
provider's dangerous entries unseen, so a named Docker volume went with an
anonymous one; every dangerous entry is now prompted for on its own.
poetry-cachecovered the wholepypoetrydirectory, which also holds
Poetry's virtualenvs; it now covers onlycacheandartifacts.
homebrew-downloadsandnpm-cacheranbrew cleanup --prune=alland
npm cache clean --force, which reach past the measured path (old installed
versions; whichever cache npm is configured for); both now delete exactly the
path shown. In the web UI a cancelled or timed-out cleanup left its command
running; the command is now terminated, then killed if it ignores that. -
A cleanup whose command failed is recorded as failed, and a refused Time
Machine snapshot delete says what to run.tmutil deletelocalsnapshots
needs administrator rights; without them it fails with "Failed to delete
local snapshot", and the entry already resolved as an error, but the job's
outcomein the audit log and History was still "ok" because any run that
reached its end counted as ok. A run with a failed entry is now recorded as
failed(CLI and web alike), and the Time Machine provider adds the remedy
to the error: runsudo tmutil deletelocalsnapshots /in Terminal. The CLI
prints that remedy in full in its summary; the desktop app shows it under
the failed entry. -
The desktop cleanup summary shows what the disk actually released. It
used to show only the estimate: on a Mac with Time Machine local snapshots,
18 GB of deletions released nothing, and the summary still said "~18 GB
reclaimed". The job now reads free space before and after, shows the change,
and warns when it is under half of what was deleted, with a link to the Time
Machine snapshots that hold those blocks until they are thinned. That warning,
on the CLI and here, now stays quiet for cleanups under 100 MB, where other
writes hide the difference. -
The desktop app no longer crashes when its window is reopened from the
Dock. On macOS, closing the DevDoctor window kept the app running, but the
main process held on to the destroyed window and the next Dock click failed
with an uncaughtTypeError: Object has been destroyed. The window
reference is now dropped when the window closes, a Dock click recreates the
window against the still-running backend, and dialogs and second-instance
focus only ever target a live window. -
Two identical scans no longer run at once. A finished cleanup started a
full rescan (75–100 s on the reference machine) even while one was running,
and concurrent scans slowed each other about 5×. The Disk page now drops what
a cleanup removed straight away, and a scan that was already running cannot
bring it back. Entries cleaned by a prune-style command stay listed until the
next scan, since the command may leave them in place. The server runs one
scan per filter set, which requests that arrive while it runs share. With
providers disabled, the first scan waits for the provider list instead of
running unfiltered and then again filtered. -
Starting a cleanup in the web UI no longer freezes the app. Pressing
execute re-scans the providers that own the selection before the job
exists: about 40 s fornode_moduleson a large disk, and up to 3.7 minutes
while a full scan runs alongside it. That re-scan ran on the server's event
loop, so every other request waited for it. The review step looked
unchanged, other pages stopped loading, and each further click queued another
full re-scan before it was refused. The re-scan now runs on a worker thread,
and a second start is refused at once. The review step says it is checking
the selection, a refused start says why, and closing the wizard during the
check cancels the job it would have started, which would otherwise have held
the only job slot until the app restarted. -
Cleaning the uv cache no longer hangs when DevDoctor runs under
uv run.
uv runanduvxhold the uv cache lock until the program they started
exits, so theuv cache cleanthey spawned waited for that lock forever and
the 5.9 GB cache stayed. Theuv-cacheprovider now asksuv cache dir
where the cache is (soUV_CACHE_DIRis honoured), passes--forcewhen it
detects a parent uv process, and says so in the scan's diagnostics; without
uv on PATH it deletes the directory. (#127) -
The e2e harness no longer reaches Docker Desktop's bundled CLI. Its server
runs with nodockeron PATH, so the Docker provider fell back to Docker
Desktop's CLI and, with Docker running, would have put the machine's real
images, volumes and build cache into the fixture scan.
DEVDOCTOR_DOCKER_BUNDLED_CLInow points that fallback at another path, or
turns it off when empty, as the harness and the Python tests do. -
A file that occupies nothing is counted as nothing. Zero allocated blocks
was read as "this filesystem hides block counts" and the file was counted at
its full length, so a VM disk image that had never been written to read as
its whole size limit, and noSparse:note appeared for it. Only a platform
with no block counts at all falls back to the length now. Symlinks, whose
length is their target path and which occupy no blocks, stop contributing a
few bytes each: about 2 KB on a 700 MBnode_modules. (#86) -
A path provider that names a file reports its size. Sizing walked
directories only, so a model matched by*.ggufsized to zero, was dropped
from the scan, and left a misleading "permission denied or vanished"
diagnostic. (#86) -
The Docker disk image advice no longer walks users into data loss. It
suggested lowering the disk image size limit when usage was small; per
Docker's documentation that deletes the image and every container, image and
volume in it, which the text did not say. The advice now explains that space
freed inside Docker returns to macOS when the image is compacted, gives the
command that forces it, and names what the destructive options destroy. (#86) -
Risk chips no longer rerun the scan, the estimate counts down, and the
Dashboard and Disk pages share one scan. Each chip click used to send a new
riskfilter to the server and wait for a full scan (minutes on a large
machine); the chips now narrow the rows already loaded, while the API and CLI
keep server-side filtering. The "scanning…" estimate now counts down from the
past-scan figure, uses the newest scan as a floor so a scan that grew is not
underestimated, and says when it has run longer than past scans. Opening the
Dashboard and then the Disk page runs one scan, not two: the Dashboard now
follows the scan cadence setting instead of always rescanning, and
auto-snapshots are written at most every five minutes whatever the cadence,
so the "Live" setting no longer fills the history with same-minute scans.
Streaming per-provider progress is tracked in #117. (#104) -
The dashboard's estimated reclaimable total no longer reads as zero. The
cached disk summary the dashboard reads was written with the scan's reclaimable
and footprint figures but handed to the page without them, at the summary,
entry and provider level, so the tile showed the footprint until a live scan
finished. (#102) -
The cleanup button pluralises its count. One selected row now reads
"clean up 1 item", not "1 items". (#106) -
Cleanup re-checks each git worktree immediately before removing it. Git
never re-checks whether a worktree is still integrated, so a commit made after
the scan, especially on a detached HEAD, could be lost when cleanup removed the
worktree.devdoctor cleanand the web cleanup now re-classify every worktree
right beforegit worktree removeand skip any that changed, with the reason.
A worktree that could not be re-checked at all, for example because git failed,
is skipped with a separate "could not re-check" message instead of being
reported as changed.
(#110,
#114) -
Filtered web scans no longer save partial auto-snapshots. A scan with a
risk, size or provider filter could be stored as an auto-snapshot and show up
in history as a large drop followed by an equal jump. Only unfiltered scans are
stored now. (#103) -
The web UI shows unmeasured entries as not measured instead of 0 B. They
sort after measured rows and are never hidden as small by the minimum-size
setting. (#97) -
Made Docker volume cleanup precise and version-independent — unused
volumes are now listed individually instead of pairing Docker's aggregate
volume size with version-dependentdocker volume prunebehavior. Anonymous
volumes are reclaimable, named volumes require explicit dangerous-cleanup
consent, and the web cleanup flow now carries that consent to the backend. -
De-flaked the SSE lifecycle test — it now runs on a pre-bound socket with
no port race, and drops deprecatedwebsocketsAPIs.
(#14) -
The Docker provider finds Docker Desktop's bundled CLI when
dockeris
not on PATH. On macOS the provider now falls back to
/Applications/Docker.app/Contents/Resources/bin/docker, runs discovery
and cleanup through that binary, and records a diagnostic naming it — so a
missing/usr/local/binsymlink no longer hides Docker reclaimable space.
(#123)
Security
- Path traversal in snapshot handling has been closed.
- Command injection into the generated cleanup script is prevented — model
names and paths areshlex-quoted and destructive lines stay commented out. - Terminal-escape injection via crafted filenames in rendered output has
been neutralized. - Stale-PID kill in the memory tooling was fixed so it can't target a
reused process id. - Data-loss mislabels were corrected — directories that mix cache with real
user data are now labelled dangerous rather than reclaimable. - Cross-provider entry-id collisions are prevented by namespacing entry ids
per provider, so cleanup selection can't mis-route between providers.
(#12) - Supply-chain hardening — third-party GitHub Actions are pinned to commit
SHAs, and CodeQL plus Dependabot keep code and dependencies under watch.