Skip to Content
HeyBug docs
Guides

Test what changed

After a change, explore and test only the features it touches.

After a change, explore and test only the features it touches. This is the "new change" flow: it is faster than a full exploration and keeps the run focused.

How the scope is chosen

  1. Feature files. Each feature in the feature map (the features page) lists the paths it owns, for example src/cart/** or src/checkout/pay.ts. Patterns: dir/** covers everything under dir, * matches within one folder, and a plain path must match exactly.
  2. Changed files. Give the changed paths (from git diff --name-only HEAD). Each path maps to the features that own it.
  3. Dependencies. The run also includes every feature those features depend on, so a cart change still tests sign-in when the cart needs it.
  4. Skip the rest. The agent explores only that scope and says in its notes what it skipped.

Where to start it

  • Web. Open an exploration and use "Explore what changed". Paste the changed paths, one per line.
  • CLI. From the repository root, run heybug explore <projectId> --changed. Use --base <rev> to diff against something other than HEAD. --changed cannot be combined with --instructions.
  • MCP. Call heybug_explore_scope with projectId and changedFiles, or with featureIds or a brief.

Feature maps written by the agent do not fill in files. Add the paths on the features page first.

If no changed path belongs to a feature, the run does not start. Add the path to a feature's files on the features page, or pass feature ids.

On this page