git push. If any file in your project scores below your threshold, the push is blocked and the offending files are listed.
Catching it here means nothing reaches the remote, so there is nothing to revert and no one else has to review it first.
The git pre-push hook requires Iris Code Pro.
Installing
Run Iris Code: Install Git Hook from the command palette. Iris Code writes the pre-push hook and makes it executable. On first activation in a git repository, Iris Code also offers to install it for you. Declining is remembered per workspace, so you are not asked again.Husky and custom hook paths
Iris Code follows Git’s activecore.hooksPath rather than assuming .git/hooks.
In a Husky project the block goes in .husky/pre-push, which is the file Husky intends you to edit. Any script already there is kept. Husky v9 sets core.hooksPath to .husky/_ and generates dispatcher files in it; Iris Code leaves those alone, because they are regenerated on install and an edit to them would not survive.
Any other core.hooksPath receives the block in that directory’s pre-push file. The sidebar’s hook badge watches whichever file Git will actually run, so it stays accurate whatever the layout.
What happens on push
iris check using the bundled CLI, and either blocks with the list above or exits cleanly and allows the push.
Configuring the threshold
SetminHealthScore in .irisconfig.json to control the minimum acceptable score. It defaults to 70.
gateBaselineMode avoids that. Each existing file is judged against its own locked score, so the rule becomes “do not make this worse” rather than “fix everything first”. New files still have to clear minHealthScore.