remove file listing from system prompt #5689
Open
+0
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As described in #5224, changes in the list of files can cause cache invalidation, increasing API call costs and latency.
After removing the files list, I tested multiple models—GLM4.6, Gork 4 Fast, Gemini 3 Pro Preview, Qwen 3 Coder Plus, and Claude Sonnet 4.5—using 100M tokens in practical work tasks, and they all performed well.
I believe we can now remove the file list. The point raised in #2108 (comment) is valid—it’s something that changes dynamically. I think if we need to include project information in the coding agent, using
Agents.mdis more appropriate. Adding a command/initto help users initialize anAgents.mdfor a new project, where the directory structure and the locations of important files are described, would be a better approach. And that will be another PR...