Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.
Confirm a merge or rebase just completed. Identify affected areas from the diff stat.
Run the fast smoke test suite. Fix any failures before starting new feature work.
Smoke tests pass after merge
{
"version": 1,
"hooks": {
"stop": [
{
"type": "prompt",
"prompt": "Post-Merge Regression Guard: if the last git operation was a merge or rebase, run npm run test:smoke and fix failures before stopping."
}
]
}
}
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Post-Merge Regression Guard: if a merge or rebase just happened, run npm run test:smoke and fix failures."
}
]
}
]
}
}
# Post-Merge Regression Guard Runs smoke tests after merge/rebase operations via stop hooks. Pair with the kickoff prompt from loops! for agent behavior.
Install and run the "Post-Merge Regression Guard" loop. Goal: smoke tests pass immediately after every merge or rebase. Between iterations run: npm run test:smoke Exit when: smoke suite exits 0. Step 1: After a merge, run smoke tests. Fix regressions before continuing other work.