DiskSage-0.8B reviews one Linux storage item at a time and decides whether it should be kept, investigated, or proposed to its owner for deletion. It is a LoRA fine-tune of Qwen3.5-0.8B (language model only), merged and quantized to Q4_K_M GGUF for CPU inference.
It reads numbered, read-only observations about the item (what the location is, which processes, services or containers use it, its Git and Jujutsu state, which projects pin a runtime version, hard-link sharing, verified duplicates, when it last changed and when an agent session last worked with it) and returns JSON:
{"decision": "candidate",
"reason": "Rustup 1.70.0 is not the default and no project pins it; reinstall with rustup toolchain install 1.70.0 if needed. Nothing running uses it ...",
"evidence": ["e1", "e5", "e7"],
"checks": []}
| Decision | Meaning |
|---|---|
keep |
An observation shows use, configuration, unsaved or unpushed work, credentials, an installed runtime, history or application state. |
candidate |
The item can be regenerated (known cache, build output beside its manifest, unpinned runtime version, re-clonable checkout) or is a verified duplicate, and nothing is left unknown. A proposal for human approval, never permission. |
unused |
Nothing needs it and nothing is unknown, and activity shows it is likely no longer needed: unchanged for 180+ days with no agent session in 120 days, or superseded by a newer version, or copied to a remote drive. Deleting it loses data, so the owner confirms. |
investigate |
Anything else. checks names what is missing: usage, contents, vcs, references, duplicates, owner. |
candidate; old personal data is unused, a different list you confirm.[!IMPORTANT] The model only judges the evidence it is given. It was trained on observations from a specific set of collectors, and free-form descriptions will not work as well. Use it as a review aid: a person approves every deletion.
With llama.cpp (tested with release v0.7.0):
hf download Microck/DiskSage-0.8B-GGUF --local-dir disksage
llama-server -m disksage/DiskSage-0.8B-Q4_K_M.gguf -c 2048 --port 8080
Send the system prompt and one evidence packet. Constraining output with the JSON
schema in example-schema.json guarantees a well-formed answer:
python - <<'EOF'
import json, urllib.request
system = open("disksage/system-prompt.txt").read().strip()
packet = json.load(open("disksage/example-evidence.json"))
schema = json.load(open("disksage/example-schema.json"))
body = {"messages": [{"role": "system", "content": system},
{"role": "user", "content": json.dumps(packet)}],
"temperature": 0, "max_tokens": 320,
"response_format": {"type": "json_schema", "json_schema": {"name": "answer", "schema": schema}}}
request = urllib.request.Request("http://127.0.0.1:8080/v1/chat/completions",
json.dumps(body).encode(), {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["choices"][0]["message"]["content"])
EOF
Expected output for the example (matches example-answer.json in decision and citations):
{"decision": "candidate", "reason": "No project pins rustup 1.70.0-x86_64-unknown-linux-gnu and it is not the default, so `rustup toolchain install 1.70.0` can restore it. Nothing running uses it and no scanned service, timer or launcher file names it.", "evidence": ["e1", "e5", "e7"], "checks": []}
The schema lists the packet's observation IDs, so build it per packet (see
example-schema.json for the shape). Training used compact JSON with < escaped as
\u003c. Use greedy decoding.
ChatML with thinking disabled. prompt-template.txt holds the exact rendered prompt,
with __CLEANER_PACKET__ where the packet goes:
<|im_start|>system
{system_prompt}<|im_end|>
<|im_start|>user
{"item": "...", "allocated_bytes": 123, "observations": [{"id": "e1", "text": "..."}, ...]}<|im_end|>
<|im_start|>assistant
<think>
</think>
| Filename | Description |
|---|---|
| DiskSage-0.8B-Q4_K_M.gguf | Merged weights, Q4_K_M, 529 MB. SHA-256 44b0eb29…d849 |
system-prompt.txt |
System prompt used in training |
prompt-template.txt |
Full rendered prompt template |
example-evidence.json, example-schema.json, example-prompt.txt, example-answer.json |
One generated input, its output schema, the full prompt and the expected answer |
evaluation.json |
Aggregate metrics |
provenance.json |
Base revision, hyperparameters, dataset hashes |
SHA256SUMS, LICENSE, NOTICE |
Checksums, Apache-2.0 license, modification notice |
All numbers are for this Q4_K_M file on an ARM64 CPU, greedy decoding with the JSON schema.
| Set | Decisions | Wrong deletion proposals |
|---|---|---|
| Six synthetic home folders (web developer, ML researcher, photographer, desktop user, sysadmin, student), full unattended audit, 28 labelled items | 28/28 | 0 |
| Generated validation, 600 items | 600/600 | 0 |
The home folders are built with real files, Git repositories, duplicates, dated runs and old exports; each item's expected answer is fixed from what the files are, not from the model's rules. The test runs the whole pipeline: exploration, duplicate hashing, run grouping and the model.
On one real developer machine (273 items, about 380 GB), an unattended audit proposed 23.6 GiB as regenerable or verified copies, including 5.0 GiB of duplicate audio found inside a research folder (one copy of every file kept), and 1 GiB as probably unused. Real-machine data is not published.
2fc06364715b967f1860aea9cf38778875588b17, language model only620d2225, Q4_K_M29,400 generated training examples from ten scenario families: known caches and runtime directories, build outputs, runtime versions (nvm, rustup, uv Python, pyenv, Playwright, editor servers), Git and Jujutsu checkouts, user data with and without verified duplicates, temporary files, Docker images, containers, volumes and build cache, plus mounts, swap and symlinks. Observations are rendered by the same functions the live collectors use. Labels, citations, checks and reasons come from one written reference policy. Examples include collector noise, shuffled order, owner notes in English and Spanish, and prompt-injection strings.
investigate, since only the owner knows whether they are needed.unused relies on modification time and agent-session
logs. Access time is ignored because indexers and backups read files daily.
Work done outside agent sessions is invisible to it.Apache-2.0, inherited from Qwen3.5-0.8B.
See NOTICE for modifications.
@misc{disksage2026,
title = {DiskSage-0.8B: a small local model for reviewing Linux storage},
author = {Microck},
year = {2026},
url = {https://huggingface.co/Microck/DiskSage-0.8B-GGUF}
}
Qwen/Qwen3.5-0.8B