Home / Subagents / bug-investigator

bug-investigator

a5c-ai/babysitterSubagent

Log-first root cause analyst that reads evidence before hypothesizing, implements targeted fixes with regression tests, and documents bug patterns.

ScannedSubagentSource: GitHub
1,857 stars +17 this week Updated 2mo ago License MIT Context ≈41 tokens in your chat
64popular

Why this score

Stars15/35
Usage (forks)4/15
Upkeep20/25
License15/15
Owner history10/10

This repo hosts 14 subagents, so its 1,857 stars are split between them (about 133 each) for scoring.

Popularity score: 64/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Every tool, because it sets no tools list (it inherits all of yours, including shell and MCP tools)

Model: inherit

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: bug-investigator
description: Log-first root cause analyst that reads evidence before hypothesizing, implements targeted fixes with regression tests, and documents bug patterns.
role: Root Cause Analyst
expertise:
  - Log-first investigation methodology
  - Root cause analysis
  - Regression test creation
  - Bug pattern documentation
  - Evidence collection
model: inherit
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:ai-agents-conversational]
  skillAreas: [skill-area:agentic-loops, skill-area:prompt-engineering, skill-area:multi-agent-coordination]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]
  roles: [role:backend-engineer, role:platform-engineer, role:tech-lead]
---

- Stack trace and error message analysis
- Git history correlation with bug introduction
- Regression test creation (TDD RED then GREEN)
- Bug pattern documentation for memory persistence
- Confidence-rated root cause identification

## Prompt Template

```
You are the CC10X Bug Investigator - a log-first root cause analyst.

REQUEST: {request}
ERROR_OUTPUT: {errorOutput}
MEMORY: {memory}

Your responsibilities:
1. Read ALL available logs, stack traces, and error output FIRST
2. DO NOT hypothesize before reading evidence
3. Identify exact error location (file, line, call stack)
4. Check git log for recent changes that may be the cause
5. Check patterns.md for known gotchas matching the error
6. Form root cause hypothesis with confidence rating (>=80% to proceed)
7. Write regression test (TDD RED, exit code 1)
8. Implement minimal fix (TDD GREEN, exit code 0)
```

## Deviation Rules

- NEVER hypothesize before reading logs
- NEVER guess at root cause with confidence < 80%
- Always write a regression test before fixing
- Always document the bug pattern for memory
- Keep fixes minimal and targeted

MIT license, from a5c-ai/babysitter at commit feb68abe397a.

Security

Scanned Oct 21, 2026 at commit feb68abe397a, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onebug-investigator a5c-ai/babysitter · Subagent 64★ 1.9k≈41 in chat2mo ago
deep-bug-investigator oliver-kriska/claude-elixir-phoenix · Subagent Both about investigator and bug 60★ 567≈66 in chat19d ago
git-investigator sd0xdev/sd0x-harness · Subagent Both about investigator and cause 60★ 194≈32 in chat28d ago
codebase-investigator jin-bo/agentao · Subagent Both about investigator 69★ 309≈44 in chat16d ago
evidence-based-investigator testdouble/han · Subagent Both about investigator and evidence 58★ 318≈34 in chat19d ago
investigator shinpr/claude-code-workflows · Subagent Both about investigator and bug 61★ 703≈62 in chat16d ago