2026-06-22 20:35:51 +00:00
2026-06-22 20:35:51 +00:00
2026-06-22 20:35:51 +00:00
2026-06-22 20:35:51 +00:00

@git.zone/tsdisk

tsdisk is a disk usage diagnostic CLI for finding large files, caches, logs, Docker storage, and deleted-but-open files on Linux hosts.

Issue Reporting and Security

For reporting bugs, issues, or security vulnerabilities, please visit community.foss.global/. This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a code.foss.global/ account to submit Pull Requests directly.

Install

pnpm add --global @git.zone/tsdisk

For one-off usage:

pnpm dlx @git.zone/tsdisk

Usage

tsdisk

The tool prints a structured report covering filesystem usage, top-level du breakdowns, known user and system cache paths, project-local tool caches on mounted workspaces such as /mnt/data, systemd journal usage, deleted open files, and Docker context storage.

It asks for sudo because root-owned filesystem paths and deleted open files require elevated permissions. Cleanup commands are printed as suggestions only; tsdisk does not delete caches or prune Docker data.

Project Tool Cache Diagnostics

tsdisk reports common build/cache buildup from git.zone tooling without deleting anything:

  • Deno self-extracting staging such as dist/binaries/.*/.deno_compile_node_modules
  • Release binary staging under .nogit/release-binaries/.*/.deno_compile_node_modules
  • tsbundle temp workspaces under .nogit/tsbundle-temp
  • tsdocker local registry caches under .nogit/docker-registry
  • Rust target caches under rust/target, ts_rust/target, and marked .nogit/tsrust-target
  • Stopped tsdocker-registry-* containers and their bind mounts
  • Docker buildx state volumes with zero container links, as report-only findings

Marked caches using .gitzone-tool-cache.json are classified as tool-owned. Unmarked legacy paths are report-only and do not receive destructive cleanup commands.

Environment

Variable Description Default
DOCKER_TIMEOUT Docker command timeout in seconds 60
DU_TIMEOUT du command timeout in seconds 300
NCDU_TIMEOUT ncdu export timeout in seconds 900
TSDISK_NCDU_EXPORT Path for the temporary ncdu export /tmp/tsdisk-ncdu-root-*.json
TSDISK_KEEP_NCDU_EXPORT Keep the ncdu export for later browsing unset
TSDISK_INSTALL_NCDU Install ncdu with apt-get if missing prompt

Commands

tsdisk --json
tsdisk --help
tsdisk --version

tsdisk --json prints the project tool-cache diagnostics as structured JSON:

{
  "toolCaches": [
    {
      "path": "/mnt/data/project/.nogit/tsbundle-temp",
      "ownerGuess": "@git.zone/tsbundle",
      "kind": "bundle-temp-workspace",
      "risk": "report-only",
      "suggestedCleanupCommand": "report-only: verify ownership before removing \"/mnt/data/project/.nogit/tsbundle-temp\"",
      "bytes": 123456
    }
  ]
}

This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the repository license file.

Please note: The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.

Trademarks

This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.

Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.

Company Information

Task Venture Capital GmbH
Registered at District Court Bremen HRB 35230 HB, Germany

For any legal inquiries or further information, please contact us via email at hello@task.vc.

By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.

S
Description
No description provided
Readme 130 KiB
Languages
TypeScript 99.8%
JavaScript 0.2%