flash: Instructions file for Claude Code

CLAUDE.md

flash CLAUDE.md is an instructions file for Claude Code from runpod/flash. It costs 2,865 tokens per session, scanned A, original, MIT.

Repository instructions for runpod-flash, a Python toolkit for running machine-learning inference across RunPod's serverless computers.

In plain words
What is it for?
Use them when working on runpod-flash features such as remote functions, endpoint deployment, request routing, or its command-line tools.
Why use it?
They give a coding agent the project's structure, important code entry points, and operating rules, reducing guesswork when changing the code.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is runpod/flash's own configuration. It tells Claude Code how to work on flash 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 flash configures →

View source ↗ runpod/flash
Reuse

Borrowing it

Nothing to install: this file belongs to runpod/flash. 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/runpod/flash/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/runpod/flash

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 flash CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/runpod/flash/claude-md/github.svg)](https://agentmods.dev/instructions/runpod/flash/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/runpod/flash/claude-md"><img src="https://agentmods.dev/badge/instructions/runpod/flash/claude-md/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.

agentmods 80×15 button for flash CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/runpod/flash/claude-md"><img src="https://agentmods.dev/badge/instructions/runpod/flash/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,865 This file is loaded in full into every session.
When invoked 2,865 The same file — it is already loaded in full.
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.02865 $0.02865
Opus 5.5 $0.01146 $0.01146
Sonnet 5.5 $0.00573 $0.00573
Haiku 4.5 $0.00286 $0.00286

Measured 2mo ago against content hash 577d4abd586d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flash CLAUDE.md 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 2mo 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.md · 256 lines

How it starts

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

Flash (runpod-flash)

Auto-generated by /analyze-repos on 2026-02-22. Manual edits will be overwritten on next analysis.

Project Overview

runpod-flash (v1.3.0, PyPI: runpod-flash, MIT, Python >=3.10 <3.13). Python SDK for distributed inference and serving on Runpod serverless. Provides @remote decorator, CLI (flash init/run/build/deploy), runtime for serialization, endpoint provisioning, cross-endpoint routing, and load-balanced HTTP serving.

Package: runpod_flash (src layout). Key deps: cloudpickle, runpod, pydantic>=2.0, rich>=14.0, typer>=0.12.

Architecture

Key Abstractions

  1. ServerlessResource (src/runpod_flash/core/resources/serverless.py:93) -- Base Pydantic model for all serverless endpoint configs. Extends DeployableResource with config hashing, drift detection, deployment lifecycle.
  2. ResourceManager (src/runpod_flash/core/resources/resource_manager.py:22) -- Singleton managing dynamic provisioning, persistence, config drift detection, concurrent deployment locking.
  3. ServiceRegistry (src/runpod_flash/runtime/service_registry.py:21) -- Runtime service discovery for cross-endpoint function routing. Loads flash_manifest.json, queries State Manager.
  4. remote() decorator (src/runpod_flash/client.py:48) -- Primary public API. Three modes: stub creation, local execution in deployed env, LB route handler.
  5. stub_resource() singledispatch (src/runpod_flash/stubs/registry.py:22) -- Polymorphic stub factory. Dispatches on resource type to create execution stubs.

Entry Points

  • CLI: src/runpod_flash/cli/main.py:30 (flash = runpod_flash.cli.main:app). Commands: init, run, build, deploy, env, app, undeploy
  • Module entry: src/runpod_flash/cli/main.py:89
  • Programmatic: src/runpod_flash/__init__.py exports remote, LiveServerless, etc.

Module Structure

src/runpod_flash/
  __init__.py              # Package root; lazy imports, dotenv, logging
  client.py                # @remote decorator (3 modes: stub/local/LB)
  config.py                # FlashPaths NamedTuple
  execute_class.py         # RemoteClassWrapper, class serialization
  logger.py                # SensitiveDataFilter, setup_logging()
  cli/                     # CLI layer (Typer-based)
    main.py                # CLI app definition
    commands/
      init.py              # flash init
      run.py               # flash run (dev server codegen + uvicorn)
      build.py             # flash build (artifact packaging)
      deploy.py            # flash deploy (build + upload + provision)
      preview.py           # flash deploy --preview (Docker Compose)
      env.py, apps.py, undeploy.py
      _run_server_helpers.py  # lb_execute, make_input_model
      build_utils/
        scanner.py         # AST-based @remote detection for API key analysis
        manifest.py        # flash_manifest.json generation
        handler_generator.py, lb_handler_generator.py, resource_config_generator.py
    utils/                 # app.py, conda.py, deployment.py, formatting.py, ignore.py, skeleton.py
  core/                    # Core business logic
    deployment.py          # DeploymentOrchestrator
    discovery.py           # ResourceDiscovery (AST scanning)
    exceptions.py, validation.py
    api/runpod.py          # RunpodGraphQLClient, RunpodRESTClient (899 lines)
    resources/             # All resource types, ResourceManager, GPU/CPU enums, constants
    utils/                 # backoff, constants, file_lock, http, lru_cache, singleton, user_agent
  runtime/                 # Deployed runtime (runs inside workers)
    service_registry.py    # Cross-endpoint routing via manifest
    production_wrapper.py  # Production handler wrapper
    lb_handler.py          # Load balancer FastAPI handler
    circuit_breaker.py, models.py, config.py, context.py
    serialization.py, state_manager_client.py
    resource_provisioner.py, retry_manager.py, metrics.py, reliability_config.py
  stubs/                   # Execution dispatch
    registry.py            # singledispatch stub factory
    live_serverless.py, serverless.py, load_balancer_sls.py, dependency_resolver.py
  protos/                  # FunctionRequest dataclass, protobuf definitions

Read the full file on GitHub · 256 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. 2mo ago First seen · 256 lines · 2,865 tokens per session scan A 577d4abd586d

Subscribe to this mod's changes

flash CLAUDE.md is an instructions file published in the GitHub repository runpod/flash (188 stars, last pushed 4d ago), licensed MIT. It adds 2,865 tokens to every session, about $0.0115 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.

Related

flash CLAUDE.md compared with instructions from other repositories

flash CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flash CLAUDE.mdrunpod/flashInstructions file1884d agoMITA2,865Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode