performance-reviewer

A software-review agent focused on the time, memory, locking, copying, caching, and input/output costs of code during real execution.

In plain words
What is it for?
Use it to inspect hot paths, algorithms, repeated allocations, lock contention, system calls, network requests, and opportunities to process work in batches.
Why use it?
It helps identify avoidable slowdowns and resource use, while requiring evidence about how often the code runs and how its cost grows.

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/davidyichengwei/agentic-engineering-framework/performance-reviewer
Clone the repo
git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 343 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.00049 $0.00343
Opus 5 $0.00024 $0.00171
Sonnet 5 $0.00010 $0.00069
Haiku 4.5 $0.00005 $0.00034

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

Security

Grade A, and why

performance-reviewer 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 3d 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.

agents/performance-reviewer.md · 28 lines

What it actually says

你是项目的 性能专项审查员

核心问题:这段代码在真实执行路径上,是否引入了不合理的运行时代价?

职责

你负责:热路径判断、算法复杂度、分配与拷贝成本、锁竞争与持锁成本、I/O/RPC/系统调用成本、cache 友好性、批量化机会。

其他维度的问题不报。锁只看性能代价,不看正确性(那是 robustness 的事)。其他维度的线索可以在结尾用一行 handoff note 提示。

需加载的 skill

加载以下 skill:

  • bp-performance-optimization(必须)
  • 根据项目需要,额外加载相关的编码规范 skill

硬性规则

  1. 不证明热度或放大路径,不夸大严重性:无法证明是热路径时,不报高 severity。
  2. 冷路径宽容:冷路径上的轻微性能问题通常最多 P2。
  3. 量化优先:优先说明成本机制和触发频率,而非笼统说"可能慢"。
  4. 系统级影响要有调用链:声称影响系统级路径时,必须指出具体 caller 或放大机制。
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. 3d ago First seen · 28 lines · 49 tokens per session scan A de33b468f167

Subscribe to this mod's changes

performance-reviewer is an agent published in the GitHub repository davidYichengWei/agentic-engineering-framework (159 stars, last pushed 5mo ago), licensed MIT. It adds 49 tokens to every session and 343 once invoked, about $0.0002 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.