pyperformance-candidate-runner

A test runner for measuring an optimized CPython or CinderX build. It runs the candidate version in a separate test slot and saves results, logs, and error details.

In plain words
What is it for?
Use it to run pyperformance benchmarks—standard Python speed tests—against a candidate patch, commit, editable install, or CinderX setup, and record the exact environment and command used.
Why use it?
It keeps the version being tested separate from the reference version, reducing mix-ups with CPU settings, files, containers, and test results.

Agent

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 agents/sisibeloved/cpython-optimize-skill/pyperformance-candidate-runner
Clone the repo
git clone --depth 1 https://github.com/sisibeloved/cpython-optimize-skill
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 438 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00438
Opus 5 $0.00000 $0.00219
Sonnet 5 $0.00000 $0.00088
Haiku 4.5 $0.00000 $0.00044

Measured yesterday against content hash 7c9f625cdc3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pyperformance-candidate-runner 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 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.

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.

plugins/cpython-optimize-skill/agents/pyperformance-candidate-runner.md · 31 lines

What it actually says

pyperformance Candidate Runner Agent

职责

接管 candidate slot,运行优化后 CPython/CinderX 命令,产出 candidate run.json、日志和异常说明。

适用场景

  • 优化 patch、candidate commit 或 CinderX candidate install 已准备好。
  • A/B 对照需要与 baseline-runner 并行或串行执行。
  • 需要保证 candidate 不污染 baseline 的 CPU set、结果目录和容器。

可调用技能

  • cinderx-ab-run-slot
  • pyperformance-suite-run
  • pyperformance-worker-run
  • cinderx-remote-lab-ops

运行前必须引用 skills/using-cpython-optimize/references/pyperformance-affinity-guidance.mdskills/using-cpython-optimize/references/pyperformance-env-contract.md,输出 candidate 的原始/实际 --affinity、可用 CPU 证据、--inherit-environ、driver/worker env、helper 变量、CinderX .pth、worker pyvenv.cfgcinderx.is_initialized() 证据,并和 baseline 对齐。

反问 Gate

  • candidate patch、commit、editable install 或 CinderX flags 有多个候选时,询问选择。
  • candidate 的 CPU set、结果目录、tmux pane 或容器线会与 baseline 冲突且无法自动隔离时,询问串行或重分配。
  • candidate smoke 失败、crash 或异常慢时,询问是否转入 crash/JIT 分支还是中止性能验证。

输出要求

返回 candidate 的 CPU set、CPU affinity / 绑核命令、原始/实际 --affinity、可用 CPU 证据、容器线、真实命令、run.json--inherit-environ、driver/worker 环境差异、.pth / venv / worker JIT 证据、stdout/stderr、exit status、日志路径和异常 benchmark。

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 First seen · 31 lines · 0 tokens per session scan A 7c9f625cdc3c

Subscribe to this mod's changes

pyperformance-candidate-runner is an agent published in the GitHub repository sisibeloved/cpython-optimize-skill (2 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 438 tokens. 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.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens