aider icon indicating copy to clipboard operation
aider copied to clipboard

Feature request: flag unused context

Open jbellis opened this issue 1 year ago • 2 comments

Issue

I just spent a large chunk of my Claude balance when I accidentally left a 5,000 line file in the context after I was done editing it. I eventually noticed my mistake when I wondered why aider/Claude was taking longer to respond than expected. (This is not how I prefer to organize things but it was someone else's project.) What do you think about adding a line to the output like this?

Applied edit to foo.py Unedited files in context: bar.py, baz.py

Version and model info

Aider v0.56.0

jbellis avatar Sep 15 '24 01:09 jbellis

If you are unsure what is in your context, you can use /tokens to check.

tokens

fry69 avatar Sep 15 '24 01:09 fry69

Thanks for trying aider and filing this issue.

Aider already shows all the files in the context above each prompt:

─────────────────────────
aider/scrape.py
>

paul-gauthier avatar Sep 22 '24 01:09 paul-gauthier

I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.

paul-gauthier avatar Oct 07 '24 20:10 paul-gauthier