Skip to content

docs: document heph tool clean - #89

Open
raphaelvigee wants to merge 2 commits into
mainfrom
claude/eager-galileo-hhnn9y
Open

docs: document heph tool clean#89
raphaelvigee wants to merge 2 commits into
mainfrom
claude/eager-galileo-hhnn9y

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

What

heph added heph tool clean <selection> in hephbuild/heph#357 (commit 4464a00) — a new CLI subcommand that removes every cached revision of the selected target(s), regardless of the history retention budget and whether or not the target still exists. It's the targeted counterpart to the existing heph tool gc sweep.

This PR documents it in the two places that cover heph tool commands:

  • website/docs/concepts/caching.md — added a paragraph + example block under "Reclaiming space", next to the existing heph tool gc coverage.
  • plugins/heph-expert/skills/heph/references/cli.md — added a row to the heph tool subcommand table (the reference-drift rule in this repo's CLAUDE.md).

website/docs/reference/cli.md is auto-generated by heph gen-docs and was intentionally left untouched.

Selection syntax and behavior (address / label+matcher / -e expr, the all wildcard, no whole-cache default) were verified directly against src/commands/tool/clean.rs, src/commands/tool/mod.rs, and src/commands/utils.rs on the heph master branch, not assumed from the PR description alone.

Test plan

  • Docs build/lint not run locally per routine instructions (no build env available in this session) — relies on CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Cabo8vZ6e78QQWULEbAoG3


Generated by Claude Code

heph adds `heph tool clean <selection>` (hephbuild/heph#357) — removes
every cached revision of the selected target(s), regardless of the
history budget and whether or not the target still exists, as a
targeted counterpart to `heph tool gc`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cabo8vZ6e78QQWULEbAoG3
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://7387fade.hephbuild.pages.dev
Commit 27a4865

@raphaelvigee

Copy link
Copy Markdown
Member Author

Add some comment about how you should not normally need this and instead should track down why a cache clean is required, its probably a target configuration issue

Per review feedback on #89: reaching for `heph tool clean` regularly on
an unchanged target is a symptom of an under-declared input, not
something to build a workflow around.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cabo8vZ6e78QQWULEbAoG3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants