Auto-optimize: A Claude Code Plugin for Autonomous Performance Optimization

✍️ OpenClawRadar📅 Published: April 14, 2026🔗 Source
Auto-optimize: A Claude Code Plugin for Autonomous Performance Optimization
Ad

auto-optimize is a Claude Code plugin that automates the performance optimization cycle: profile, find bottlenecks, write fixes, benchmark, and repeat. The developer, a performance engineer working on a high-performance Java hash table, created it to eliminate manual optimization work.

How It Works

The plugin runs an autonomous loop per experiment with these steps:

  • Profile — runs async-profiler and parses flamegraph output
  • Plan — structured reasoning before touching code, including Step-Back (identifying bottleneck type abstractly), Chain-of-Thought (enumerating strategies with trade-off analysis), and Pre-mortem (assuming the plan already failed to identify potential issues)
  • Implement — writes and applies the change
  • Benchmark — runs JMH and compares against baseline
  • Reflect — writes reflexion.md documenting what was surprising, what failed, and what to try next

Each subsequent experiment reads reflexion.md before profiling to avoid reproposing previously dropped experiments. Without this, the agent would "repropose the same dropped experiment two iterations later with equally confident reasoning — it had no way to know what it had already learned."

Ad

Sub-agent Architecture

Each experiment runs in a dedicated sub-agent. Raw profiling output, disassembly, diffs, and benchmark logs never touch the main context. The orchestrator only sees structured return values: what changed, what the numbers showed, and what to try next.

This architecture prevents context pollution: "When the main context fills up, agent behavior degrades in subtle ways — outputs still look coherent, but it starts reasoning about the wrong problem. Moving everything into sub-agents keeps the orchestrator clean indefinitely."

Installation and Usage

Install with:

claude plugin marketplace add bluuewhale/auto-optimize
claude plugin install auto-optimize@auto-optimize

Then run: /auto-optimize

You provide a goal, a benchmark command, and a success threshold. In one case, the developer prompted the plugin once and got a 27% faster hash table across all benchmark scenarios in approximately 3 hours.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

New Tool Injects Instructions into Claude Code Based on Context Usage
Tools

New Tool Injects Instructions into Claude Code Based on Context Usage

A developer created a tool that monitors context usage and injects custom instructions to prevent mid-task compaction disasters.

OpenClaw Radar
Steerling-8B: An Interpretable Language Model with Token-Level Attribution
Tools

Steerling-8B: An Interpretable Language Model with Token-Level Attribution

Guide Labs released Steerling-8B, an 8-billion-parameter language model trained on 1.35 trillion tokens that can trace any generated token to input context, human-understandable concepts, and training data sources. The model achieves competitive performance with models trained on 2-7× more data.

OpenClawRadar
Browser-native real-time coherence control system for Claude with SDE bands and Kalman filtering
Tools

Browser-native real-time coherence control system for Claude with SDE bands and Kalman filtering

A developer has built a real-time coherence control harness that runs entirely as a Claude artifact in the browser, treating conversation as a stochastic process with live Monte Carlo SDE paths, dual Kalman filtering, and behavioral signal detection.

OpenClawRadar
Claude wrote 3,000 lines of code instead of importing pywikibot — a case study in AI agents ignoring existing libraries
Tools

Claude wrote 3,000 lines of code instead of importing pywikibot — a case study in AI agents ignoring existing libraries

A developer tasked Claude Code (Opus 4.7) with fixing typos on Fandom wikis. The model wrote ~3,000 lines of Python reimplementing pywikibot, mwparserfromhell, and RETF rules rather than importing them. The post explores why this happens and how a two-minute search reduced the codebase to 1,259 lines.

OpenClawRadar