Hayaku
v0.6.2 · Explore the release

See how your changes
affect your tests.

Hayaku compares Git commits, identifies tests that may be affected, and explains its recommendations. It runs locally and works with your existing test tools.

One command-line tool. No account or background service needed.

A change, explained
From a changed file to tests that may be affected An illustrative repository: price.go changes and links to price_test.go and cart_test.go. account_test.go is also kept in the full test run. Recommendations do not authorize skipping tests. YOUR CODEYOUR TESTS price.goChanged account.go shipping.go price_test.go cart_test.go account_test.go
These tests may depend on the changed code.
Full suite requiredYour normal tests still run in full.

Example workflow · Recommendations help you understand the change.

Compare Git commitsUnderstand the decisionKeep the full test runRun locally

How it works

From a code change to a clear plan.

See what changed, which tests may be affected, and why Hayaku recommends a particular run.

01

Compare two commits

Hayaku reads the code before and after your change. Deleted files and renamed code stay part of the picture.

02

Review the recommendation

See which tests may be affected, the commands to run, and anything Hayaku could not establish. Missing information keeps the full suite or stops planning.

03

Compare with a full run

Use shadow mode to check experimental recommendations against a separate full test run. Your original test suite remains required.

Handling uncertainty

When something is unclear, include more tests.

Code can read files, call services, or share state that dependency lists do not show. Hayaku makes those gaps visible and keeps your full test run in place.

Unknown inputs widen the test recommendation Two known test connections lead to an unknown input. The recommendation expands to include all six illustrated tests. KNOWN LINKSUNKNOWN INPUTMORE TESTS ? How Hayaku decides what to run

Result reuse · WASI suites and restricted Go/Vitest

Same inputs. Reuse the passing result.

A WASI suite runs as WebAssembly with controlled inputs and restricted access to your computer. Hayaku can reuse its verified passing result when the code, inputs, and execution settings match.

Reuse unchanged WASI results; run again after a change Matching code, inputs and execution settings allow reuse of a verified passing result. A changed input requires a new run. Same code, inputsand execution settings Reuse pass An input changes Run again

A WASI suite is a separate test suite. It does not replace your normal Go, JavaScript, Python, browser, or service tests.

From v0.6.2, hayaku native applies the same rule to Go packages and Vitest files on macOS and Linux ARM64. The supported profile is narrow: plain functions over basic values, with no standard-library imports beyond testing in Go, and number-only functions with three matchers in TypeScript. Most existing projects fall outside it and run in full.

Explore WASI result reuse
Go and Vitest reuse: setup and limits

Current support

Supported test tools.

Here is what Hayaku can inspect today, and what still needs to run.

Test toolWhat Hayaku supportsWhat runs today
WASI suitesControlled execution and verified passing resultsReuse when unchanged
GoPackage dependencies and comparisons with a full test run; result reuse for packages inside a narrow pure-code profileFull suite · narrow reuse
Cargo / nextestPackage dependencies, test lists, and result reportsFull test suite
Vitest 3 / 4Dependencies, test results, full-run comparisons, and observed file reads for supported versions; result reuse for files inside a narrow profile on one fixed toolchainFull suite · narrow reuse
Node / PythonTest lists and results from node:test, unittest, and pytestFull test suite
Jest / PlaywrightTest file and project lists, plus completed test resultsFull test suite
SwiftPM / XcodeSwift test-target dependencies and completed XCTest package, app, and UI resultsFull test suite
Other frameworksYour configured full test command and supported result reportsFull test suite

Your test tools must already be installed; Hayaku does not download them. v0.6.2 provides macOS and Linux builds; Windows is deferred. Go and Vitest reuse is qualified on ARM64 only. See supported versions and limitations.

Get started

Try Hayaku in your repository.

Download Hayaku for your platform and check the file against the release checksum. Then create a configuration, review the test commands, and compare two commits.

Follow the setup guide
In your repository
# Generate and review hayaku.json
hayaku init
hayaku doctor

# Compare two commits already on your computer
hayaku plan --base BASE --candidate HEAD \
  --output .git/hayaku-plan.json
hayaku explain --plan .git/hayaku-plan.json

Replace BASE with the commit to compare against. Planning reads committed code. Inspecting tests can execute project code, so use a repository you trust.