Skip to content
Kitbay
Skill

openclaw-test-heap-leaks

MITUpdated on Nov 11, 2026394,329GitHub starsIncludes scripts

A maintainer skill in the OpenClaw repository for finding why the project's pnpm and Vitest test runs grow in memory or run out of it.

What the skill teaches

A maintainer skill in the OpenClaw repository for finding why the project's pnpm and Vitest test runs grow in memory or run out of it. The agent reproduces the failing run with the same entry point and worker count, gathers heap profiles or snapshots, and compares snapshots from the same process with a bundled delta script. It then sorts growth into module graphs kept alive by long-lived workers versus real leaks in caches, timers, handles or mocks, fixes the matching layer, and reruns the same command to check the result. A separate harness checks fixes to a runtime leak. Its report gives the command, the objects retained and what was or was not confirmed.

Capabilities

  • Reproduce test-run memory growth
  • Compare heap snapshots from one process
  • Tell module retention from real leaks
  • Verify a leak fix with the same command