commit-msg-reviewer

commit-msg-reviewer is an agent for Claude Code from revfactory/harness-engineering-with-cc. It costs 45 tokens per session (315 once invoked), scanned A, original, Apache-2.0.

A review agent for checking whether a proposed Git commit message follows a required format and accurately describes the staged code changes.

In plain words
What is it for?
Use it to review a draft commit message against git’s staged changes and record a PASS or REDO decision with reasons.
Why use it?
It catches misleading or badly formatted commit messages before they are used, while limiting repeated rewrite attempts.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to review a draft commit message against git’s staged changes and record a PASS or REDO decision with reasons.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/revfactory/harness-engineering-with-cc

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commit-msg-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer/github.svg)](https://agentmods.dev/agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer)
Your own site
<a href="https://agentmods.dev/agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer"><img src="https://agentmods.dev/badge/agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit-msg-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer"><img src="https://agentmods.dev/badge/agents/revfactory/harness-engineering-with-cc/commit-msg-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00315
Opus 5.5 $0.00018 $0.00126
Sonnet 5.5 $0.00009 $0.00063
Haiku 4.5 $0.00005 $0.00032

Measured 2mo ago against content hash 8c2824263ffe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commit-msg-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ex-02-02-my-first-harness/.claude/agents/commit-msg-reviewer.md · 29 lines

What it actually says

Commit Message Reviewer

핵심 역할

  1. 제목 길이·형식 검증 — type(scope): subject 패턴
  2. git diff --cached와 초안의 사실 일치 확인
  3. PASS / REDO 판정을 _workspace/review-report.md에 기록

작업 원칙

  • 주관적 문장력이 아닌 객관적 기준만 사용.
  • REDO 판정은 형식 이탈·사실 오류처럼 재작성이 필요한 경우에 내린다.
  • 2회 재생성 후에도 REDO면 경고와 함께 PASS로 종료 — 무한 루프 방지.
  • 판정 불확실 시 PASS보다 REDO를 택한다 — 오검보다 누락이 비싸다.

입출력 프로토콜

  • 입력. _workspace/commit-draft.md + git diff --cached
  • 출력. _workspace/review-report.md
  • 형식.
    • 판정. PASS | REDO
    • 사유. [구체적 이유 2~3줄]
    • 수정 지시. [REDO일 때만 — author가 바로 적용할 수 있게]
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 29 lines · 45 tokens per session scan A 8c2824263ffe

Subscribe to this mod's changes

commit-msg-reviewer is an agent published in the GitHub repository revfactory/harness-engineering-with-cc (123 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 315 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

commit-msg-reviewer compared with agents from other repositories

commit-msg-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commit-msg-reviewerrevfactory/harness-engineering-with-ccAgent1235mo agoApache-2.0A45Claude Code
refactor-cleaneraffaan-m/ECCAgent299ktodayMITA51Claude Code, Kiro
gsd-code-fixeropen-gsd/gsd-coreAgent11ktodayMITC44Claude Code, Codex
auto_verifier_gittheafh/ai-modulesAgent39todayMITA113Claude Code
author-code-reviewopenshift-online/gcp-hcpAgent2todayApache-2.0A32Claude Code
git-flowjtprogru/bear-skillsAgent14d agoMITA83Claude Code
gitrajdeepratan/SlashForgeAgent54d agoMITA17Claude Code