scip-tools

A set of rules for using SCIP, a code index that helps tools understand symbols such as functions, types, and references. It uses the scip command-line tool instead of text search for these questions.

In plain words
What is it for?
Finding symbol definitions, references, type signatures, and file structure, especially before refactoring, renaming, or checking code rules.
Why use it?
It helps an agent locate definitions and references accurately without reading large files or relying on unreliable text matches.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/brainy-builds/ts-inspect-cli/scip-tools
Clone the repo
git clone --depth 1 https://github.com/Brainy-Builds/ts-inspect-cli

Made for: Cursor.

Per session 7,610 This file is loaded in full into every session.
When invoked 7,610 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.07610 $0.07610
Opus 5 $0.03805 $0.03805
Sonnet 5 $0.01522 $0.01522
Haiku 4.5 $0.00761 $0.00761

Measured 2d ago against content hash 7d1aa635a00a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scip-tools scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bash -c 'curl -L "https://github.com/scip-code/scip/releases/download/$TAG/scip-$OS-$ARCH.tar.gz"' \
.cursor/rules/scip-tools.mdc · 622 lines

How it starts

The opening of the file, as written. The whole thing — 622 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SCIP Code Intelligence for AI Agents

Purpose

AI LLM agents working on this codebase lack a built-in language server. SCIP (Semantic Code Intelligence Protocol) fills that gap. A SCIP index of the codebase is stored as a compact binary file. The scip CLI and a language-specific indexer (for this repo, scip-typescript) let an agent look up symbol definitions, find references, inspect type signatures, and navigate code semantically - the same operations an IDE performs with a language server - using only shell commands.

Use SCIP whenever you need to understand where a symbol is defined, who references it, what its type signature is, or how a file's symbols are structured - especially before refactoring, renaming, or auditing against the Code Rules. SCIP queries are precise (indexed by symbol), fast, and avoid the context cost of reading large files. Prefer SCIP over grep for any question that is fundamentally about a symbol, a type, a reference, or a file's structure.

When to Use - PREFER SCIP OVER GREP

Reach for SCIP, not grep, when any of the following are true. These are semantic questions; a text search cannot answer them reliably. Text search finds the string, not the symbol - it misses aliases, re-exports, shadowing, imports, and type-only usages, and it returns every comment and string literal that happens to contain the name.

You are about to... Use SCIP instead of grep because
Rename a symbol (function, variable, type, interface, class, constant) grep finds the substring everywhere; SCIP returns every reference and the single definition, with line numbers and roles.
Find all usages of a symbol before changing its signature grep misses aliased imports (import { foo as bar }) and re-exports; SCIP follows the symbol identity.
Check whether a symbol is defined in the right place per Code Rules grep cannot tell definition from reference; SCIP role=1 pinpoints the definition file.
Inspect a symbol's type signature or JSDoc without opening the file grep cannot return a signature; SCIP returns the documentation array with the signature and JSDoc.
List what a file exports / defines grep on export misses export { x } blocks and re-exports; SCIP lists every defined symbol precisely.
Find every file that imports a given module's symbols grep on the module path misses aliased and type-only imports; SCIP role=0 on the exported symbols finds them all.
Audit for symbols defined outside their required directory (e.g. interface outside ./src/types/**) grep cannot correlate "is an interface" with "is outside src/types/"; SCIP filters by symbol kind AND path in one query.

Read the full file on GitHub · 622 lines

Changes

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.

  1. 2d ago First seen · 622 lines · 7,610 tokens per session scan A 7d1aa635a00a

Subscribe to this mod's changes

scip-tools is a cursor rule published in the GitHub repository Brainy-Builds/ts-inspect-cli (2 stars, last pushed 13d ago), licensed MIT. It adds 7,610 tokens to every session, about $0.0381 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.