Repository navigation
Releases: systemfsoftware/comment-checker
Releases · systemfsoftware/comment-checker
Release list
v0.3.6
- The Nix flake build no longer writes to
/homeless-shelteron machines where Nix runs without a sandbox (the macOS default), so rebuilding the flake or re-entering its direnv shell after an update no longer fails with "home directory /homeless-shelter exists".
v0.3.5
- The documented Claude Code hook command no longer exits without reading the tool payload, so hosts that pipe large payloads no longer fail with a broken pipe. When
comment-checkeris not onPATHit now triesdirenv execnext. When neither finds the checker, the hook reads the whole payload, printscomment-checker did not run — nothing checked this write.and exits 1. When the checker runs but exits with a code other than 0 or 2, for example after a crash, the hook reads the rest of the payload, printscomment-checker failed (exit <code>) — nothing checked this write.and exits 1. If you copied an earlier snippet, replace itscommandwith the one in the README.- The Claude Code plugin hook no longer exits without reading the tool payload, so hosts that pipe large payloads no longer fail with a broken pipe. It passes through only the checker's own exit codes 0 and 2. When the checker cannot be found, or
denois missing or fails to start, the hook reads the whole payload, printscomment-checker did not run — nothing checked this write.and exits 1. When the checker runs but exits with any other code, the hook printscomment-checker failed (exit <code>) — nothing checked this write.and exits 1, where it used to pass that code through.
- The Claude Code plugin hook no longer exits without reading the tool payload, so hosts that pipe large payloads no longer fail with a broken pipe. It passes through only the checker's own exit codes 0 and 2. When the checker cannot be found, or
v0.3.4
- The hook no longer crashes on startup in some environments and silently skips every write, and it no longer needs write access to your files — it flags unnecessary comments read-only and reports them to the model.
v0.3.3
- Build the CLI binary directly from source in the Nix flake instead of fetching release assets, ensuring environments using Nix or direnv run the matching version with full command support.
v0.3.2
- The
PostToolUsehook command now invokesdeno run --config <plugin>/hooks/deno.jsonc … <plugin>/hooks/run.tsexplicitly. The config file is what makes Deno treat the hook as a first-class module instead of node-compat material: without it, a hook living undernode_modules(as an installed plugin does) cannot resolve@std/*orarktypeand never reaches the checker. Passing the config restores the TypeScript source (run.ts) with its real imports, replacing the compiledrun.jsshipped in 0.3.1.
v0.3.1
- The
PostToolUsehook is shipped as compiledrun.jsinstead ofrun.ts, so it runs on Deno versions that refuse type-stripping insidenode_modules. Type-checking is preserved through JSDoc annotations andcheckJsinhooks/deno.jsonc.
v0.3.0
- This repository is also a Claude Code plugin. Enabling it runs a PostToolUse hook that tries
comment-checker --strip, thendirenv exec. If both miss and the project hasflake.nix, the error tells you to rundirenv allowornix develop.--stripdeletes whole-line flagged comments from the file named in the hook payload. Without the flag, the hook still only reports. After a strip, the message names a code change to make — rename, extract, or tighten a type — instead of asking you to delete the comment.
v0.2.0
- Flagged-comment reports now go to stderr instead of stdout, so the agent that made the edit actually receives them. A blocked verdict previously exited 2 with its report on stdout, which the hook contract discards, so the block arrived carrying no explanation of what was flagged. If you capture reports yourself, read stderr. Exit codes are unchanged: 0 when nothing is flagged, 2 when something is.
v0.1.8
- The
--versionflag now reports the same version as the installed package. Previously it always reported0.1.0regardless of which release was installed.
v0.1.7
- Fix GitHub releases to include platform binaries for every supported operating system and architecture.