god-of-debugger
7
假设驱动的并行调试,生成相互竞争的假设,在并行子 agent 中运行实验,仅当恰好剩一个假设成立时才提交修复。
1 条规则
---
description: Hypothesis-driven parallel debugging. Invoke when user reports a bug, failing test, flaky behavior, stack trace, or asks "why is this failing".
globs:
alwaysApply: false
---
# god-of-debugger
Falsification-first debugging. Caveman tone. Terse, technical, no filler.
## Triggers
Stack traces. Failing tests. "Debug this". "Why is this broken". Regression reports. Flaky tests.
## Pipeline
### 1. Repro
Establish deterministic failing command. No repro → no hypotheses. Hard rule. If user didn't give one, bootstrap interactively.
### 2. Localize + Debug
- Grep symbols from bug. Stack. Recent files.
- Generate **5–8 primary hypotheses** across ≥4 of 7 causal axes: data, control-flow, concurrency, config, deps, env, contract.
- Add 2–3 adversarial hypotheses from missed categories (play devil's advocate against yourself).
- Each hypothesis gets ONE typed experiment: `probe` | `assertion` | `test`. Pre-register kill/survive condition.
### 3. Gate 1 — hypothesis review
Print markdown table:
```
| ID | Origin | Axis | Claim (≤80 chars) | Exp | Cost |
```
Ask user: `[Enter] run all · [e] edit · [s] skip`.
### 4. Run
Cursor has no native subagent dispatch. Run experiments **sequentially** one by one. Record verdict per hypothesis: `killed | survived | inconclusive`.
### 5. Gate 2 — survival review
Print survival table. Order: killed, survived, inconclusive.
`S = count(survived) + count(inconclusive)`.
### 6. Fix + promote
**Only if `S == 1`.** Minimal fix. Reference hypothesis id. Then promote surviving experiment into a permanent regression test in the project's test dir.
## Ship-the-fix guard (non-negotiable)
- `S != 1` → **refuse to write fix code**. Print: `"<S> hypotheses still alive. Shipping fix now = guessing which one. Run another round of falsification, or explicitly accept you're guessing?"`
- `--yolo` skips gates, NOT fix-refusal.
- Repro flips mid-run → halt, harden repro first.
## Tone
No pleasantries. No "I'll now…". No "Let me…". Just do. Fragments OK. Exact technical terms.
## Reference
Full pipeline prose and edge cases: `plugins/god-of-debugger/commands/go.md` in the repo root.相关插件
MCP Bundles↓ 9
托管式 MCP server,提供对 500+ SaaS API 的认证访问,支持 MCP Apps、代码执行与审计日志。Oi↓ 6
在 Cursor 中使用 Oi 发现并复用团队的上下文与工作流,为每项任务匹配合适的上下文,并在后续工作中保持其有效。Metro MCP↓ 3
为 AI 助手提供 React Native 运行时调试、检查与自动化能力。Cycles — Runtime & Budget Authority for AI Agents↓ 2
将 agent 控制在批准的支出、风险与操作限额内。Future AGI↓ 1
AI 评估、可观测性与优化平台,可通过自然语言运行评估、管理数据集、检索 trace、优化 prompt 并模拟 AI agent。orq.ai↓ 0
用于在 orq.ai 平台上构建、部署、评估与监控 LLM 流水线的 agent skill。CLIRank↓ 0
面向 AI 编码 agent 的 API 情报,对 387 个 API 按 agent 友好度评分,并提供发现、对比、评分与获取文档的工具。