I guess the difference is that your script produces a complete copy, whereas aider uses a concise summary, necessary for when the context window is full