Agent hooks
Scripts that run by themselves at set points of an agent session, such as after each file edit.
Scripts or commands that an agent tool runs by itself at set moments of a session: before a tool call, after a file edit, when the agent stops. A hook can format the file just written, run the linter or the tests, block a risky command or send a notification. Where an instruction relies on the agent choosing to follow it, a hook runs each time its event fires. The site counts a repo when it holds hook scripts in an agent directory, such as .claude/hooks or .cursor/hooks.json, or a hooks block in committed agent settings.
- Pro scene today: 9%, 19 of 221 pro repos
- In three months: −<1 pt (2 pro repos added it, 3 removed it)
- Kept: 77%, 17 of 22 that had it 3 months ago or before
Pro 9% · Ladder 2%
Insight: 8 of the 19 run a check from a hook, mostly a formatter or a linter, never the tests or a type check; 8 can block an action.
In the pro repos
The 6 most starred of the 19 pro repos that have it today.
- n8n-io/n8n/.claude/settings.json
- supabase/supabase/.claude/settings.json
- Stirling-Tools/Stirling-PDF/.claude/settings.json
- twentyhq/twenty/.claude/settings.json
- tldraw/tldraw/.claude/settings.json
- streamlit/streamlit/.cursor/hooks.json
By month
| Month | Pro scene |
|---|---|
| June 2025 | <1% |
| July 2025 | <1% |
| August 2025 | <1% |
| September 2025 | <1% |
| October 2025 | 2% |
| November 2025 | 2% |
| December 2025 | 3% |
| January 2026 | 3% |
| February 2026 | 5% |
| March 2026 | 6% |
| April 2026 | 6% |
| May 2026 | 6% |
| June 2026 | 6% |
| July 2026 | 7% |
| August 2026 | 9% |
| September 2026 | 9% |
| October 2026 | 9% |
| November 2026 | 9% |
| today | 9% |
Inside the practice
Repo profile
| Slice | Pro repos with it |
|---|---|
| Size: Small | 3%, 2 of 73 |
| Size: Mid | 7%, 5 of 74 |
| Size: Large | 16%, 12 of 74 |
| Layout: Single package | 6%, 7 of 119 |
| Layout: Monorepo | 12%, 12 of 102 |
| Main language: TypeScript or JS | 11%, 11 of 100 |
| Main language: Python | 12%, 5 of 41 |
| Main language: Go or Rust | 4%, 2 of 47 |
| Main language: Other | 3%, 1 of 33 |
What agent hooks run
Of all repos: those with an agent hook are too few to count over. A check the hook runs after an edit or at the end of a turn.
- A formatter: 2%, 5 of 221
- A linter: 1%, 3 of 221
- Another check script: <1%, 2 of 221
Evidence
Observed in the repos only: no published study is quoted for it yet.
How it is detected
Looks for hook scripts or a hooks block in committed agent settings. Read in repo files. How the method counts
Related practices
More in Code, the most adopted first.