Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
20.94k stars 1.93k forks source link

It should be possible to explicitly add files outside of --subtree-only #2088

Open mikehearn opened 1 week ago

mikehearn commented 1 week ago

Issue

I have a small-ish mono-repo (~2,100 files), so I'd like to use --subtree-only, but I also have some markdown files that contain internal documentation I'd like the model to read that are outside the usual subtree where the code is. Currently I can't write something like:

aider --subtree-only ../docs/*.md

because aider ignores the files outside the subtree.

Version and model info

v0.55.0 Main model: claude-3-5-sonnet-20240620 with diff edit format, infinite output Weak model: claude-3-haiku-20240307

paul-gauthier commented 1 week ago

You can use --read to add files from anywhere in the file system.

mikehearn commented 6 days ago

Thanks! If that's the right UX then it'd be good if aider spotted this mistake and notified the user about the --read flag.