[PR #5689] remove file listing from system prompt #11531

Closed
opened 2026-02-16 18:16:23 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5689

State: closed
Merged: No


As described in https://github.com/sst/opencode/issues/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 https://github.com/sst/opencode/issues/2108#issuecomment-3403600775 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...

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5689 **State:** closed **Merged:** No --- As described in https://github.com/sst/opencode/issues/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 https://github.com/sst/opencode/issues/2108#issuecomment-3403600775 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...
yindo added the pull-request label 2026-02-16 18:16:23 -05:00
yindo closed this issue 2026-02-16 18:16:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11531