pyobfus: Instructions file for Claude Code

CLAUDE.md

pyobfus CLAUDE.md is an instructions file for Claude Code from zhurong2020/pyobfus. It costs 22,213 tokens per session, scanned A, original, Apache-2.0.

Project instructions for pyobfus, a Python code obfuscator that transforms source code to make it harder to read. They define development conventions and point to the current plan and release details.

In plain words
What is it for?
Use them when changing pyobfus, checking its current work plan, preparing releases, or handling project-specific Claude Code tasks.
Why use it?
They help an agent start with the repository's current priorities and follow its build, test, documentation, patent, and release procedures.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zhurong2020/pyobfus/claude-md.svg)](https://agentmods.dev/instructions/zhurong2020/pyobfus/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/zhurong2020/pyobfus/claude-md"><img src="https://agentmods.dev/badge/instructions/zhurong2020/pyobfus/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 22,213 This file is loaded in full into every session.
When invoked 22,213 The same file — it is already loaded in full.
Security scan A 1 finding. 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.22213 $0.22213
Opus 5 $0.11106 $0.11106
Sonnet 5 $0.04443 $0.04443
Haiku 4.5 $0.02221 $0.02221

Measured yesterday against content hash 369be14c334d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

pyobfus CLAUDE.md scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

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

workflow(08-04 tag-glob 修复仍有效)。Marketplace 手工上传已由用户完成,`curl` 核实公开 listing 已返回 `"version":"0.4.2"`。
CLAUDE.md · 492 lines

How it starts

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

pyobfus 开发约定

Modern Python Code Obfuscator - 基于 AST 的 Python 代码混淆器。

通用 agent 约定(build/test/lint、仓库结构、专利 gate 等)见根目录 AGENTS.md(规范源,工具无关)。本文件保留 Claude / 中文 / 专利申报相关的项目专属细节。

@AGENTS.md

⚡ Current pending work (cold-start 必读)

Single source of truth for current plan: docs/CURRENT_PLAN_ZH.md — 重启 session 第一份必读

docs/ROADMAP.mddocs/POST_V0.4_TODO.md 已归档为历史执行记录和细节来源。日常优先级、外部 blocker、下次工作建议都以 docs/CURRENT_PLAN_ZH.md 为准。

