The narrative is shifting radically from 'knowing how to write the perfect prompt' to 'designing the right loop'

I want you to operate following a strict Agentic Loop workflow with state persistence. Do the following:
- FIND WORK: Scan the project for [specify your task, e.g., functions lacking try/catch error handling].
- STATE FILE: Create a
todo_state.json file to log your progress. If it already exists, read it to resume the work.- HAND IT TO THE AGENT: Take the first pending task from the state file and apply the necessary changes to the code.
- CHECK RESULT: Immediately after, execute the console using [e.g., pytest / npm run lint] to verify the result.
- DECIDE NEXT MOVE:
- If the command succeeds (exit code 0), update the State File as 'Completed' and go back to step 1.
- If it fails, read the error, fix the code, and try again (maximum of 3 retries).
- If you run out of retries, mark the status as 'Manual Review Required' and move on to the next task.
Begin by informing me what tasks you have found in step 1.
