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

AgentRoom: Desktop app visualizes AI coding agents as pixel characters with session search
Tools

AgentRoom: Desktop app visualizes AI coding agents as pixel characters with session search

AgentRoom is a desktop app that turns Claude Code, Codex, and Gemini sessions into animated pixel characters in a virtual office, with full-text semantic search across all sessions. The repo includes a standalone Claude Code skill for searching past sessions from any conversation.

OpenClawRadar
Detecting Silent Tool Failures in AI Coding Agents with Vibeyard
Tools

Detecting Silent Tool Failures in AI Coding Agents with Vibeyard

Vibeyard is a tool that detects when AI coding agents experience silent tool failures—where agents fall back to alternative strategies without alerting developers—and surfaces these inefficiencies during sessions. It can suggest fixes to prevent repeated inefficient workflows.

OpenClawRadar
🦀
Tools

Claude Code vs Codex: 36 vs 28 files, $2.50 vs $2.04, infinite loop caught — real-world comparison

A developer runs the same two tasks on Claude Code and Codex (Cursor): PR triage bot and real-time code review UI. Results: 36 vs 28 files, $2.50 vs $2.04 cost, Claude produced fewer TypeScript errors, Codex had an infinite React loop.

OpenClawRadar
Antibody System: Out-of-Band Watchdog for OpenClaw Agents
Tools

Antibody System: Out-of-Band Watchdog for OpenClaw Agents

The Antibody System is an open-source watchdog that runs on a separate machine and monitors OpenClaw agents over SSH, implementing tiered responses from detection to service recovery. It's designed to survive failures that take down the primary agent.

OpenClawRadar