strata19.workspace_inventory
Expert tool
What it does
A read-only census of every git worktree of every project Strata19 knows about: branch, whether it is merged, dirty and untracked file counts, local work items, sessions, running listeners, and the unique state that removing it would lose. reclaimable is "blocked" whenever any of that is non-zero, never inferred from size. Sizes are only measured when measureSizes is true. Each record carries its derived index store (indexStore, from stat alone); pass indexRetention to also get the dry-run plan of which stores could be pruned and which are refused (held open, main checkout, build running). Machine-wide: it ignores the bound project.
When to use it
Use when: "which worktrees do I have" · "is this worktree safe to remove" · "what is using disk" · "what unmerged work is sitting in other worktrees"
Also use when: before suggesting a worktree or branch cleanup, to check nothing unique would be lost
When not to use it
you want to delete, prune or move a worktree or an index store — this tool only reads and never changes git, any state database or any index; pruning stores is a person running scripts/strata19/prune-index-stores.ts --apply
Availability
| Tier | Expert |
| Lifecycle | Live |
| Taught by | strata19-coordinate-multi-repo-work |