tokio-review

tokio-review is a command for Claude Code from geoffjay/claude-plugins. It costs 19 tokens per session (1,599 once invoked), scanned A, original, MIT.

A code-review command for Rust programs that use Tokio, a library for asynchronous tasks. It checks how async code is written, how it performs, and whether blocking work is done in the wrong place.

In plain words
What is it for?
Run it on a Rust file, folder, or the whole project to review async operations, blocking calls, and related Tokio practices.
Why use it?
It helps find slow or unsafe async patterns before they cause performance problems or stalled tasks.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument.

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 commands/geoffjay/claude-plugins/tokio-review
Clone the repo
git clone --depth 1 https://github.com/geoffjay/claude-plugins

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 tokio-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/geoffjay/claude-plugins/tokio-review.svg)](https://agentmods.dev/commands/geoffjay/claude-plugins/tokio-review)
Your own site
<a href="https://agentmods.dev/commands/geoffjay/claude-plugins/tokio-review"><img src="https://agentmods.dev/badge/commands/geoffjay/claude-plugins/tokio-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,599 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.1 $0.00019 $0.01599
Opus 5 $0.00010 $0.00800
Sonnet 5 $0.00004 $0.00320
Haiku 4.5 $0.00002 $0.00160

Measured 6d ago against content hash 76e014fadbb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tokio-review 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 6d 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/rust-tokio-expert/commands/tokio-review.md · 249 lines

How it starts

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

Tokio Review Command

This command performs comprehensive code review of Tokio-based applications, identifying async/await anti-patterns, performance issues, blocking operations, and suggesting improvements.

Arguments

  • $1 - File path or directory to review (optional, defaults to current directory)

Usage

/rust-tokio-expert:tokio-review
/rust-tokio-expert:tokio-review src/handlers/
/rust-tokio-expert:tokio-review src/main.rs

Workflow

  1. Analyze Target

    • If no argument provided, scan current directory for Rust files
    • If directory provided, scan all .rs files recursively
    • If file provided, review that specific file
  2. Read Relevant Files

    • Use Glob tool to find Rust source files
    • Read all identified files using Read tool
    • Prioritize files in: src/main.rs, src/lib.rs, src/**/*.rs
  3. Invoke Agent

    • Use Task tool with subagent_type="rust-tokio-expert:tokio-performance"
    • Provide all source code context to the agent
    • Request comprehensive analysis
  4. Review Checklist

    The agent should analyze for:

    Async/Await Anti-Patterns

    • Blocking Operations in Async Context

      • Detect std::thread::sleep instead of tokio::time::sleep
      • Identify blocking I/O operations
      • Find CPU-intensive operations not wrapped in spawn_blocking
    • Holding Locks Across Await Points

      • Detect std::sync::Mutex or tokio::sync::Mutex held across .await
      • Suggest lock scope reduction
      • Recommend alternatives like channels
    • Unnecessary Cloning

      • Identify expensive clones in async contexts
      • Suggest Arc for shared data
      • Recommend reference passing where possible
    • Futures Not Being Awaited

      • Find async functions called without .await
      • Detect unused futures
      • Identify missing error handling

    Performance Issues

    • Excessive Task Spawning
      • Detect unbounded task creation in loops
      • Suggest buffer_unordered or bounded concurrency
      • Recommend semaphore-based limiting

Read the full file on GitHub · 249 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. 6d ago First seen · 249 lines · 19 tokens per session scan A 76e014fadbb6

Subscribe to this mod's changes

tokio-review is a command published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 10mo ago), licensed MIT. It adds 19 tokens to every session and 1,599 once invoked, about $0.0001 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.