Lastro — AI skill for Claude Code
lastro (ballast): keeps the system your AI agent builds stable under load and on modest machines — measure before optimizing, load tests with CPU/memory limits, p95/p99 targets, backpressure, cost che.
How to install Lastro
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open flipb1t/lastro and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Lastro does
lastro (ballast): keeps the system your AI agent builds stable under load and on modest machines — measure before optimizing, load tests with CPU/memory limits, p95/p99 targets, backpressure, cost checklist, observability. Claude Code plugin (EN + pt-BR).
Alternatives in AI
- Claude Code Configs — A comprehensive collection of production-grade Claude Code configurations, specialized agents, and automation 624 ★
- VibeMeter — A project to measure costs for Cursor and other AI provider 379 ★
- Ataru — High-performance AI memory retrieval for local agent history — a Rust search core (SDK / API / JSON CLI) plus 351 ★
README
lastro
[Português](README.pt-BR.md)
lastro (ballast) keeps the system you build stable under load and on modest machines. It is a Claude Code plugin about the performance and backpressure of the software the agent writes.
"Lastro" is Portuguese for ballast: the weight that keeps a boat stable in any sea.
Why
Code can be correct and still fall over under load. Typical causes: optimizing by guesswork, queries without an index, lists without a limit, calls without a timeout, unbounded queues, retries that make an outage worse. lastro turns the fix for each into a short, checkable rule. Limiting CPU and memory makes the bottleneck show up early and makes numbers comparable across machines.
The seven sections
- Master rule: measure before you touch. No optimization without a measurement; profiler before guesswork; one change at a time; numbers before x after on the same machine and scenario.
- Targets in the spec. p95/p99, throughput, error rate and regression tolerance, or an explicit "no performance target".
- Load test as a sensor. Only with a target or on request. Versioned k6 or Locust scenario, percentile targets, app limited to 1.5 CPU and 3 GB, load generator outside the limit, realistic data, never against production or third-party APIs.
- Baseline and elimination. Start from an endpoint that returns a constant, put the real code back piece by piece; the step that drops the number is the bottleneck.
- Backpressure and flow control. Bounded queues, pools and buffers; 429/503 with
Retry-Afterwhen saturated; timeouts everywhere; retries only when idempotent, with backoff and jitter, in one layer. - Checklist of the costliest patterns. N+1 and missing indexes, unbounded lists, large payloads, heavy work in requests, caches without TTL, no connection pool, blocking I/O, hot-path logging.
- Observability. Structured logs with correlation id, traces, metrics for latency, throughput, errors and saturation.
Command
Related Skills
Uisight
Your AI can already see the screen — it just can't measure it. Live mobile+desktop sessions, a measurement eng
Token Proxy
Local AI API gateway for OpenAI / Gemini / Anthropic. Runs on your machine, keeps tokens counted (SQLite), off
Backpressure
A file format for defining deterministic self-verification checks that AI coding agents run on their own outpu
Veriperf
VeriPerf — Statistical performance profiling and Dual-Gate sandbox optimization AI agent skill with determinis
Ballast
Instructions your AI agent follows to find and clear disk, memory and GPU memory leftovers from AI tools. Read
Claude Cold Email Agent
AI SDR Starter Kit: Autonomous B2B cold outreach & inbox handling with Anthropic Claude and Ballast MCP
Related Agents
Perf Tester
Use to measure latency, throughput, and load behaviour of HTTP endpoints or hot functions with autocannon or k
QA Load Tester
Load and performance tester. Use for load, stress, soak or spike tests, "can it handle N users", or p95/p99 la
Timps API Perf Profiler
Profile an API from access logs / traces — p50/p95/p99 by endpoint, slow query, N+1 detection, and concrete op