Memory Usage Optimizer
This loop automatically analyzes and optimizes the codebase to reduce memory consumption. It iteratively identifies high-memory components, applies targeted…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Memory Usage Optimizer" loop.
Goal: Lower memory usage
Max iterations: 10
Between iterations run: memory benchmark
Exit when: Memory usage meets or falls below the target threshold specified in the kickoff prompt
Start the Memory Usage Optimizer loop. First, run the 'memory benchmark' command to assess current memory usage. Then, identify the most memory-intensive parts of the codebase and apply one optimization (e.g., caching, lazy loading, efficient data structures). Re-run the benchmark to check progress. Continue this cycle up to 10 times or until memory usage meets the target of [X MB/percentage reduction].
Self-pace this loop. After each iteration, run `memory benchmark` and evaluate the output, and only continue if the exit condition is not met (Memory usage meets or falls below the target threshold specified in the kickoff prompt). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.