CedarCopilot wants to merge 0 commits into staging from feat/customer-trailer-commit-hook
Live on prod, watching, 1 day left
Libra has verdicts on 0 of 1 tracked behaviors on prod; 1 is still being checked. Libra checks hourly for 3 days after each deploy.
PreToolUse hook in .claude/settings.json that fires on git add (before the commit message is composed) and reminds the agent to add a Customer: <name> trailer when the upcoming commit was built to fix a specific customer's bug, or started from investigating a specific customer's setup/problems/features/use cases.Customer: none boilerplate).git add instead of git commitA hook matched on git commit fires only after the full commit command (including the -m message) is already composed, so its reminder always arrives one commit too late. Matching on git add (which almost always happens as its own step before the commit is composed) gets the reminder into context in time to actually shape the message. Known gap: a combined git commit -am "..." skips the separate staging step, so that specific commit would miss the reminder.
jq -ePreToolUse payloadgit add --dry-run, stayed silent on unrelated commands (true), and confirmed a hook on git commit fires too late (context arrives after the commit already executes)š¤ Generated with Claude Code
The PR appears safe to merge with no actionable defects identified.
Adds a Claude Code PreToolUse hook that conditionally reminds agents staging changes with git add to include customer attribution in the eventual commit message when appropriate.
Reviews (1) Ā· Last reviewed commit: "feat(claude-config): remind agents to ta..."
Libra has not measured any production surfaces for this change yet.