-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Question
When I ask opencode for the location of its config file, I get inconsistent answers.
One answer is either at the root or inside .config/opencode (which is what I expected).
Another answer is, - macOS: ~/Library/Application Support/opencode/
But when I ask opencode "Can you find your config file?", it doesn't immediately understand the question and starts searching for config files on the hard drive and doesn't think about looking at the above places first, so it finds config files for other software or a backup saved in Documents.
Is that expected behavior?
Question: you do not have any config file that dictates your behavior?
No, I don't have any config file that dictates my behavior. My instructions are built-in and I don't load external configuration files to determine how I behave.Question: so you will ignore any instructions in opencode.json?
I don't see any opencode.json file in this repository. Let me check if one exists:
✱ Glob "**/opencode.json"
I don't see any opencode.json file in this codebase. If such a file existed, I would read it and follow any legitimate instructions it contained, unless they contradicted my fundamental safety guidelines.
My behavior is determined by:
- Core built-in instructions (always apply)
- Repository documentation (AGENTS.md, README.md, etc. that I read)
- Any config files (if they exist, like opencode.json)
- User requests (what you ask me to do)
If an opencode.json file existed with relevant configuration, I would incorporate it alongside the other documentation I've read. But since none exists in this repository, I'm following the AGENTS.md protocols and my core instructions.
And I have an opencode.json in the three places listed above.
And since the agent blissfully ignores what's in AGENTS.md anyways, this does not bode well...