opencode icon indicating copy to clipboard operation
opencode copied to clipboard

.config opencode agent dir? why not agents?

Open crper opened this issue 1 week ago • 3 comments

Question

The mainstream configuration for agents makes use of the agents directory. Why doesn’t “opencode” use the plural form?

crper avatar Jan 05 '26 15:01 crper

This issue might be a duplicate of existing issues. Please check:

  • #4170: Reorganize and document dirs for config, agents, auth credentials, sessions - discusses the overall directory structure and naming conventions for configuration and agent storage

Feel free to ignore if this doesn't address your specific case.

github-actions[bot] avatar Jan 05 '26 15:01 github-actions[bot]

Honestly good question, but in the end I think it comes down to preference, as no tools share the opencode folder (I would hope), so naming this agent/ instead of agents/ is a mere s difference, with no functional background. No code owner, but that is what I can make of this.

m10rten avatar Jan 05 '26 19:01 m10rten

It's likely an intentional design choice by the maintainers. You'll notice every directory, export, API etc is named in the singular. So for consistency within the codebase I guess that makes sense to extend to configuration.

ThomasGormley avatar Jan 05 '26 22:01 ThomasGormley

we just use singular forms that is the preference dax has just stylistic

rekram1-node avatar Jan 06 '26 03:01 rekram1-node