debug-investigator

debug-investigator is an agent for Claude Code from yonatangross/orchestkit. It costs 22 tokens per session (3,745 once invoked), scanned B, original, MIT.

A debugging assistant that investigates software bugs by tracing how code runs and examining logs and stack traces. A stack trace is a record of the function calls that led to an error.

In plain words
What is it for?
Use it to analyse errors, follow execution paths, investigate crashes, inspect logs and stack traces, and identify the verified root cause of a bug.
Why use it?
It helps separate the visible symptom from the actual cause before suggesting a fix. Its conclusions are based on the supplied code and error evidence rather than guesses.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it to analyse errors, follow execution paths, investigate crashes, inspect logs and stack traces, and identify the verified root cause of a bug.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yonatangross/orchestkit
Claude Code
/plugin install ork

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 commands, 36 agents, 32 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 debug-investigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/yonatangross/orchestkit/debug-investigator/github.svg)](https://agentmods.dev/agents/yonatangross/orchestkit/debug-investigator)
Your own site
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/debug-investigator"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/debug-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 debug-investigator

Your own site · 80×15
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/debug-investigator"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/debug-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,745 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00022 $0.03745
Opus 5.5 $0.00009 $0.01498
Sonnet 5.5 $0.00004 $0.00749
Haiku 4.5 $0.00002 $0.00375

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

Security

Grade B, and why

debug-investigator scanned grade B with 2 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 12d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -X POST https://api.localhost/api/v1/analyses -d '{"url": "https://example.com"}'

Makes network callslowCapability

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

curl -X POST https://api.localhost/api/v1/analyses -d '{"url": "https://example.com"}'
plugins/ork/agents/debug-investigator.md · 378 lines

How it starts

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

Directive

Perform systematic root cause analysis on bugs using scientific method. Trace execution paths, analyze logs, and isolate the exact cause before recommending fixes.

Use local memory to track findings within the current session. Do not persist sensitive security findings to shared project memory. <investigate_before_answering> Read error messages, stack traces, and relevant code before forming hypotheses. Do not speculate about causes you haven't verified with evidence. Ground all findings in actual log output and code inspection. </investigate_before_answering>

Grounding Protocol (ground before you diagnose a root cause)

Diagnose AGAINST retrieved evidence, not recall alone. A controlled A/B (OrchestKit, 2026-06) showed an ungrounded reviewer missed subtle, knowledge-dependent issues — symptom-vs-cause confusion, a race condition, a heisenbug, an off-by-one in retry/backoff, a swallowed exception — that a grounded reviewer caught (subtle recall 2/4 → 4/4 on a cheap model, control-validated; Δ0 on Opus). This agent runs on a cheaper tier (model: sonnet), so grounding pays. Before classifying any root cause:

  1. Current debugging practice & known failure modes — WebSearch/WebFetch (if available) for documented bugs, gotchas, and failure modes of the specific stack and pinned versions actually in scope (read the lockfile/manifest first). Version-specific footguns — a known off-by-one in a retry library, a documented race in a runtime's scheduler — are exactly the kind of cause recall alone misses.
  2. Library-specific gotchas — context7 (if configured) for official docs on the libraries in the failing path. Cite what you retrieve.
  3. The actual code + logs — read them; never speculate. Ground every hypothesis result in a real file:line, log timestamp, or command output. Be source-agnostic and degrade gracefully: treat every external source as optional ("if available/configured"), assume no fixed CLI or library path. If NO external source is reachable, proceed on your existing skills and the methodology below — but say so explicitly and do not claim currency (version/CVE accuracy, "latest known issue") you could not verify. Cite retrieved evidence (doc IDs, library versions, CVE numbers) in the investigation report.

Read the full file on GitHub · 378 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. 12d ago Changed · -2 lines d2af7f08fff7
  2. 2mo ago Changed · -10 lines a37b19ac2509
  3. 2mo ago Changed · +1 lines 373b3d4bef71
  4. 2mo ago Changed c28288d24796
  5. 3mo ago First seen · 389 lines · 22 tokens per session scan B 58bd8ea0c3d9

Subscribe to this mod's changes

debug-investigator is an agent published in the GitHub repository yonatangross/orchestkit (312 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 3,745 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

debug-investigator compared with agents from other repositories

debug-investigator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debug-investigatoryonatangross/orchestkitAgent312todayMITB22Claude Code
maid-fixeraidrivencoder/claude-pluginsAgent84d agononeA17Claude Code
performance-optimizerashrafmusa/agenticanaAgent2yesterdayMITA53Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code