flaky

flaky is a command for coding agents from atuljha23/holocron. It costs 32 tokens per session (341 once invoked), scanned A, original, MIT.

A command for investigating flaky tests—tests that sometimes pass and sometimes fail without a code change. It examines timing, shared state, environment differences, resource conflicts, and outside dependencies.

In plain words
What is it for?
Use it to diagnose intermittent failures, race conditions, test-order problems, unawaited work, unstable fixtures, and parallel-test conflicts.
Why use it?
It replaces guesswork with ranked possible causes and a concrete check for each one. It also asks for a fix and a guard against the problem returning.

Command

Part of the holocron plugin — 11 skills, 24 commands, 14 agents, 6 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/atuljha23/holocron/flaky
Clone the repo
git clone --depth 1 https://github.com/atuljha23/holocron

Or install holocron, the plugin that ships this one along with the rest of its 11 skills, 24 commands, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flaky

README.md
[![agentmods](https://agentmods.dev/badge/commands/atuljha23/holocron/flaky.svg)](https://agentmods.dev/commands/atuljha23/holocron/flaky)
Your own site
<a href="https://agentmods.dev/commands/atuljha23/holocron/flaky"><img src="https://agentmods.dev/badge/commands/atuljha23/holocron/flaky.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 341 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.00341
Opus 5 $0.00016 $0.00170
Sonnet 5 $0.00006 $0.00068
Haiku 4.5 $0.00003 $0.00034

Measured 4d ago against content hash de9b61fdff41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flaky scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/flaky.md · 36 lines

What it actually says

/holocron:flaky

Target flake: $ARGUMENTS.

Gather

  • The test file(s) matching the target.
  • Recent git blame on the test and on the code it exercises (git log -p -- <file> last 5 commits).
  • If --log <path> was supplied, read the log and pull out the failure message / stack.
  • The test harness config (jest/vitest/pytest/go test flags — concurrency, isolation, retries).

Delegate

Hand off to @qa-engineer to walk the flake-triage tree:

  1. Timing (sleeps, polling without bound, unawaited promises)
  2. Order dependence (shared state, side effects from sibling tests)
  3. Environment (wall-clock, tz, locale, random seed, network, ports)
  4. Resource contention (temp files, databases, parallel workers)
  5. External (3rd-party, flaky mock, fixture instability)

For each hypothesis, demand a concrete observation that would confirm it.

Output

  • Ranked hypotheses (most likely first)
  • The probe to run for each hypothesis (a command or added log line)
  • A candidate fix once the root is identified
  • A guard: the assertion or test-harness setting that prevents reintroduction
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 36 lines · 32 tokens per session scan A de9b61fdff41

Subscribe to this mod's changes

flaky is a command published in the GitHub repository atuljha23/holocron (2 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 341 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.