Borrowing it
Nothing to install: this file belongs to tabayashi0117/Score-CAM. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tabayashi0117/Score-CAM/master/CLAUDE.mdgit clone --depth 1 https://github.com/tabayashi0117/Score-CAMWrote 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.
[](https://agentmods.dev/instructions/tabayashi0117/score-cam/claude-md)<a href="https://agentmods.dev/instructions/tabayashi0117/score-cam/claude-md"><img src="https://agentmods.dev/badge/instructions/tabayashi0117/score-cam/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01091 | $0.01091 |
| Opus 5 | $0.00545 | $0.00545 |
| Sonnet 5 | $0.00218 | $0.00218 |
| Haiku 4.5 | $0.00109 | $0.00109 |
Grade A, and why
Score-CAM 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 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.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Guidance for Claude Code when working in this repository.
What this repository is
A readable reference implementation of Score-CAM (and Faster-Score-CAM) in Keras, accompanying a Qiita article.
It is not a general-purpose saliency library. Maintained alternatives for that
are tf-keras-vis and pytorch-grad-cam. Optimise this repo for clarity and
correctness, not for feature coverage. When in doubt, prefer the simpler,
more legible implementation.
Layout
| Path | Role |
|---|---|
scorecam/ |
The implementation. Single source of truth. |
gradcamutils.py |
Backwards-compatible shim re-exporting scorecam. The article and older forks import this name — do not delete or add logic here. |
tests/ |
pytest suite. Runs on CPU with a tiny randomly-initialised model; no downloads, no ImageNet weights. |
scripts/regenerate_results.py |
Rebuilds the VGG16 figures in result/. |
Score-CAM.ipynb |
Demo notebook. |
image/, result/ |
Inputs and rendered outputs used by the README. |
Non-negotiable rules
- No algorithm logic in the notebook. The notebook imports from
scorecamand displays results. If you find yourself pasting a function body into a cell, put it inscorecam/and import it instead. - Notebook outputs are stripped on commit. Install the git filter once
with
uv run nbstripout --install; CI fails the build otherwise. Figures shown in the README live inresult/as PNGs, regenerated byscripts/regenerate_results.py. Never commit a notebook whose diff is megabytes of base64 — that is what made this one 7.2 MB and unreviewable. - Eager only. Never call
tf.compat.v1.disable_eager_execution(). Never usetf.gradients,keras.backend.function, ortf.compat.v1.*. Gradients come fromtf.GradientTape; custom gradients from@tf.custom_gradient. - No private APIs.
tensorflow.python.*and anything with a leading underscore is off limits — that is what broke this repo for five years. - Do not add dependencies. TensorFlow, NumPy, Pillow and Matplotlib cover
everything here. Resize with
tf.image.resize(scorecam._common.resize_2d), load images withkeras.utils.load_img, colour withmatplotlib.colormaps. OpenCV was removed in v0.2: 120 MB of wheel for four function calls, all of which the existing dependencies already did —tf.image.resizeagrees withcv2.resizeto float32 rounding error. A test assertscv2never gets imported. - Every CAM function returns a 2-D
float32numpy array with the spatial shape of the target layer, values scaled to[0, 1], no NaN/Inf.tests/test_cam.pyenforces this; keep it that way.
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.
- 8d ago First seen · 85 lines · 1,091 tokens per session scan A a95ab099d2cc
Score-CAM CLAUDE.md is an instructions file published in the GitHub repository tabayashi0117/Score-CAM (58 stars, last pushed 17d ago), licensed MIT. It adds 1,091 tokens to every session, about $0.0055 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.
Other instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.