design patterns hooks

5 tagged design patterns, measured the same way as everything else here.

Browse within: golang 5

PreToolUse

01

Totoro-jam/battle-tested-patterns

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From Totoro-jam/battle-tested-patterns.

339 1mo ago A tokens not measured original MIT

PreToolUse

02

lugassawan/swe-workbench

Hook

Runs before the agent uses a tool for Bash, Skill, Read, Edit, Write, Write, Edit, Bash, Edit and Write tool calls, executing bash_guard.sh, skill_usage_record.sh, worktree_permission_grant.sh, secret_guard.py and handoff_guard.py via bash (5 commands). From lugassawan/swe-workbench.

2 yesterday A tokens not measured copy · 58% MIT

PostToolUse

03

lugassawan/swe-workbench

Hook

Runs after a tool call finishes for Read, Edit and Write tool calls, executing skill_autoload_hint.sh via bash. From lugassawan/swe-workbench.

2 yesterday A tokens not measured original MIT

SessionStart

04

lugassawan/swe-workbench

Hook

Runs when a session starts on startup, resume and compact, executing workflow_resume_hint.sh via bash (3 commands). From lugassawan/swe-workbench.

2 yesterday A tokens not measured copy · 58% MIT