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 rules/vypdev/copilot/bugbotgit clone --depth 1 https://github.com/vypdev/copilotWhat 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.00025 | $0.02623 |
| Opus 5 | $0.00013 | $0.01311 |
| Sonnet 5 | $0.00005 | $0.00525 |
| Haiku 4.5 | $0.00003 | $0.00262 |
Grade A, and why
bugbot 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bugbot – technical reference
Bugbot has two main modes: detection (on push or single action) and fix/do (on issue comment or PR review comment). All Bugbot code lives under src/usecase/steps/commit/bugbot/ and src/usecase/steps/commit/ (DetectPotentialProblemsUseCase, user_request_use_case).
1. Detection flow (push or single action)
Entry: CommitUseCase (on push) calls DetectPotentialProblemsUseCase; or SingleActionUseCase when action is detect_potential_problems_action.
Steps:
- Guard: OpenCode must be configured;
issueNumber !== -1. - Load context:
loadBugbotContext(param)→ issue comments + PR review comments parsed for markers; buildsexistingByFindingId,issueComments,openPrNumbers,previousFindingsBlock,prContext,unresolvedFindingsWithBody. Branch isparam.commit.branch(oroptions.branchOverridewhen provided). PR context includesprHeadSha,prFiles,pathToFirstDiffLinefor the first open PR. - Build prompt:
buildBugbotPrompt(param, context)– repo context, head/base branch, issue number, optionalai-ignore-files, andpreviousFindingsBlock(task 2: which previous findings are now resolved). OpenCode is asked to compute the diff itself and returnfindings+resolved_finding_ids. - Call OpenCode:
askAgent(OPENCODE_AGENT_PLAN, prompt, BUGBOT_RESPONSE_SCHEMA). - Process response: Filter findings: safe path (
isSafeFindingFilePath), not inai-ignore-files(fileMatchesIgnorePatterns),meetsMinSeverity(min frombugbot-severity),deduplicateFindings. ApplyapplyCommentLimit(findings, bugbot-comment-limit)→toPublish,overflowCount,overflowTitles. - Mark resolved:
markFindingsResolved(execution, context, resolvedFindingIds, normalizedResolvedIds)– for each existing finding in context whose id is in resolved set, update issue comment (and PR review comment if any) viareplaceMarkerInBodyto setresolved:true; if PR comment, callresolveReviewThreadwhen applicable. - Publish:
publishFindings(execution, context, toPublish, overflowCount?, overflowTitles?)– for each finding: add or update issue comment (always); add or update PR review comment only whenfinding.fileis inprContext.prFiles(usingpathToFirstDiffLinewhen finding has no line). Each comment body is built withbuildCommentBody(finding, resolved)and includes the marker<!-- copilot-bugbot finding_id:"id" resolved:false -->. Overflow: one extra issue comment summarizing excess findings.
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.
- yesterday First seen · 129 lines · 25 tokens per session scan A b74d0f21f198
bugbot is a cursor rule published in the GitHub repository vypdev/copilot (2 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 2,623 once invoked, about $0.0001 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 cursor rules, from other repositories
code-review-en
Code Review Guidelines (English).
code-review
代码审查规范(中文版).
cursorrules
See AGENTS.md — Cursor reads it natively.
task-summary
Enforce Summary and Session Log blocks on every coding response when session tracking is enabled.
api-steps
How to create HTTP endpoints in Motia.
virtual-steps
Connecting nodes virtually and creating a smooth flow in Workbench.