# Posts by tag 'cursor' — Liran Tal

AI security researcher, open-source maintainer, and author. Explore Liran Tal’s blog, research papers, developer tools, books, and conference talks.

Canonical: https://lirantal.com/tag/cursor

[![](/_astro/cursor-stop-hook-lint-build-verification.DNm2VBK0_1Mw8Sh.png)

Apr 22, 2026 15 min read

### Cursor Agent Hooks: Lint and Build Checks After Each Turn

How to wire a Cursor stop hook that runs pnpm lint and pnpm build after every agent turn, returns followup\_message with captured output on failure, and avoids silent breakage from Cursor's bundled Node on PATH—plus loop limits, debug toggles, and when to choose postToolUse or sessionEnd instead.](/blog/cursor-stop-hook-lint-build-verification)

*   [cursor](/tag/cursor)
*   [hooks](/tag/hooks)
*   [developer experience](/tag/developer-experience)
*   [nodejs](/tag/nodejs)
*   [ci](/tag/ci)
