Billing
Cost and performance
Cost & Performance is about keeping feedback fast and costs predictable while keeping coverage strong.
Cost & Performance is about keeping feedback fast and costs predictable while keeping coverage strong.
Goals
Keep feedback fast and costs predictable while maintaining strong coverage.
Cost controls
- Scope smartly: use diff scope for day-to-day work. Run
heybug explore <project> --changedto explore only what changed, or callheybug_explore_scopefrom an agent. Target subsets with case keys for quick loops usingheybug runs start --project <id> <caseKey>...orheybug_run_selected_tests. - Run frequency: schedule nightly full runs, run diffs on pull requests, and use rerun to validate a fix without re-planning.
- Reports first: read the run report before re-executing. The report names the failing step and the expected versus actual result.
- Artifact retention: keep only what you need. Configure retention days for runs and artifacts in settings, under Data retention.
Performance tips
- Local readiness: make sure the app starts quickly and is reachable on the configured address. Pre-warm test data or seed databases so setup is fast.
- Selector stability: prefer role and label based selectors. Add stable test id attributes in project settings under Run behaviour so the agent finds them first.
- Parallelization: keep tests independent so they can run in parallel in CI. Set the number of tests that run at the same time in Run behaviour.
- Deterministic data: use stable fixtures so flaky retries do not slow runs down. Reset test data between cases where possible.
Suggested defaults
- Pull requests: diff scope, targeted case keys on critical changes.
- Main branch: a daily full run, with artifact retention of seven days.
- Hotfixes: focused reruns on the impacted suites.
Useful flows
Diff-only execution:
heybug explore <project> --changed
Subset during iteration:
heybug runs start --project <project> checkout-pay cart-add
Rerun without re-planning:
heybug_rerun (MCP) with a previous run id
Related
- Retention settings: /settings/retention
- Run behaviour: /p/{project}/settings
- Usage and limits: /settings/usage