European-Parliament-MCP-Server: Agent for Claude Code

.github/agents/performance-optimizer.md

performance-optimizer is an agent for Claude Code from Hack23/European-Parliament-MCP-Server. It costs 39 tokens per session (1,291 once invoked), scanned B, original, Apache-2.0.

A review persona for improving the speed and reliability of a Node.js service, a program built with JavaScript on the server. It focuses on response time, caching, memory, parallel work, monitoring, and safe failure behavior.

In plain words
What is it for?
Use it to review or improve API clients, caching and rate limits, timeouts, backpressure, performance tests, monitoring, and graceful degradation in the European Parliament MCP Server.
Why use it?
It helps find slow requests, uncontrolled memory use, unsafe asynchronous work, excessive load, and performance choices that conflict with security or privacy rules.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is Hack23/European-Parliament-MCP-Server's own configuration. It tells Claude Code how to work on European-Parliament-MCP-Server 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 European-Parliament-MCP-Server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Hack23/European-Parliament-MCP-Server. 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/Hack23/European-Parliament-MCP-Server/main/.github/agents/performance-optimizer.md
Clone the repo
git clone --depth 1 https://github.com/Hack23/European-Parliament-MCP-Server

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 performance-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hack23/european-parliament-mcp-server/performance-optimizer/github.svg)](https://agentmods.dev/agents/hack23/european-parliament-mcp-server/performance-optimizer)
Your own site
<a href="https://agentmods.dev/agents/hack23/european-parliament-mcp-server/performance-optimizer"><img src="https://agentmods.dev/badge/agents/hack23/european-parliament-mcp-server/performance-optimizer/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 performance-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/agents/hack23/european-parliament-mcp-server/performance-optimizer"><img src="https://agentmods.dev/badge/agents/hack23/european-parliament-mcp-server/performance-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 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,291 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00039 $0.01291
Opus 5.5 $0.00016 $0.00516
Sonnet 5.5 $0.00008 $0.00258
Haiku 4.5 $0.00004 $0.00129

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

Security

Grade B, and why

performance-optimizer scanned grade B with 1 finding 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

tools: ["*"]
.github/agents/performance-optimizer.md · 91 lines

How it starts

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

You are the Performance Optimizer for the European Parliament MCP Server — owner of latency, throughput, and memory budgets across 62 MCP tools.

📋 Required Context Files

Project context:

  • ARCHITECTURE.md, PERFORMANCE_GUIDE.md, PERFORMANCE_MONITORING.md — Performance architecture
  • src/clients/ep/baseClient.ts — API client with caching/rate limiting
  • src/config.ts — EP_API_URL, EP_REQUEST_TIMEOUT_MS, EP_CACHE_TTL, EP_RATE_LIMIT
  • .github/skills/performance-optimization/SKILL.md
  • .github/skills/testing-strategy/SKILL.md

ISMS context:

🔒 ISMS Policy Alignment

Performance control Policy Expression
Timeout everywhere Secure Development Policy EP_REQUEST_TIMEOUT_MS always applied
Cache TTL caps Privacy Policy ≤ 15 min for personal data, longer for public data
Backpressure Information Security Policy Rate limiter + queue bounds
Load-shed on saturation Business Continuity Plan Circuit breaker + degraded response
Observability Secure Development Policy Metrics + structured logs for latency / memory
No secrets in profiles/logs Privacy Policy / Cryptography Policy Redact in flame graphs + metrics

Core Expertise

  • API Response: <200 ms P95, <500 ms P99, <1 s P99.9
  • Caching: LRU (lru-cache, 15 min TTL, 500 entries default), HTTP conditional (ETag), cache invalidation keys, segmented by category
  • Memory: <512 MB steady state, leak detection (--heapsnapshot-near-heap-limit), GC tuning
  • Async: Promise.all for parallel, avoid await-in-loops, event-loop lag monitoring, worker threads for CPU-bound work
  • Profiling: node --prof, clinic.js, flame graphs, V8 diagnostics, perf_hooks
  • Streaming: Node streams for >1 MB responses, backpressure-aware pipelines
  • Load-shedding: Circuit breaker + graceful degradation — cached fallback where safe
  • Observability: p50/p95/p99 latency, cache-hit ratio, queue depth, memory RSS

Read the full file on GitHub · 91 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 · 91 lines · 39 tokens per session scan B cc6e7866f2ca

Subscribe to this mod's changes

performance-optimizer is an agent published in the GitHub repository Hack23/European-Parliament-MCP-Server (29 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 1,291 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

FAI Debug Expert

Systematic debugging specialist — reproduce-isolate-fix methodology, binary search isolation, stack trace interpretation, Application Insights transaction tracing, and LLM-specific issue diagnosis.

frootai/frootai · 37 tokens

integration-prober

External service integration verifier. Validates that the application connects to real services — not mocks, stubs, or deprecated endpoints. Checks database connectivity, API compatibility, and credential configuration. Read-only — produces findings, never code.

irahardianto/awesome-agv · 49 tokens

platform-measurer

Runs the local harness census and reports which lanes are carrying, looping, idle or unreachable, with the method sha and the receipt path. Delegate to it when work appears stuck, when a background job may be failing silently, or when the owner asks what is actually running on this machine.

CSOAI-ORG/councilof-ai · 61 tokens

FAI Deno Expert

Deno runtime specialist — TypeScript-first with permissions model, Deno KV for edge state, Deno Deploy for serverless, secure-by-default AI service development.

frootai/frootai · 39 tokens

backend-debugging-agent

Agent "backend-debugging-agent" from girijashankarj/cursor-handbook, covering debugging agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

api-mapper

Wave 2 agent: documents API endpoints in a module or router group. Stores decision memories for each endpoint with route, auth, and shape details. Links endpoints with DEPENDSON, LEADSTO, and PARTOF relationships.

cogniplex/codemem · 50 tokens