Skip to content

Quick Start

Once Squeal is installed on your machine, enabling it in a repository takes under a minute.

  1. Set up the repository

    From the root of your repository, run:

    Terminal window
    squeal setup

    This creates and checks squeal.config.json (which you commit to the repository so every developer and agent shares the same validation policy). Run squeal setup --check at any time to verify runner detection and exclusions.

  2. Inspect what Squeal covers

    Terminal window
    squeal checks

    squeal checks prints every check group Squeal runs in this repository, which test files each selects, when it runs (after each edit, on pause, at Stop, at commit, or manual), and — on the final line — what Squeal does not run (such as typecheck, build, or excluded suites).

  3. Start a coding-agent session and keep coding

    Start Claude Code, Codex, Pi, OpenCode, or Antigravity in the repository. On SessionStart, Squeal registers the session, starts a per-worktree daemon if one is not already running, and reports any existing known failures once.

    As the agent edits code:

    • Affected tests run automatically in the background.
    • Passing runs stay silent.
    • Any PASS -> FAIL or FAIL -> PASS arrives automatically with the agent’s next tool call.
  4. Pull honest state before finishing

    When you or your agent need a verified verdict before finishing a change, wait on the files you changed:

    Terminal window
    squeal status --wait 60000 src/auth/session.ts

    Or wait for all test files affected by the session’s edits:

    Terminal window
    squeal status --wait 60000
Revision: 187
Known failures: 0; not current: 27 of 290 test files (3 running, 24 unknown), 3 tests (3 running)
Affected checks: 47 passed (40 tests, 7 test files loaded), 3 running (3 tests), 0 queued
Full-suite checkpoint: none completed since revision 170 (the counts are for revision 187; `squeal run --all` requests one)

SQUEAL push messages carry only the first error line, source location, and changed imports so they do not flood agent context. To see the full error history and log path for a failing check:

Terminal window
squeal why 'test/auth/login.test.ts > session > rejects expired token' --include-logs

Instead of running tests manually to prove a new test fails without the fix:

  • Uncommitted fix: revert the fix, run squeal status --wait 60000 (confirm the test appears under Known failures), restore the fix, and run squeal status --wait 60000 (confirm FAIL -> PASS).
  • Committed fix: run squeal proof <test-file> --base <commit>. Squeal tests both sides in temporary checkouts without touching your working tree.