Skip to content

Check Groups & Moments

When fast vs. slow tiers aren’t granular enough, checks in squeal.config.json lets you split your suite and linters into named check groups, each bound to the exact lifecycle moment it should run.

{
"checks": [
{
"name": "unit",
"runner": "vitest",
"tests": ["test/unit/**"],
"at": "edit"
},
{
"name": "integration",
"runner": "vitest",
"tests": ["test/integration/**"],
"at": "stop",
"after": ["unit"],
"limits": {
"maxParallel": 2,
"maxWorkers": 2,
"priority": "low"
}
},
{
"name": "lint",
"lint": true,
"at": "commit",
"description": "Runs configured lint tools on committed files."
},
{
"name": "contract",
"runner": "vitest",
"tests": ["test/contract/**"],
"at": "manual",
"description": "Validates invoice JSON against the billing API schema."
}
]
}
Moment When it runs Stop behavior
"edit" Automatically after each edit (optionally waiting quietMs). Fast feedback during work.
"pause" When the agent pauses between turns. Does not hold Stop.
"stop" When the agent pauses, and Stop waits up to stop.slowWaitMs for it. Holds the agent on failure or timeout (up to stop.maxHolds per turn).
"commit" When you commit; reports committed files once per commit without blocking the commit. Does not hold Stop.
"manual" Only on explicit squeal run <group> or squeal run --all. Never waited for at Stop; excluded from squeal code --base by default.
  • A check group selects only among test files its runner already covers — it never adds excluded files.
  • First match wins: the first group whose runner, project, and tests match a file owns that file. Put narrower groups above broader ones.
  • Files matched by no group keep default scheduling (after each edit, or the slow tier when marked slow).
  • Names tests and slow are reserved for the default groups.

Inspect all configured groups and when each runs:

Terminal window
squeal checks

Run an entire group now, regardless of its configured moment:

Terminal window
squeal run contract --wait 60000

Run only the files in a group affected by specific paths (useful for "manual" or "pause" groups during development):

Terminal window
squeal run integration src/billing/invoice.ts --wait 60000

Before opening a pull request, run a manual group’s narrow branch set against your base branch:

Terminal window
squeal run contract --base origin/main --wait

A lint group specifies name, lint (true for all configured lint.tools, or an array of tool names), at ("pause", "stop", "commit", or "manual"), and an optional description.

After a commit, Squeal reports lint findings alongside committed test results (for example, Commit abc1234: 0 known failures; lint (oxlint): 2 findings in 7 of 7 files). Lint groups cover only the configured tools — run any additional repository lint scripts (such as ast-grep or custom scripts) yourself.