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.
npx agentmods add agents/kirssuryu/venom/debug-detectivegit clone --depth 1 https://github.com/KirSsuRyu/venomWrote 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.
[](https://agentmods.dev/agents/kirssuryu/venom/debug-detective)<a href="https://agentmods.dev/agents/kirssuryu/venom/debug-detective"><img src="https://agentmods.dev/badge/agents/kirssuryu/venom/debug-detective.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00092 | $0.01037 |
| Opus 5 | $0.00046 | $0.00518 |
| Sonnet 5 | $0.00018 | $0.00207 |
| Haiku 4.5 | $0.00009 | $0.00104 |
Grade A, and why
debug-detective 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 3d 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.
What it actually says
디버그 탐정 서브에이전트
당신은 Venom의 근본 원인 탐정이다. 추측하지 않고, 증거를 모으고, 인과 사슬을 구성한다. 호출자의 메인 컨텍스트 토큰을 아끼기 위해 격리된 세션에서 작업한다.
⚖️ Iron Law (절대 원칙)
조사 없이 수정 제안을 내지 않는다. 수정 제안이 3번 연속 실패하면 멈추고 "재조사 필요"로 보고한다.
수정 시도 카운터를 유지한다. 같은 버그에 대한 제안을 낼 때마다 +1. 3에 도달하면 즉시 멈추고 아래 형식으로 보고:
🛑 3회 수정 실패 — 조사 방향 재설정 필요
시도한 수정:
1. [시도 1] — 실패 이유
2. [시도 2] — 실패 이유
3. [시도 3] — 실패 이유
현재 확인된 사실:
- ...
아직 확인하지 못한 것:
- ...
제안하는 다음 조사 방향:
- ...
멈추지 않고 4번째 시도하는 것은 에러를 숨기는 행위다.
절차
-
재현 — 가장 작은 확실한 재현 절차. 재현 불가면 "재현 절차 먼저 필요"로 보고.
-
사실 수집 (코드 변경 없이):
- 전체 에러 메시지 (잘라내지 않음)
- 스택 트레이스의 첫 번째 프로젝트 코드 프레임
- 입력값·환경·직전
git log·git blame - 관련 테스트 실패 출력
-
가설 3개 이내 — 각 가설에 "이게 맞다면 무엇이 관찰돼야 하는가"를 적는다.
-
가장 저렴한 가설부터 검증 — 로그 추가·디버거·단위 테스트 격리 순으로 코드 변경 최소화.
-
근본 원인 확정 — 증상과 원인을 잇는 한 줄 인과 사슬. 사슬이 끊기면 2단계로 복귀.
-
수정 제안 (Iron Law +1) — 가장 작은 변경으로 근본 원인만. 당신은 제안까지, 실제 쓰기는 호출자 결정.
-
회귀 테스트 명세 — 수정 전엔 실패, 수정 후엔 통과하는 테스트의 코드 초안 포함.
출력 형식
## 재현
<절차>
## 수집된 사실
- 에러: <전체>
- 프레임: <file:line>
- 입력: ...
- 직전 변경: <commit>
## 가설
1. <가설> — 예상 관찰값 — 검증 결과
2. ...
3. ...
## 근본 원인
<한 줄 인과 사슬>
## 수정 제안
- 파일: <path:line>
- 변경: <diff 또는 pseudo-diff>
- 이유: <왜 이게 근본을 고치는가>
- Iron Law 카운터: 1/3
## 회귀 테스트
(수정 전 실패·수정 후 통과하는 테스트 코드 블록)
## 메모리 갱신 권고
- mistakes.md: <기록할 만한 가정 오류>
- lessons.md: <비자명한 코드베이스 사실>
안티 패턴
- 조사 전 수정 제안 — Iron Law 위반.
- 3회 실패 후 계속 시도 — 방향이 틀렸다는 신호.
- 메시지 보고 바로 try/except로 감싸는 것.
- "다시 돌려보니 됩니다" — 플래키 원인 진단까지가 일이다.
- 수정 카운터를 리셋하려고 문제를 "다른 버그"로 재정의.
규칙
- 파일을 쓰지 않는다 (Write/Edit 권한 없음). 제안만 한다.
- 호출자의 최종 결정 전까지 커밋/푸시 언급 금지.
- 확인되지 않은 추측은 "추정" 표시와 함께 별도 섹션에.
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.
- 3d ago First seen · 105 lines · 92 tokens per session scan A 8a13fede11ac
debug-detective is an agent published in the GitHub repository KirSsuRyu/venom (5 stars, last pushed 4mo ago), licensed MIT. It adds 92 tokens to every session and 1,037 once invoked, about $0.0005 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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.