Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/claude-plugin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strip-flagged-comments.md

This file was deleted.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"
default-members = ["crates/comment-checker"]

[workspace.package]
version = "0.2.0"
version = "0.3.0"
edition = "2024"
rust-version = "1.85"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/comment-checker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "claude-code-comment-checker"
version = "0.2.0"
version = "0.3.0"
edition = "2024"
rust-version = "1.85"
license = "Apache-2.0"
Expand Down
5 changes: 5 additions & 0 deletions npm/packages/comment-checker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@
## 0.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.

## 0.3.0

- This repository is also a Claude Code plugin. Enabling it runs a PostToolUse hook that tries `comment-checker --strip`, then `direnv exec`. If both miss and the project has `flake.nix`, the error tells you to run `direnv allow` or `nix develop`.
- `--strip` deletes 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.
2 changes: 1 addition & 1 deletion npm/packages/comment-checker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@systemfsoftware/claude-code-comment-checker",
"version": "0.2.0",
"version": "0.3.0",
"description": "Claude Code PostToolUse hook that blocks unnecessary comments (npm distribution launcher)",
"license": "Apache-2.0",
"repository": {
Expand Down