🟢 2026-09-06 — Core 0.5.22 + VS Code 0.4.2 已发布后的当前焦点

  • Core 0.5.22(新发布)/ MCP 0.3.10 / VS Code 0.4.2(新发布)为最新公开版本。
  • Core 0.5.22 已于 2026-09-06 发布(用户明确批准)= Python 3.14 remote-debug 硬化 advisory(触发条件方案 A:config.anti_debug 且目标 Python ≥ 3.14 → --check 加一条 compatibility_advisory 类别的 INFO advisory,提示 -X disable_remote_debug/PYTHON_DISABLE_REMOTE_DEBUG=1,诚实说明 anti-debug 注入无法关闭 PEP 768)。tag v0.5.22 经 OIDC + PEP 740 发到 PyPI (latest=0.5.22,wheel/sdist 两个 provenance endpoint 均 HTTP 200), GitHub Release 已建,Release/CI 全矩阵/CodeQL/Pages 均绿,发布前三测试根 1253+93+7 全过。验证注意点:全新无许可 venv 跑 --check 看不到这条 advisory 是正确行为——anti_debug 是 Pro 功能,无许可时 level 降级为 community;改用直接调 PreflightChecker(protection_intent=True, target_python_min="3.14") 验证发布包,三种组合(3.14 触发 / 3.12 不触发 / 无保护意图不触发)均符合设计。详见 docs/REMOTE_DEBUG_HARDENING.md
  • vscode-extension 0.4.2 已于 2026-09-06 发布(Security: "Generate pyobfus.yaml" 现在对 CLI 返回的配置路径做 realpath 规范化,要求 文件名为 pyobfus.yaml 且必须落在工作区内,拒绝符号链接逃逸)。53 测试全过、 lint/typecheck/打包干净,tag vscode-v0.4.2 + GitHub Release(附 pyobfus-0.4.2.vsix)已建,且已核实该 tag 未误触发 PyPI Release workflow(08-04 tag-glob 修复仍有效)。Marketplace 手工上传已由用户完成,curl 核实公开 listing 已返回 "version":"0.4.2"
  • ⏸️ pyobfus-mcp 0.3.11 刻意未发[Unreleased] 只有一条元数据 URL 修复, 无功能影响;而 Glama admin「Build steps」不会自动跟版,每发一版都要维护者手工 改一次,且其构建当前仍在连续失败。等下次 MCP 有实质改动再一起发。
  • Core 0.5.21 已于 2026-09-04 发布(用户明确批准 push+tag)= SARIF preflight + 两个 cross-file/preset bug 修复。tag v0.5.21 经 OIDC + PEP 740 发到 PyPI(latest=0.5.21,两个 provenance endpoint HTTP 200),全新 venv 安装已核实带 --sarif,GitHub Release 已建,Release/CI 全矩阵/CodeQL 均绿。 SARIF pyobfus --check --sarif PATH 是纯 projection,不改 detection/severity/ exit code。两个 bug:默认 cross-file 目录模式此前静默丢弃全部内容级变换(含 commercial/library 等 Pro preset),以及 --level 默认值把 preset 的 pro level 覆盖回 community——均已修(统一到 pyobfus/core/content_transforms.py
    • --level 改 tri-state)。发布后 main CI 曾因一处脆弱测试断言在单个 Py3.14 job 红一次(numeric-obfuscation 目录模式用子串 = 42 检查被随机 XOR 分量前缀 误中),已改为 AST 断言(commit 1e62674)后转绿;发布 wheel 不受影响,未重发。 验收见 docs/V0.5.21_RELEASE_PLAN.md。 Community build marker 仍是已设计但 gated 的 P2,未随 0.5.21 发布。
  • 本轮还重写了废弃的 docs/INTEGRATION_TESTING.md、修了两处文档死链、补录三个 已发布 Community flag(--numeric-obfuscation/--strip-ai-artifacts/ --incremental)到 README/llms/index。逐轮明细见 docs/CURRENT_PLAN_ZH.md
  • self-dogfooding 采用 audit/manual → N-1/N canary → wheel verification 的分阶段 路线;不把公开 Core/Pro wheel 自混淆。规范见 docs/SELF_DOGFOODING_BEST_PRACTICES.md
  • Canopii 已显示 publisher/maintainer verified;合理的 VS Code/Worker 安全加固 已完成并推送,monorepo scope、v0.3.10 stale scan 与 8 tools 未提取已报 canopii-cli#6。后续只按 CURRENT_PLAN P0 跟踪回复/重扫;14 天无回复 follow up 一次。MCP Trust Checker 登记仍待执行,Claude plugin 仍 pending。
  • 下载数据当前只到 08-31;等 pypistats 覆盖至少 09-02 再评价 09-01 SEO 发版。无新需求信号,不拆 dependency_advisory、不刷 trust score。
  • 冷启动先核实 git statusorigin/main、Actions 与 #6 实时状态;不要依赖 下方历史段冻结的旧版本/commit/外部状态。

Read the full file on GitHub · 492 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. yesterday Changed · +13 lines · +578 tokens per session 369be14c334d
  2. 2d ago Changed · +19 lines · +575 tokens per session 005865562b34
  3. 3d ago Changed · +28 lines · +552 tokens per session 288f407b0b5b
  4. 7d ago First seen · 432 lines · 20,508 tokens per session scan A 57e4e6043019

Subscribe to this mod's changes

pyobfus CLAUDE.md is an instructions file published in the GitHub repository zhurong2020/pyobfus (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 22,213 tokens to every session, about $0.1111 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

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.

openai/codex · 5,182 tokens

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).

microsoft/vscode · 6,785 tokens

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.

vercel/next.js · 7,296 tokens

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.

langchain-ai/langchain · 4,469 tokens

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).

microsoft/vscode · 5,001 tokens

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.

github/spec-kit · 7,104 tokens