Skip to content

remove file listing from system prompt#5689

Closed
heimoshuiyu wants to merge 1 commit intoanomalyco:devfrom
heimoshuiyu:rm-files-list-prompt
Closed

remove file listing from system prompt#5689
heimoshuiyu wants to merge 1 commit intoanomalyco:devfrom
heimoshuiyu:rm-files-list-prompt

Conversation

@heimoshuiyu
Copy link

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.md is more appropriate. Adding a command /init to help users initialize an Agents.md for 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...

@github-actions
Copy link
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant