trading-ops: Command for Claude Code

.claude/commands/rescan.md

rescan is a command for Claude Code from l3lackcurtains/trading-ops. It costs 20 tokens per session (673 once invoked), scanned A, original, MIT.

A command for refreshing an existing market scan and moving the previous report into an archive. It accepts a market category or a ticker symbol, such as a stock or cryptocurrency code.

In plain words
What is it for?
Use it to rescan stocks, foreign exchange, market indices, cryptocurrencies, or a broader market overview after an initial scan has already been created.
Why use it?
It preserves the earlier scan so the new assessment can be compared with what was previously recorded. It also checks that an earlier scan exists before attempting a refresh.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is l3lackcurtains/trading-ops's own configuration. It tells Claude Code how to work on trading-ops itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything trading-ops configures →

Reuse

Borrowing it

Nothing to install: this file belongs to l3lackcurtains/trading-ops. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/l3lackcurtains/trading-ops/main/.claude/commands/rescan.md
Clone the repo
git clone --depth 1 https://github.com/l3lackcurtains/trading-ops

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 rescan

README.md
[![agentmods](https://agentmods.dev/badge/commands/l3lackcurtains/trading-ops/rescan.svg)](https://agentmods.dev/commands/l3lackcurtains/trading-ops/rescan)
Your own site
<a href="https://agentmods.dev/commands/l3lackcurtains/trading-ops/rescan"><img src="https://agentmods.dev/badge/commands/l3lackcurtains/trading-ops/rescan.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 673 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00020 $0.00673
Opus 5 $0.00010 $0.00336
Sonnet 5 $0.00004 $0.00135
Haiku 4.5 $0.00002 $0.00067

Measured 8d ago against content hash c67dcb85c705, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rescan 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 8d 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.

.claude/commands/rescan.md · 43 lines

How it starts

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

Rescan: $ARGUMENTS

The full protocol is in guide/scan/. Read protocol.md and tiers.md before starting if not loaded this session.

Steps

  1. Identify target folder:

    • If $ARGUMENTS is macro / MACRO → target = scanned/MACRO/
    • Else if folder exists at scanned/stocks/$ARGUMENTS/ → that's the target (stock)
    • Else if scanned/fx/$ARGUMENTS/ → target (FX)
    • Else if scanned/indices/$ARGUMENTS/ or scanned/crypto/$ARGUMENTS/ → target
    • Else: tell the user no current.md exists for this ticker and stop
  2. Verify current.md exists in the target folder. If not, this isn't a rescan — tell the user to run /scan (stock), /scan-macro, or /scan <SYMBOL> first, and stop.

  3. Read-before-scan per protocol.md § Read-before-scan protocol. Address prior triggers explicitly — did the level get tested? did the catalyst fire? did our verdict track? Log to INDEX.md § Performance / audit log if relevant.

  4. Rotate: save existing current.md content verbatim to <target>/archive/<prior-scan-date>.md. Same-day rescan? Overwrites prior same-day archive (git history preserves the morning version).

  5. Prune archive per protocol.md § Retention policy — or run scripts/prune-archive.py <target>.

  6. Pull fresh data and re-run framework:

    • For macro: same data pulls as /scan-macro
    • For stock: same as /scan (full 6-pillar + multi-horizon technical read + earnings if within 90d)
    • For FX/index/commodity/crypto: same as /scan <SYMBOL> (Mode B — no 6-pillar/earnings)
    • Detect type by inspecting the prior current.md structure.
  7. Write new snapshot to <target>/current.md, dated today.

  8. Δ marker: prepend the new TL;DR with **Δ since last scan (YYYY-MM-DD):** <what changed> if verdict, regime, score, or key technical state changed materially. See structure.md § Δ marker.

  9. Update scanned/INDEX.md per tiers.md § Tier-change protocol — log per-horizon changes if any.

Read the full file on GitHub · 43 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. 8d ago First seen · 43 lines · 0 tokens per session scan A c67dcb85c705

Subscribe to this mod's changes

rescan is a command published in the GitHub repository l3lackcurtains/trading-ops (56 stars, last pushed 4mo ago), licensed MIT. It adds 20 tokens to every session and 673 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-30.