flaky-memory
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Remembers which tests failed on which code, and tells the model when a failing test has both passed and failed on the same code, so it runs the test again…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
Watches Bash commands that run tests (pytest, jest, go test, cargo, npm test and similar), remembers which tests failed on which version of your code, and tells Claude when a failing test has both passed and failed on the same code so it reruns it first. It runs read-only git commands, makes no network calls and stores test names and run results per repository.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /flaky-memory command), command.run (list, reset, on, off), and tool.call for Bash. For commands matching a test-runner regex it runs git rev-parse, git diff --no-ext-diff HEAD and git ls-files --others in the session cwd (via $.process.run, argv form, 10 s timeout) to fingerprint the working tree with FNV-1a, lets the command run, parses the test output, and keeps runs for 7 days (max 50 per test, 50 commands) with $.store. After a run it appends a note to the Bash result for Claude when a failing test is flaky, and shows it through the shared sidebar if present, else $.ui.log. Diffs over 4 MB are not recorded. Failures are caught and logged and never block the tool call. No fetch, no file reads or writes beyond git and the store. Note that git diff can apply a repository's configured textconv filters, as any git diff does. eslint.config.js and Makefile were not reviewed; they are not loaded by the hook module.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Remembers which tests failed on which code, and tells the model when a failing test has both passed and failed on the same code, so it runs the test again instead of changing code.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/flaky-memory/)