mcp-server-langgraph: Command for Claude Code

.claude/commands/benchmark.md

benchmark is a command for Claude Code from vishnu2kmohan/mcp-server-langgraph. It costs 6 tokens per session (3,856 once invoked), scanned A, original, MIT.

A command for running performance benchmarks, which measure how quickly and efficiently parts of a program work.

In plain words
What is it for?
Use it to run the full or quick benchmark suite, review speed and resource metrics, compare results with saved baselines, and summarize regressions.
Why use it?
It provides measurements and comparisons that can reveal slowdowns in agent responses, model calls, authorization, database queries, or context loading.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is vishnu2kmohan/mcp-server-langgraph's own configuration. It tells Claude Code how to work on mcp-server-langgraph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-server-langgraph configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/detect_benchmark_regressions.py \.

Reuse

Borrowing it

Nothing to install: this file belongs to vishnu2kmohan/mcp-server-langgraph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vishnu2kmohan/mcp-server-langgraph/main/.claude/commands/benchmark.md
Clone the repo
git clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraph

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 benchmark

README.md
[![agentmods](https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/benchmark/github.svg)](https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/benchmark)
Your own site
<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/benchmark"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/benchmark/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 benchmark

Your own site · 80×15
<a href="https://agentmods.dev/commands/vishnu2kmohan/mcp-server-langgraph/benchmark"><img src="https://agentmods.dev/badge/commands/vishnu2kmohan/mcp-server-langgraph/benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,856 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.00006 $0.03856
Opus 5.5 $0.00002 $0.01542
Sonnet 5.5 $0.00001 $0.00771
Haiku 4.5 $0.00001 $0.00386

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

Security

Grade A, and why

benchmark 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 1mo 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.

.claude/commands/benchmark.md · 576 lines

How it starts

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

Run Performance Benchmarks

Usage: /benchmark or /benchmark --quick

Purpose: Execute performance benchmarks and analyze results


🎯 What This Command Does

Runs the project's performance benchmark suite using the existing Makefile command:

make benchmark

This executes benchmarks for:

  • Agent response time
  • LLM call latency
  • Authorization check performance
  • Database query performance
  • Context loading speed

📊 Execution Steps

Step 1: Run Benchmarks

Execute the benchmark suite:

# Full benchmark suite
make benchmark

# View benchmark configuration
cat tests/benchmark/config.yaml

Step 2: Parse Results

Analyze benchmark output:

# Benchmark results are typically in:
# - pytest output (console)
# - .benchmark/ directory (if configured)

# Look for metrics like:
# - ops/sec (operations per second)
# - mean, median, p95, p99 latencies
# - memory usage
# - CPU usage

Step 3: Compare with Baselines

# If baseline metrics exist
if [ -f "tests/regression/baseline_metrics.json" ]; then
    echo "Comparing with baseline..."
    # Check for regressions (>20% slower)
fi

Step 4: Generate Summary

Provide user with formatted summary:

=== Performance Benchmark Results ===

Benchmark Suite: Agent Performance
Executed: YYYY-MM-DD HH:MM:SS

Results:
┌─────────────────────────────┬──────────┬─────────┬─────────┐
│ Benchmark                   │ Mean     │ P95     │ Status  │
├─────────────────────────────┼──────────┼─────────┼─────────┤
│ agent_response              │ 2.3s     │ 4.5s    │ ✅ PASS │
│ llm_call                    │ 1.8s     │ 3.2s    │ ✅ PASS │
│ authorization_check         │ 25ms     │ 45ms    │ ✅ PASS │
│ database_query              │ 15ms     │ 30ms    │ ✅ PASS │
│ context_loading             │ 120ms    │ 200ms   │ ✅ PASS │
└─────────────────────────────┴──────────┴─────────┴─────────┘

Baseline Comparison:
- No regressions detected ✅
- 2/5 benchmarks improved (context_loading: -15ms)

Memory Usage:
- Peak: 256 MB
- Average: 180 MB

Overall Status: ✅ ALL BENCHMARKS PASSING

Read the full file on GitHub · 576 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. 1mo ago First seen · 576 lines · 6 tokens per session scan A de06674579dc

Subscribe to this mod's changes

benchmark is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 2d ago), licensed MIT. It adds 6 tokens to every session and 3,856 once invoked, about $0.0000 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.