The concept is that we can use macro command to put the entire process into a RAG in one single turn. For example like this:
step1: inspect env step2: apply patch (change package file) step2: apply patch (fix the bug) step2: apply patch (edit the testing script) step3: build step4: run tests and lint step5: read medias
I could not test this implementation due to Antropic terms of use. But I tested on other coding agent and providers this can reduce llm turns around by 40% - 80%, and saving nearly same amount of tokens. (I need to use ** to hide the provider's name in order to avoid the post being deleated by the bot).
Here is the implementation and testing benchmark can be found in the md. I tested with DeepSWE and entire repo rewrite cases:
https://github.com/Tura-AI/tura