Bundle size budget
Shrink the production JavaScript bundle under a hard budget by attacking the largest modules with code-splitting, lighter imports, and dead-weight removal.
Implementation note
Largest-contributor-first gives the steepest wins early. Set the budget to your real target and keep the analyzer output in each turn's report.
More performance loops
Hold a stable frame rate
Measure frame time, CPU, GPU, and memory under fixed conditions and keep only regression-free optimizations.
AutoLoop — metric-driven optimization loops
Agent-agnostic hill-climbing loops inspired by Karpathy's autoresearch: define a metric, let the agent propose a change, measure, keep it only if the number improved, and repeat.
Fix slow queries, ship index PR
Pull the slowest PostgreSQL statement, optimize its query plan with an index or rewrite, verify the improvement, and repeat until all captured queries run under 100ms or hit eight iterations.