Borrowing it
Nothing to install: this file belongs to Oolab-labs/claude-ide-bridge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Oolab-labs/claude-ide-bridge/main/.cursorrulesgit clone --depth 1 https://github.com/Oolab-labs/claude-ide-bridgeWrote 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/rules/oolab-labs/claude-ide-bridge/cursorrules)<a href="https://agentmods.dev/rules/oolab-labs/claude-ide-bridge/cursorrules"><img src="https://agentmods.dev/badge/rules/oolab-labs/claude-ide-bridge/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/oolab-labs/claude-ide-bridge/cursorrules"><img src="https://agentmods.dev/badge/rules/oolab-labs/claude-ide-bridge/cursorrules.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.01019 | $0.01019 |
| Opus 5.5 | $0.00408 | $0.00408 |
| Sonnet 5.5 | $0.00204 | $0.00204 |
| Haiku 4.5 | $0.00102 | $0.00102 |
Grade A, and why
cursorrules 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 1mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- cursorrules — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude IDE Bridge — Cursor Rules
Build
- Run
npm run buildfor bridge,cd vscode-extension && npm run build && npm run packagefor extension. - Run
npx biome check .before every commit. - Run
npm testbefore every commit. - Always rebuild bridge + extension + VSIX before testing changes.
Tool Pattern
- Create tools using
createXxxTool(deps)returning{ schema, handler }. - Register every tool in
src/tools/index.ts. - Set
extensionRequired: trueif the tool needs the VS Code extension. - Tool names must match
/^[a-zA-Z0-9_]+$/. - Use
readOnlyHint: truein annotations for tools that do not modify state. - Never throw from a tool handler — catch and return
{ content: [...], isError: true }.
Extension Handlers
- Create handlers as standalone async functions.
- Register in
vscode-extension/src/handlers/index.ts. - All
ws.send()calls must usesafeSend()or readyState check + try-catch.
Error Handling
- Tool execution errors: return
isError: truein content blocks. See docs/adr/0004-tool-errors-as-content.md. - Protocol errors: use
ErrorCodes(JSON-RPC -32xxx). Never mix the two. - Never use JSON-RPC error codes in tool handlers.
Input Validation
- All tool arguments are validated by AJV schemas at the transport layer.
- Use
resolveFilePath()for any user-supplied path — blocks null bytes, symlinks, and workspace escapes. - Use
isValidRef()for git ref arguments — blocks leading-dash refs. - Clipboard operations enforce 1MB cap via
Buffer.byteLength. searchAndReplacerejects null bytes and--prefixed glob patterns.
Security
runCommandonly executes allowlisted commands. Interpreter commands (node, python, bash) are permanently blocked.sendHttpRequestblocks private/loopback IPs (SSRF). DNS pre-resolves hostnames. Host header overridden after user headers.- Never include auth tokens, IPs, or domain names in source code or documentation.
- Lock files use
O_EXCLcreation (symlink attack prevention) andchmod 0o600.
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.
- 1mo ago First seen · 77 lines · 1,019 tokens per session scan A a532bccc3f69
cursorrules is a cursor rule published in the GitHub repository Oolab-labs/claude-ide-bridge (38 stars, last pushed 5mo ago), licensed MIT. It adds 1,019 tokens to every session, about $0.0041 per session on Opus 5.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-30.
Other cursor rules, from other repositories
root-cause-first
Require source-level fixes for malformed or polluted domain data.
ReviewGateV2
Cursor rule "ReviewGateV2" from LakshmanTurlapati/Review-Gate, covering mandatory checkpoint (must be included in every response), enforcement mechanism, 0. user advisory & safety, 1. core principle & context and phase 1: primary task execution.
project-onboarding-rule
Automatically onboards existing projects into the AI-driven development workflow.
on-load-rule
MUST READ AT START - Critical Development Principles.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.