This loop analyzes application error logs to identify and fix recurring errors, reducing their frequency over time through iterative debugging and targeted code improvements.
Reduce recurring errors detected in application logs to meet a target threshold
Run this loop in your coding agent to systematically identify, prioritize, and resolve recurring errors in application logs until reaching the desired error count target.
Initialize Loop
Provide the target error count and log file location to begin
Analyze Logs
Agent examines recent error logs to identify patterns and recurring issues
Fix Errors
Agent creates and implements fixes for identified recurring errors
Verify Progress
Agent re-runs log analysis to check if error count meets target
Initialize loop by receiving user input (target error count, log source)
Execute check command to analyze current error logs
If exit condition met, terminate loop successfully
Debugging
This loop guides you through reproducing a reported bug, identifying its root cause, implementing a fix, and verifying the solution through automated testing. The agent will iteratively work to resolve the issue while maintaining system integrity.
Debugging
A coding agent loop designed to diagnose and resolve production incidents through iterative investigation, targeted fixes, and continuous health monitoring until system stability is restored.
Debugging
A systematic loop for identifying the root cause of code issues, bugs, or unexpected behavior through iterative investigation and analysis, ensuring developers address foundational problems rather than surface-level symptoms.
Identify top recurring error patterns from analysis results
Create targeted fix plan prioritizing most frequent errors
Implement code changes to address each recurring error
Test fixes against error reproduction scenarios
Return to step 2 for next iteration if target not yet met
Start the "Error Log Reduction" loop. Goal: Reduce recurring errors detected in application logs to meet a target threshold Max iterations: 10 Between iterations run: analyze-error-logs Exit when: error_count <= target_error_count I want to reduce recurring errors in my application. Please analyze the error logs to identify patterns and fix the most common issues. What is your target error count and where should I find the log files to analyze? Self-pace this loop. After each iteration, run `analyze-error-logs` and evaluate the output, and only continue if the exit condition is not met (error_count <= target_error_count). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.