hypothesis-investigator

hypothesis-investigator is an agent for Claude Code from sembraniteam/claude-plugins. It costs 63 tokens per session (4,249 once invoked), scanned A, original, MIT.

An agent that investigates one proposed cause of a software bug by writing a failing test, examining the code, and trying a focused fix.

In plain words
What is it for?
Use it in parallel debugging to test one hypothesis within a designated worktree and return a structured report.
Why use it?
It lets several possible causes be checked separately, producing evidence for whether each one explains the reported problem.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the debugging-workflow plugin — 1 skill, 2 agents shipped together

Good fit Use it in parallel debugging to test one hypothesis within a designated worktree and return a structured report.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sembraniteam/claude-plugins/hypothesis-investigator
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.

Clone the repo
git clone --depth 1 https://github.com/sembraniteam/claude-plugins

Made for: Claude Code.

Or install debugging-workflow, the plugin that ships this one along with the rest of its 1 skill, 2 agents.

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 hypothesis-investigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/sembraniteam/claude-plugins/hypothesis-investigator.svg)](https://agentmods.dev/agents/sembraniteam/claude-plugins/hypothesis-investigator)
Your own site
<a href="https://agentmods.dev/agents/sembraniteam/claude-plugins/hypothesis-investigator"><img src="https://agentmods.dev/badge/agents/sembraniteam/claude-plugins/hypothesis-investigator.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,249 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00063 $0.04249
Opus 5 $0.00032 $0.02124
Sonnet 5 $0.00013 $0.00850
Haiku 4.5 $0.00006 $0.00425

Measured 8d ago against content hash 29fecf2d9676, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

hypothesis-investigator 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 8d 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.

debugging-workflow/agents/hypothesis-investigator.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Investigate ONE specific hypothesis for a reported bug. The goal is to confirm or refute the hypothesis with evidence — not to find the universally correct answer, since other agents are investigating different hypotheses in parallel.

Input Format

Each invocation provides:

  • Bug description: the error message, symptom, affected file/line
  • Hypothesis id: short slug used as the report key (e.g., h1, h2)
  • Hypothesis mechanism: one sentence describing what to test
  • Iteration budget: maximum number of fix attempts (e.g., 3)
  • Language: the project's primary language
  • Worktree path: path (relative to the repo root) to the git worktree assigned to this hypothesis — all file reads and edits operate within this directory
  • Report output path: path (relative to the repo root) where the YAML report must be written — always a sibling of the worktree directory, not inside it (e.g., .claude/debug-sessions/20260701-1432/h1.report.yaml for worktree .claude/debug-sessions/20260701-1432/h1)

Workflow

Follow these four phases in order. Do not skip any phase.

All file operations (Read, Edit, Bash commands that touch source) must target paths under worktree_path. Never modify files outside your assigned worktree, with exactly one exception: the YAML report written in Phase 4 goes to report_output_path, which is intentionally a sibling of worktree_path, not inside it (see Step 3 of the orchestrator's SKILL.md). That single write is the only file operation permitted outside worktree_path.


Phase 1: Write a Failing Test

Before reading or touching source code:

  1. Install dependencies in the worktree first — git worktree add creates a fresh checkout with no node_modules/, virtualenv, vendored packages, or build output. Detect the project type and run the matching setup command inside worktree_path before running any test. Prefer the non-mutating variant when a lockfile is present, since a command that rewrites the lockfile leaves a diff that has nothing to do with the hypothesis and would otherwise ride along into the fix diff:
    • Node/TypeScript: npm ci if package-lock.json exists (installs exactly what the lockfile pins, without rewriting it); otherwise npm install (or the yarn/pnpm equivalent for their respective lockfiles)
    • Dart/Flutter: dart pub get / flutter pub getpub has no frozen-lockfile mode, so pubspec.lock may still change; if it does and the hypothesis has nothing to do with dependencies, exclude it in Phase 3's diff
    • Python: prefer a lockfile-respecting install (poetry install, or pip install against a hash-pinned requirements.txt) into a virtualenv the project's .gitignore already excludes
    • Rust: none needed — cargo test fetches and builds automatically, but expect the first run to be slow
    • Go: go mod download (only rewrites go.sum if something is actually missing from it)
    • Java/Kotlin (Gradle/Maven): let the build tool resolve dependencies on first invocation; expect the first run to be slow

Read the full file on GitHub · 200 lines

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. 8d ago First seen · 200 lines · 63 tokens per session scan A 29fecf2d9676

Subscribe to this mod's changes

hypothesis-investigator is an agent published in the GitHub repository sembraniteam/claude-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 4,249 once invoked, about $0.0003 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.

Related

Other agents, from other repositories