pypi CLAUDE.md

pypi CLAUDE.md is an instructions file for coding agents from resq-software/pypi. It costs 589 tokens per session, scanned A, 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

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.

agentmods
npx agentmods add instructions/resq-software/pypi/claude-md
Clone the repo
git clone --depth 1 https://github.com/resq-software/pypi

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 589 This file is loaded in full into every session.
When invoked 589 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00589 $0.00589
Opus 5 $0.00295 $0.00295
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 4d ago against content hash 251d9c56b1d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pypi 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 4d 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 · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 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)
  • packages/fleet-api/ — FastAPI service for fleet state and sector deployments. Not published; no release lane.

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/

# fleet-api
cd packages/fleet-api && 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

Read the full file on GitHub · 60 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. 4d 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 (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 589 tokens to every session, about $0.0029 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-31.