coding-loop
The steps, in order. Each one leaves something a reader can check.
- Take the job as a /plan message. If it did not arrive as one, ask the user to send it as /plan.
- In plan mode, read the files the job names and ask the user what you need to know. Write your steps to PLAN.md: the files you will change, what each change does, and how the validation will show it worked.
- Wait for the user to type approve. Change nothing before that.
- Make the change, one file at a time, with write_file. Say what changed and why in one line per file.
- Run the validation with execute_file: python3 score.py. Read its output.
- If the score is below the target, go back to step 4 with what the misses show. Stop after three rounds and say what is still wrong.
- Report the result: the score line, the files you wrote, and what you would try next.
- Save transcript.md in the project folder: the /plan message, your questions and the answers, PLAN.md, the approve, every write_file call with its full content, every validation run with its output, and the report.