rafter

rafter is a cursor rule for Cursor from Raftersecurity/rafter-cli. It costs 100 tokens per session (283 once invoked), scanned A, original, MIT.

A router for Rafter, a security toolkit that can scan code and dependencies, look for exposed secrets, audit a project, and assess the risk of a shell command. SAST means checking source code for security problems, and SCA means checking third-party packages.

In plain words
What is it for?
Use it to run code, dependency, and secret scans, perform an offline secrets-only check, investigate suspicious patterns, audit a project, or classify a command before execution.
Why use it?
It directs security-related work to the appropriate check and distinguishes remote scans from offline secret checks and command-risk evaluation.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: reads .claude/ paths; mentions subagents.

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/raftersecurity/rafter-cli/rafter
Clone the repo
git clone --depth 1 https://github.com/Raftersecurity/rafter-cli

Made for: Cursor.

Wrote 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.

agentmods badge for rafter

README.md
[![agentmods](https://agentmods.dev/badge/rules/raftersecurity/rafter-cli/rafter.svg)](https://agentmods.dev/rules/raftersecurity/rafter-cli/rafter)
Your own site
<a href="https://agentmods.dev/rules/raftersecurity/rafter-cli/rafter"><img src="https://agentmods.dev/badge/rules/raftersecurity/rafter-cli/rafter.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00100 $0.00283
Opus 5 $0.00050 $0.00142
Sonnet 5 $0.00020 $0.00057
Haiku 4.5 $0.00010 $0.00028

Measured yesterday against content hash 6e930e0a314f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

rafter 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.

node/resources/cursor-rules/rafter.mdc · 16 lines

What it actually says

rafter — security toolkit router

Pointer rule. Use the rafter skill (full guidance at .claude/skills/rafter/SKILL.md, also installed as a Cursor sub-agent at .cursor/agents/rafter.md).

  • Run rafter run for the default tier — remote SAST + SCA + secrets. Needs RAFTER_API_KEY.
  • Run rafter run --mode plus for agentic deep-dive on suspicious patterns.
  • Run rafter secrets <path> for offline secrets-only (NOT a code security scan).
  • Run rafter agent exec --dry-run -- <cmd> to classify a shell command's risk before running it.

If unsure which tier to pick, Read .claude/skills/rafter/SKILL.md and follow the routing table.

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. yesterday First seen · 16 lines · 100 tokens per session scan A 6e930e0a314f

Subscribe to this mod's changes

rafter is a cursor rule published in the GitHub repository Raftersecurity/rafter-cli (27 stars, last pushed 3d ago), licensed MIT. It adds 100 tokens to every session and 283 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-09-04.