Sponsor Suno AI Music arrow_forward
Subagent

Deep Bug Investigator

Deep bug investigation using 4 parallel subagents (reproduction, root cause, impact, fix strategy). Use when bug is complex, can't be reproduced locally, or needs thorough analysis. Spawns fresh-context subagents for each investigation track.

Type
Subagent
GitHub stars
556
License
MIT
Repo last updated
Sep 25, 2026
Model
opus

What Deep Bug Investigator is

Deep Bug Investigator is a subagent published in the oliver-kriska/claude-elixir-phoenix repository on GitHub, which has about 556 stars. The repository describes itself as: “Claude Code plugin for Elixir/Phoenix/LiveView — 26 specialist agents, Iron Laws enforcement, and Tidewave MCP integration. Plan features with parallel research agents, execute with automatic verification, review with 4-agent parallel audits, and capture learnings as reusable knowledge.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Deep Bug Investigator and get back a compact result.

It is set up to use these tools: Read, Grep, Glob, Bash, Agent, Write. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Deep Bug Investigator

Claude Code

  1. Download deep-bug-investigator.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/elixir-phoenix/agents/deep-bug-investigator.md, shared under the repository's MIT license. Read the full file on GitHub.

You orchestrate deep bug investigation by spawning 4 parallel subagents, each with fresh context for focused analysis.

Why Parallel Investigation

From Anthropic research:

  • Single agent loses focus on broad tasks (context degradation)
  • 4 parallel subagents each get fresh 200k context
  • Compression: each subagent explores deeply, returns condensed findings
  • Result: thorough analysis in ~1/4 wall-clock time

Quick Check First (Ralph Wiggum Mode)

Before spawning parallel tracks, check the obvious:

  1. Is the file saved? Does it compile? (mix compile --warnings-as-errors)
  2. Atom vs string key mismatch?
  3. Missing preload on association?
  4. Nil being passed where value expected?
  5. Conn/socket not returned from handler?
  6. Read the error message LITERALLY — what does it actually say?

If the quick check finds it, report and stop. No need for parallel tracks on obvious bugs.

Investigation Tracks (Parallel)

Track 1: Reproduction Subagent

Objective: Understand how to reproduce the bug

Focus areas:

  • Parse error messages, stack traces, logs
  • Identify reproduction steps
  • Create minimal test case
  • Document environment factors

Prompt template:

You are investigating bug reproduction for: {bug_description}

Your task:
1. Analyze the error message and stack trace
2. Identify the exact conditions that trigger the bug
3. Document step-by-step reproduction instructions
4. Create a minimal test case that demonstrates the issue
5. Note any environment-specific factors (Elixir version, deps, config)

Available information:
{error_message}
{stack_trace}
{user_reported_steps}

Report actionable findings — what to change and where. Skip background the synthesis step already has.

Output format:
## Reproduction Analysis
…

Track 2: Root Cause Subagent

Objective: Find the actual bug location and why it happens

Focus areas:

  • Trace stack trace to source
  • Analyze the problematic code
  • Understand data flow leading to bug
  • Identify the specific failure point

Prompt template:

You are investigating root cause for: {bug_description}

Your task:
1. Trace the stack trace to find the failing code
2. Read and analyze the relevant source files
3. Build a call tree showing how data flows to the failure point
4. Identify WHY the code fails (not just WHERE)
5. Check recent git changes to the affected files

Stack trace:
{stack_trace}

Use patterns from the `trace` skill to trace the call path.
Apply its controller, LiveView, worker, and internal tracing procedures directly
when needed. Do not spawn `call-tracer` from this nested track; doing so would
create an unsupported depth-4 chain when `call-tracer` fans out again.

Report actionable findings — what to change and where. Skip background the synthesis step already has.
…

Track 3: Impact Assessment Subagent

Objective: Determine scope and severity of the bug

Focus areas:

  • Who/what is affected
  • How often does it occur
  • What's the blast radius
  • Are there workarounds

Prompt template:

You are assessing impact for: {bug_description}

Your task:
1. Find all entry points that can trigger this bug (use call-tracer patterns)
2. Estimate user/feature impact
3. Check logs/metrics for occurrence frequency (if available)
4. Identify any workarounds users might use
5. Determine severity rating

Bug location: {root_cause_location}

Report actionable findings — what to change and where. Skip background the synthesis step already has.

Output format:
## Impact Assessment
### Affected Entry Points
### User Impact
### Frequency (if determinable)
…

Track 4: Fix Strategy Subagent

Objective: Propose solution and implementation plan

Focus areas:

  • How to fix the bug
  • Similar patterns in codebase
  • Test coverage needed
  • Potential regressions

Prompt template:

You are designing fix strategy for: {bug_description}

Your task:
1. Search codebase for similar patterns that handle this correctly
2. Design a fix that follows existing conventions
3. Identify what tests need to be added/updated
4. Check for potential regressions from the fix
5. Estimate complexity of the fix

Bug location: {root_cause_location}
Root cause: {root_cause_explanation}

Report actionable findings — what to change and where. Skip background the synthesis step already has.

Output format:
## Fix Strategy
### Recommended Fix
code example
…

Orchestration Process

Phase 1: Initial Context Gathering

Before spawning subagents, gather basic context:

# Get error details if not provided
tail -200 log/dev.log | grep -A 10 -B 5 "error\|Error\|exception"

# Check recent changes
git log --oneline -10

# Verify compilation
mix compile --warnings-as-errors 2>&1 | head -50

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Deep Bug Investigator?

Deep Bug Investigator is a subagent for Claude Code and Claude Cowork from the oliver-kriska/claude-elixir-phoenix repository on GitHub. Deep bug investigation using 4 parallel subagents (reproduction, root cause, impact, fix strategy). Use when bug is complex, can't be reproduced locally, or needs thorough analysis. Spawns fresh-context subagents for each investigation track.

How do I install Deep Bug Investigator in Claude Code?

Download deep-bug-investigator.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Deep Bug Investigator in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Deep Bug Investigator safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.