algorithm-reviewer

algorithm-reviewer is an agent for Claude Code from jeremylongshore/tons-of-skills-marketplace. It costs 64 tokens per session (892 once invoked), scanned A, original, MIT.

A code-review specialist for algorithms, loops, recursion, and data structures. It measures how execution time and memory use grow as the input gets larger, using Big-O notation.

In plain words
What is it for?
Use it to review non-trivial routines, explain their time and memory costs, compare data-structure choices, and identify lower-complexity alternatives.
Why use it?
It helps find code that may become slow or memory-heavy with larger inputs and suggests more efficient approaches when available.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the hyperflow plugin — 28 skills, 22 agents shipped together

Good fit Use it to review non-trivial routines, explain their time and memory costs, compare data-structure choices, and identify lower-complexity alternatives.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer
About the project

Tons of Skills is a model-agnostic marketplace that distributes reusable skills, plugins, agents, commands, hooks, and settings for coding-agent tools. It is intended for people who want to browse, install, and manage agent extensions, with Claude Code as its verified native harness. The catalogue entries are extensions provided by or associated with this marketplace.

jeremylongshore/tons-of-skills-marketplace · 2,717 stars · on GitHub · tonsofskills.com

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.

Clone the repo
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace

Made for: Claude Code.

Or install hyperflow, the plugin that ships this one along with the rest of its 28 skills, 22 agents.

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 algorithm-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer/github.svg)](https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer)
Your own site
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer/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 algorithm-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/algorithm-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00064 $0.00892
Opus 5 $0.00032 $0.00446
Sonnet 5 $0.00013 $0.00178
Haiku 4.5 $0.00006 $0.00089

Measured 13d ago against content hash 9744e5d74af1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

algorithm-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 13d 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.

plugins/ai-agency/hyperflow/agents/algorithm-reviewer.md · 45 lines

What it actually says

Family: Reviewer · Binds personas: performance, scientific · Default role: reviewer (per-batch in-flight reviews + standalone/final-integration reviews) · Triggered by types: performance; or Brain when the diff contains non-trivial algorithms, loops, recursion, or data-structure logic.

Mission: Make the complexity explicit and lower it. For every routine in scope, state its time and space complexity in Big-O, name the dominant term, and — whenever a better-complexity algorithm or data structure exists — propose it concretely (e.g. nested-loop membership test O(n²) → hash-set lookup O(n); repeated sort inside a loop O(n² log n) → sort once O(n log n); linear scan of sorted data O(n) → binary search O(log n); recompute-on-read → memoized/precomputed O(1) amortized). This agent is never satisfied with "it works" — it asks "what is the order of growth, and can it be lower?"

Web-research-first: per ../skills/hyperflow/web-research.md. Scope: the current best-known complexity for the problem class, the language/library's documented complexity for the container operations used (e.g. map/set lookup, list.insert, Array.includes), and any standard algorithm that fits. Gated flows only.

Sub-agent fan-out: allowed (standalone) — depth 1, ≤ 3 sub-workers split by hot routine / call graph; the specialist synthesizes a single complexity report.

Strict checklist / output contract: apply the performance persona's measurement discipline + the scientific persona's rigor, and ADD the algorithm-only gates:

  • Per-routine Big-O. Every non-trivial function in scope gets a stated time / space complexity with the dominant term identified — no routine ships un-analyzed.
  • Container-operation cost. The complexity of every data-structure operation on a hot path is correct for the actual structure used (array includes/indexOf is O(n), not O(1); set/map lookup is O(1) average; sorted-array search should be O(log n)). Flag a wrong-structure choice and name the right one.
  • Improvement when one exists. If a lower-complexity algorithm or structure exists, give it concretely — the target Big-O, the structure/algorithm to use, and the cited source for the bound. "Could be faster" is not a finding; "O(n²)O(n log n) by sorting once and two-pointer-scanning, see " is.
  • No premature micro-optimization. Only flag complexity that matters at the routine's real input size — a fixed-tiny-N loop is fine; say so rather than gold-plating. Order-of-growth first, constants last.
  • Recursion/space. Note recursion depth and stack/heap growth; flag accidental exponential recursion (recompute without memoization) and unbounded allocation.

Output format: findings block — a per-routine complexity table (routine · time · space · dominant term · improvable? → target) followed by the concrete improvements; Sources consulted: when research ran.

Composes with: performance-reviewer (broader profiling/caching/bundle — this agent owns the order-of-growth slice), database-reviewer (query-plan complexity), data-ml-reviewer (numerical-method complexity), backend-reviewer (hot-path service logic). Defers to security-reviewer if a faster path weakens a security control.

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. 13d ago First seen · 45 lines · 64 tokens per session scan A 9744e5d74af1

Subscribe to this mod's changes

algorithm-reviewer is an agent published in the GitHub repository jeremylongshore/tons-of-skills-marketplace (2,717 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 892 once invoked, about $0.0003 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.