Claude Code hook that puts the recorded reason in front of the agent before it edits
Claude Code hook that puts the recorded reason in front of the agent before it edits
Body:
Git remembers what changed. Agents forget why.
whence is a small Go CLI. You record a decision (or harvest HACK: / WORKAROUND: comments already in the file), and a PreToolUse hook puts that record in front of Claude Code before it Edit/Writes. Fail-open: a broken hook never blocks an edit.
go install github.com/Amag1n3/whence@latest
Then in Claude Code:
/plugin marketplace add Amag1n3/whence
/plugin install whence@whence
Restart, run /whence:setup.
If something's unclear or broken, I want to hear it.Claude Code hook that puts the recorded reason in front of the agent before it edits
Body:
Git remembers what changed. Agents forget why.
whence is a small Go CLI. You record a decision (or harvest HACK: / WORKAROUND: comments already in the file), and a PreToolUse hook puts that record in front of Claude Code before it Edit/Writes. Fail-open: a broken hook never blocks an edit.
go install github.com/Amag1n3/whence@latest
Then in Claude Code:
/plugin marketplace add Amag1n3/whence
/plugin install whence@whence
Restart, run /whence:setup.
If something's unclear or broken, I'm happy to answer and improve
Posted Aug 29, 2026, 10:30 AM UTC