loadtest

loadtest is a command for Claude Code from OXI-717/ai-native-toolkit. It costs 31 tokens per session (938 once invoked), scanned A, original, MIT.

A command for running a time-limited HTTP load test with Locust, a tool that simulates multiple users making web requests.

In plain words
What is it for?
Use it to test a URL with configurable users, ramp-up rate, duration, request spacing, and authentication, then generate a Markdown report.
Why use it?
It measures how a web service behaves under concurrent traffic and reports errors and response-time percentiles such as p50, p95, and p99.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pentest plugin — 2 skills, 2 commands shipped together

Good fit Use it to test a URL with configurable users, ramp-up rate, duration, request spacing, and authentication, then generate a Markdown report.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/oxi-717/ai-native-toolkit/loadtest
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/OXI-717/ai-native-toolkit

Made for: Claude Code.

Or install pentest, the plugin that ships this one along with the rest of its 2 skills, 2 commands.

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 loadtest

README.md
[![agentmods](https://agentmods.dev/badge/commands/oxi-717/ai-native-toolkit/loadtest/github.svg)](https://agentmods.dev/commands/oxi-717/ai-native-toolkit/loadtest)
Your own site
<a href="https://agentmods.dev/commands/oxi-717/ai-native-toolkit/loadtest"><img src="https://agentmods.dev/badge/commands/oxi-717/ai-native-toolkit/loadtest/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 loadtest

Your own site · 80×15
<a href="https://agentmods.dev/commands/oxi-717/ai-native-toolkit/loadtest"><img src="https://agentmods.dev/badge/commands/oxi-717/ai-native-toolkit/loadtest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 938 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.00031 $0.00938
Opus 5.5 $0.00012 $0.00375
Sonnet 5.5 $0.00006 $0.00188
Haiku 4.5 $0.00003 $0.00094

Measured 2mo ago against content hash 8d34859652f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loadtest 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 2mo 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/pentest/commands/loadtest.md · 72 lines

How it starts

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

/loadtest — HTTP load test

Runs the loadtest skill against a URL. Locust-based, time-bounded, bounded-concurrency.

Arguments

Input: $ARGUMENTS

  • <url> (required) — base URL.
  • --users N — concurrent virtual users. Default 20.
  • --spawn-rate R — users spawned per second. Default 2.
  • --duration Tm — run length, e.g. 2m, 5m, 30m. Default 2m.
  • --wait-min S / --wait-max S — per-user wait between requests, in seconds. Default 1 / 2 (≈ 0.5–1 req/s/user). Set both to 0 to remove the cap (advanced — use with care, may overwhelm small targets and balloon serverless billing).
  • --lang ru|en — report language. Default: match user's language.
  • --into-cwd — write artifacts to {cwd}/pentest-output/… instead of the default non-repo root (${PENTEST_OUTPUT_DIR:-$HOME/cc/_pentest}).

Flow

  1. Parse URL and load profile from $ARGUMENTS.
  2. Print billing warning if the URL looks serverless (Vercel / Cloudflare Workers / AWS Lambda / GCP Cloud Run).
  3. Ask user for endpoints + auth method if not obvious from bundle. For Telegram mini apps, read the initData from secrets.env.
  4. Invoke loadtest skill:
    • Render locustfile.py from template.
    • Smoke-check each endpoint with 1 request.
    • Run Locust headless for the requested duration.
    • Generate REPORT.md from CSV stats.
  5. Print the absolute path to REPORT.md and report.html (Locust's own dashboard).

Examples

/loadtest https://api.example.com
/loadtest https://api.example.com --users 50 --duration 5m
/loadtest https://target.example --users 10 --duration 1m --lang ru
/loadtest https://api.example.com --users 200 --duration 10m --wait-min 0 --wait-max 0

Rules

  • Never run without explicit duration and user count.
  • Always print the billing warning for serverless targets before starting.
  • Stop if error rate crosses 20% or the target returns consecutive 5xx for > 30 s.
  • Default per-user wait is 1–2s (caps to ~10–20 RPS at 20 users). Only set --wait-min 0 --wait-max 0 if user explicitly accepts the risk.
  • Never load-test an endpoint you haven't smoke-tested first.

Read the full file on GitHub · 72 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. 2mo ago Changed · +1 lines 8d34859652f4
  2. 3mo ago First seen · 71 lines · 31 tokens per session scan A 60456ea59765

Subscribe to this mod's changes

loadtest is a command published in the GitHub repository OXI-717/ai-native-toolkit (9 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 938 once invoked, about $0.0001 per session on Opus 5.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.

Related

loadtest compared with commands from other repositories

loadtest next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loadtestOXI-717/ai-native-toolkitCommand91mo agoMITA31Claude Code
review-branchdamusix/atomic-claudeCommand117yesterdayMITA35Claude Code
diff-reviewcoco-research/cocoCommand3233d agoApache-2.0A11Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
refactorRchGrav/claudeboxCommand1.2k2mo agoMITA9Claude Code
initazrtydxb/procoderCommand21223d agoApache-2.0A16Claude Code