pypi: Instructions file for Claude Code

CLAUDE.md

pypi CLAUDE.md is an instructions file for Claude Code from resq-software/pypi. It costs 654 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for ResQ’s Python packages, which are software libraries published through PyPI, Python’s package registry. They describe the project structure, tools, tests, checks, and release process.

In plain words
What is it for?
They are for developing, testing, checking, and releasing the ResQ Python packages and related services.
Why use it?
They give an agent the project-specific rules and commands needed to work consistently in the repository.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/resq-software/pypi/claude-md"><img src="https://agentmods.dev/badge/instructions/resq-software/pypi/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 654 This file is loaded in full into every session.
When invoked 654 The same file — it is already loaded in full.
Security scan C 2 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.00654 $0.00654
Opus 5.5 $0.00262 $0.00262
Sonnet 5.5 $0.00131 $0.00131
Haiku 4.5 $0.00065 $0.00065

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

Security

Grade C, and why

pypi CLAUDE.md scanned grade C with 2 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 1mo 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 codehighSupply chain

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

curl -fsSL https://raw.githubusercontent.com/resq-software/dev/main/scripts/install-hooks.sh | sh

Makes network callslowCapability

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

curl -fsSL https://raw.githubusercontent.com/resq-software/dev/main/scripts/install-hooks.sh | sh
CLAUDE.md · 66 lines

How it starts

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

ResQ PyPI Packages — Agent Guide

Mission

Registry workspace for ResQ Python packages published to PyPI.

Stack

  • Runtime: Python 3.11+
  • Build: Hatchling
  • Package Manager: uv
  • Testing: pytest (+ hypothesis for property-based tests in resq-mcp)
  • Linting: ruff + mypy (strict)
  • Release: python-semantic-release for both published packages. Triggered manually via workflow_dispatch — the branch ruleset rejects the release commit, so pushes do not publish.

Repo Map

  • packages/resq-mcp/ — FastMCP server for AI agent integration (drone fleet, PDIE, DTSOP)
  • packages/resq-dsa/ — Zero-dependency data structures & algorithms (Bloom, CountMin, Graph, Heap, Trie, Rabin-Karp)

Commands

# resq-mcp
cd packages/resq-mcp && uv sync && uv run pytest
uv run ruff check src/ tests/
uv run mypy src/

# resq-dsa
cd packages/resq-dsa && uv sync && uv run pytest
uv run ruff check src/ tests/

Rules

  • resq-dsa must have zero runtime dependencies — stdlib only
  • Each package has its own pyproject.toml and virtual environment
  • Python 3.11+ minimum across all packages
  • ruff for linting, mypy for type checking (strict mode)
  • All source files must include Apache-2.0 license header
  • AGENTS.md is the source of truth for CLAUDE.md — never edit CLAUDE.md directly

Safety

  • Don't add runtime dependencies to resq-dsa
  • Don't publish without running full test suite and linting
  • resq-mcp safe mode (RESQ_SAFE_MODE=true) is default — mutations raise errors

Workflow

  1. cd into the specific package directory
  2. uv sync to install dependencies
  3. uv run pytest to test
  4. uv run ruff check src/ tests/ to lint
  5. Summarize: files changed, behavior change, tests run

References

Git hooks

Canonical hooks from resq-software/dev. Install:

Read the full file on GitHub · 66 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. 1mo ago Changed · +11 lines · +117 tokens per session scan A → C 3ecc5debafe7
  2. 2mo ago Changed · -5 lines · -52 tokens per session 556121c1cd92
  3. 2mo ago First seen · 60 lines · 589 tokens per session scan A 251d9c56b1d2

Subscribe to this mod's changes

pypi CLAUDE.md is an instructions file published in the GitHub repository resq-software/pypi (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 654 tokens to every session, about $0.0026 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pypi CLAUDE.md compared with instructions from other repositories

pypi CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pypi CLAUDE.mdresq-software/pypiInstructions file211d agoApache-2.0C654Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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