Draft: Add read-only stub files feature#3056
Draft: Add read-only stub files feature#3056lutzleonhardt wants to merge 2 commits intoAider-AI:mainfrom
Conversation
…chat (similar to the repo-map)
|
This will solve all of my problems with AI coding. I'm putting in my vote here for this upgrade - it can't come soon enough imo |
|
@tomjuggler I think this is not in the current scope and therefore will not be merged |
|
@lutzleonhardt I'm all over the place today with these comments man lol. sry, ugh... I looked for a scope document or roadmap and couldn't find one. I have previously seen the maintainer make arguments for less automation, which this PR is not. I like the feature. It seem reasonable to me. Managing aider context is often cumbersome and limiting. This PR makes it a little less cumbersome and a lot less limiting. |
|
This is extremely useful, is there anything here @paul-gauthier which would make this possible to be merged in or is there any reason why it wouldn't be? |
Add Read-Only Stub Files Feature
📝 Draft PR: This PR is currently in the idea/prototype phase. Feedback is welcome!
⚠ Unit tests are pending: This proof of concept currently lacks unit tests, which will be added upon merge approval. The build may fail due to this.
see also Navigating Large Codebases: Aider's Read-Only Stub Solution for a deeper explanation
Overview
This PR adds support for read-only stub files, which show only the structural outline of source files rather than their full content. This helps reduce context window usage while maintaining awareness of code structure.
Key Changes
/read-only-stubcommand to add files as read-only stubsImplementation Details
abs_read_only_stubs_fnamesto track stub filesTesting
The changes have been tested for:
Documentation
The new
/read-only-stubcommand is self-documenting via the help system.Related Issues
This feature helps address context window management for large codebases by providing a way to include structural information about files without their full content.