bug-investigator

bug-investigator is an agent for Claude Code from LuisFelipeMoro/Harness-devkit. It costs 22 tokens per session (3,193 once invoked), scanned A, original, MIT.

An agent that investigates software bugs by tracing the code, checking existing tests, and writing a test that demonstrates the failure.

In plain words
What is it for?
Use it when you have a bug description and reproduction steps and need a root-cause report, a confirmed failing test, and a handoff for the developer fixing it.
Why use it?
It separates finding and documenting the cause from changing the code, so another developer can implement the fix against a clear failing test.

Agent for Claude Code

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

Part of the coding-pipeline plugin — 5 skills, 13 agents, 5 hooks shipped together

Good fit Use it when you have a bug description and reproduction steps and need a root-cause report, a confirmed failing test, and a handoff for the developer fixing it.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/luisfelipemoro/harness-devkit/bug-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/LuisFelipeMoro/Harness-devkit

Made for: Claude Code.

Or install coding-pipeline, the plugin that ships this one along with the rest of its 5 skills, 13 agents, 5 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 bug-investigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/luisfelipemoro/harness-devkit/bug-investigator/github.svg)](https://agentmods.dev/agents/luisfelipemoro/harness-devkit/bug-investigator)
Your own site
<a href="https://agentmods.dev/agents/luisfelipemoro/harness-devkit/bug-investigator"><img src="https://agentmods.dev/badge/agents/luisfelipemoro/harness-devkit/bug-investigator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bug-investigator

Your own site · 80×15
<a href="https://agentmods.dev/agents/luisfelipemoro/harness-devkit/bug-investigator"><img src="https://agentmods.dev/badge/agents/luisfelipemoro/harness-devkit/bug-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00022 $0.03193
Opus 5.5 $0.00009 $0.01277
Sonnet 5.5 $0.00004 $0.00639
Haiku 4.5 $0.00002 $0.00319

Measured 27d ago against content hash 6c505bbb804c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bug-investigator scanned grade A with 1 finding 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 27d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **curl / HTTP script** against a running dev server.
plugins/coding-pipeline/agents/bug-investigator.md · 226 lines

How it starts

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

Bug Investigator agent. Input from the dispatch prompt (/bugfix): the user's answers — symptom vs expected, reproduction, chosen fix depth — plus Base (the merge-base with main) and code access. Output: a CHECKPOINT (feedback loop + minimised repro + ranked hypotheses) on the first return; on the continuation, BUG REPORT + failing test (RED confirmed) + HANDOFF for the Coder.

Agent Boundary (SRP — strictly enforced)

The Investigator's job: Build a feedback loop that goes red on the bug, minimise the repro, rank falsifiable hypotheses, trace and confirm the root cause, check existing tests, write the failing test capturing correct expected behavior. The Investigator NEVER: Modifies implementation code, fixes bugs, or writes production code.

Scope: you write the one RED test file (new, or an added case) and nothing else. Scratch repros, loop scripts, throwaway harnesses and probes live under $TMPDIR. The one exception inside the tree is a temporary debug log, tagged [DEBUG-xxxx] (Phase 4) and removed before you return. Never revert or "clean up" a change you did not make, never commit.

The test must print FAIL: <test name> when red (Go's --- FAIL: does) so /bugfix can later prove the fix with scripts/verify/break-run.sh by reverting it. A loop script you write prints FAIL: <loop name> on red for the same reason.

Redact before you show. Every command, output and captured artifact you quote has its secrets replaced with <REDACTED>. Build loops against environment variables so a credential stays in the environment, not in what you return; from a captured request quote only the lines that carry the signal. If the redacted output is not enough to diagnose, say so and stop.

Order is the discipline. Loop → reproduce + minimise → hypothesise → instrument → RED test. Reading code to build a theory before the Phase 1 command exists is the failure this order prevents: no red-capable loop, no Phase 3.


Phase 0 — Confirm Bug Report

Read the full file on GitHub · 226 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. 27d ago Changed 6c505bbb804c
  2. 1mo ago Changed · +97 lines · -3 tokens per session d7831019c7e1
  3. 1mo ago Changed · +1 lines 2eacb4d59af3
  4. 3mo ago First seen · 128 lines · 25 tokens per session scan A 3a45d98a2973

Subscribe to this mod's changes

bug-investigator is an agent published in the GitHub repository LuisFelipeMoro/Harness-devkit (14 stars, last pushed 6d ago), licensed MIT. It adds 22 tokens to every session and 3,193 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

bug-investigator compared with agents from other repositories

bug-investigator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bug-investigatorLuisFelipeMoro/Harness-devkitAgent146d agoMITA22Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
debuggerTT-Wang/forgeAgent35todayMITA17Claude Code
loom-advisorcosmix/loomAgent66yesterdayMITA51Claude Code
debuggerNickCrew/Claude-CortexAgent7612d agoMITA38Claude Code
evolve-retrospectivemickeyyaya/evolve-loopAgent82d agoApache-2.0A51Claude Code
debuggerbostonaholic/rpikitAgent1923d agoMITA28Claude Code