You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the directory listing limit configurable in the system prompt #2541
Right now the files pushed into the system prompt as output from Ripgrep.tree are pretty much useless on a large enough project. The breadth-first nature of it makes it prioritize shallow files, and most useful files are more deeply nested in a lot of projects. For example here's some stats from my rails app
And on top of that, the output is kind of nonsensical, i'm not sure the model is going to make heads of tails of this. For example this is what my /app directory ends up looking like in the prompt
@Cluster444 IIUC, this will be affected by allowing users more control of the context via /add and /drop, see #1990. Is that correct ?
There is also the question of whether the raw files are added to the context or a tree-sitter extract?
No I dont think that would affect what I was getting at here. This is a builtin that is dumping a directory tree directly into system instructions, and on even small projects it renders it quite useless because it saturates the 200 file limit with all the 1st and 2nd tier files, where most source code is 3-5 dirs deep in many projects, so they never show up.
This is a builtin that is dumping a directory tree directly into system instructions...
Yes, that destination is just plain, flat-out wrong.
... where most source code is 3-5 dirs deep in many projects, so they never show up.
Correct so a agent or command /add folder/needed/one/*.ts and /add folder/two/*.html, where the tree-sitter data from those folders is added to the Context-Text, and not the User-Prompt-text, and definitely not the System-Prompt-Text.
Activity
github-actions commentedon Sep 11, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 11, 2025
just going to assign it to you since I saw the exchange in discord
taqtiqa-mark commentedon Oct 14, 2025
@Cluster444 IIUC, this will be affected by allowing users more control of the context via
/addand/drop, see #1990. Is that correct ?There is also the question of whether the raw files are added to the context or a tree-sitter extract?
Cluster444 commentedon Oct 15, 2025
No I dont think that would affect what I was getting at here. This is a builtin that is dumping a directory tree directly into system instructions, and on even small projects it renders it quite useless because it saturates the 200 file limit with all the 1st and 2nd tier files, where most source code is 3-5 dirs deep in many projects, so they never show up.
taqtiqa-mark commentedon Oct 15, 2025
Yes, that destination is just plain, flat-out wrong.
Correct so a agent or command
/add folder/needed/one/*.tsand/add folder/two/*.html, where the tree-sitter data from those folders is added to the Context-Text, and not the User-Prompt-text, and definitely not the System-Prompt-Text.That would be a sane approach.
taqtiqa-mark commentedon Oct 15, 2025
Substantiating this claim:
See: #2108 (comment)
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.