Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Temikusv0.3.0Apache-2.0In 1 marketplace
Keeps Claude's comments terse. A PreToolUse hook measures how much of every Edit/Write/MultiEdit is comment and bounces an over-commented edit back once with rewrite guidance; an identical resubmit is accepted. Heuristics only, no external API calls.
Run automatically on Claude Code events. Claude doesn't decide.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Disable claude-eloquentdisabled
Set to true to disable comment checking entirely
booleandefault false
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Minimum edit sizemin_chars
Skip the ratio check for edits smaller than this many characters, so a small edit with one comment never trips it. Default is 200
numbermin 0default 200
Comment ratio thresholdcomment_ratio
Deny an edit when comment characters exceed this fraction of the edited text. Default is 0.40
number0–1default 0.4
Allow identical resubmitsallow_on_retry
Accept an edit that is resubmitted unchanged after a denial, on the basis that the model judged the comments necessary. Turn off to deny every time. Default is true
booleandefault true
Maximum comment block linesmax_block_lines
Longest allowed contiguous comment block when check_block_lines is on. Default is 6
numbermin 1default 6
Inject session guidancesession_context
Add a short comment-style instruction at session start so denials stay rare. Default is true
booleandefault true
Check comment block lengthcheck_block_lines
Also deny when any single contiguous comment block exceeds max_block_lines. Off by default
booleandefault false
Minimum comment sizemin_comment_chars
Skip the ratio check when the edit holds fewer comment characters than this, so a one- or two-line comment never trips it however small the edit. Default is 200
numbermin 0default 200
A Claude Code plugin that keeps Claude's comments terse.
Claude over-comments. It narrates what the code already says, records implementation history ("previously this used X"), references behaviour you deleted three edits ago, and editorialises about "the win here". Prompt rules asking for terse comments work, then drift over a long session.
claude-eloquent enforces the rule at the harness level instead. A PreToolUse hook measures how much of every Edit / Write / MultiEdit is comment. When it crosses the threshold, the call is denied once, with guidance on what to keep and what to cut. If Claude resubmits the same content unchanged, it goes through - the model looked again and judged the comments necessary. A short SessionStart note states the rule up front so denials stay rare.
No API calls, no extra tokens spent on scoring, no dependencies. Just a line-based scanner and a threshold.
| Event | Script | Behaviour |
|---|---|---|
SessionStart | hooks/session_context.py | Injects a ~380 char comment-style instruction |
PreToolUse (Edit|Write|MultiEdit) | hooks/check_comments.py | Denies once when the edit is too commenty, allows the identical retry |
SessionEnd | hooks/cleanup.py | Removes this session's retry sentinels |
What Claude sees on a denial:
claude-eloquent: this edit to
src/parse.jsis 71% comment (2 comment blocks, longest 9 lines). Rewrite the comments before resubmitting. Keep only what a reader of this code cannot infer from the code itself: non-obvious intent, invariants, dangers, quirks of an external API, and why an unusual choice was made. Remove narration of what the code does, implementation history, references to old behaviour, "previously"/"now"/"the win here" phrasing, and anything that restates the identifier names. If every remaining comment is genuinely needed, resubmit the same edit unchanged and it will be accepted.
With allow_on_retry off, the last sentence is replaced by "This check denies every time; reduce the comments."
From within a Claude Code session:
/plugin marketplace add Temikus/claude-plugins
/plugin install claude-eloquent@temikus
Or from the console, without starting a session:
claude plugin marketplace add Temikus/claude-plugins
claude plugin install claude-eloquent@temikus
Restart Claude Code afterwards. Requires Python 3.8+ on PATH, which the stock macOS python3 satisfies.
Every hook runs through hooks/py.sh, which finds the interpreter. Without a usable one it says so once a day and lets edits through, rather than failing silently and leaving the check off.
For a local working copy: just install-dev, then just uninstall-dev to clean up.
Set these in /plugin config, or override per shell with the environment variable (env wins).
| Option | Default | Environment variable |
|---|---|---|
disabled | false | CLAUDE_ELOQUENT_DISABLED |
comment_ratio | 0.40 | CLAUDE_ELOQUENT_RATIO |
min_chars | 200 | CLAUDE_ELOQUENT_MIN_CHARS |
min_comment_chars | 200 | CLAUDE_ELOQUENT_MIN_COMMENT_CHARS |
check_block_lines | false | CLAUDE_ELOQUENT_CHECK_BLOCK_LINES |
max_block_lines | 6 | CLAUDE_ELOQUENT_MAX_BLOCK_LINES |
session_context | true | CLAUDE_ELOQUENT_SESSION_CONTEXT |
allow_on_retry | true | CLAUDE_ELOQUENT_ALLOW_ON_RETRY |
Two detectors, either one is enough to trip a denial:
comment_ratio of the edit, the edit has at least min_chars characters, and the comments alone have at least min_comment_chars, all measured after shebang, licence, and lint lines are excluded. The comment floor stops a small edit with a one- or two-line comment from tripping it: a ratio means little when there is barely any text on either side.max_block_lines.allow_on_retry=false denies every time, which is stricter than it sounds - Claude has no way to force an edit through.
Environment-only settings:
| Variable | Default |
|---|---|
CLAUDE_ELOQUENT_LOG | ~/.claude/logs/claude-eloquent.log |
CLAUDE_ELOQUENT_LOG_MAX_LINES | 1000 |
CLAUDE_ELOQUENT_TMP | ~/.claude/tmp/claude-eloquent |
CLAUDE_ELOQUENT_EXTRA_SKIP_EXT | (empty) comma-separated extensions to ignore |
Drop a .claude-eloquent-skip file in a project root to disable the plugin for that project.
claude-eloquent@temikus is listed by temikus/claude-plugins — review the source before installing
npx claudepluginhub temikus/claude-plugins --plugin claude-eloquentBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground