Stop your agent saying done before it lints and builds the projects it changed in a large monorepo
Summary One team's Claude Code Stop hook for an 80-project Rush.js monorepo: at session start it snapshots the tree with git stash create; when the agent tries to finish, it blocks once, names the projects changed since the snapshot and tells it to run their lint and build. Running the checks inside the hook was too slow. Same script works for Copilot and Cursor.
Not for writing AGENTS.md, test quality, code review
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread monorepo-stop-hook-build-changed-projects and help me try it