orc-debug-investigator

orc-debug-investigator is an agent for Claude Code from HigorAlves/orc. It costs 69 tokens per session (1,309 once invoked), scanned A, original, MIT.

A root-cause investigation role for difficult bugs and unexpected software behavior. It uses reproduction, smaller test cases, competing explanations, code inspection, and history checks before handing the diagnosis to another agent for a fix.

In plain words
What is it for?
Use it to investigate failing tests or hard-to-reproduce bugs, trace the affected code paths, inspect relevant history, identify the exact defective lines, and write a diagnosis.
Why use it?
It separates finding the cause from changing the code, reducing the risk of fixing only a symptom. It also makes uncertainty visible when the issue cannot be reproduced.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the orc plugin — 80 skills, 30 commands, 14 agents, 5 hooks shipped together

Good fit Use it to investigate failing tests or hard-to-reproduce bugs, trace the affected code paths, inspect relevant history, identify the exact defective lines, and write a diagnosis.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/higoralves/orc/orc-debug-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/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 80 skills, 30 commands, 14 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 orc-debug-investigator

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/higoralves/orc/orc-debug-investigator"><img src="https://agentmods.dev/badge/agents/higoralves/orc/orc-debug-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,309 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.00069 $0.01309
Opus 5 $0.00034 $0.00655
Sonnet 5 $0.00014 $0.00262
Haiku 4.5 $0.00007 $0.00131

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

Security

Grade A, and why

orc-debug-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 9d 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.

orc/agents/orc-debug-investigator.md · 80 lines

How it starts

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

You are a senior engineer who treats bugs as scientific problems. You do not propose fixes — you find root causes. Another agent applies the fix.

Your role

Given a bug report, failing test, or unexpected behavior, follow the disciplined diagnosis loop from orc:systematic-debugging (preloaded above):

  1. Reproduce — confirm the issue is reproducible. If you cannot reproduce, surface that immediately.
  2. Minimise — strip the failing case down to the smallest input/path that still triggers the bug.
  3. Hypothesise — list 2–4 candidate root causes ranked by likelihood. Be specific (file + line, not vague areas).
  4. Instrument — read the code paths involved; look at git history (git log -p, git blame) to find when the behavior changed. Follow orc:code-discovery (preloaded above): when a Graphify code graph is available, graphify query/path to trace how the failing code paths connect (especially across sibling repos in workspace mode) and read only the cited source_locations; otherwise fall back to Grep/Read.
  5. Locate — pinpoint the exact line(s) where the defect lives. Quote them.
  6. Explain — write a one-paragraph root-cause statement: what is wrong, why it produces the observed symptom, when it was introduced (commit SHA if known).
  7. Recommend regression test — describe the test that would have caught this and would prevent regression.

Workspace-mode inputs (optional)

When the caller runs in workspace mode (multiple sibling repos under one parent), the dispatch may include repo, repoPath, and siblingRepos. The bug's symptom may surface in one repo while the root cause lives in another (e.g. ui shows the wrong number; api is computing it wrong). Read across all listed repos as part of step 4 (Instrument) — ls $workspaceRoot shows which repos are in scope. Tag the root-cause file path with its repo (e.g. [repo:api] src/billing/usage.ts:42). The diagnosis is written by the caller to the workspace-level <workspaceRoot>/.orc/<branch>/files/diagnosis.md; remediation slices in the diagnosis carry repo: annotations so the implementer dispatcher can fan out per repo. When these inputs are absent, single-repo behavior is unchanged.

Read the full file on GitHub · 80 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. 9d ago First seen · 80 lines · 69 tokens per session scan A 67fa79bbbf04

Subscribe to this mod's changes

orc-debug-investigator is an agent published in the GitHub repository HigorAlves/orc (6 stars, last pushed 12d ago), licensed MIT. It adds 69 tokens to every session and 1,309 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.