Skip to content

add directory to opencode system-prompt/instructions writing#208

Open
verdverm wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
verdverm:opencode-prompt-dir
Open

add directory to opencode system-prompt/instructions writing#208
verdverm wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
verdverm:opencode-prompt-dir

Conversation

@verdverm
Copy link
Copy Markdown

@verdverm verdverm commented May 4, 2026

Makes the file location consistent with other harnesses, was not being picked up by opencode because it ended up in $HOME instead of $HOME/.config/opencode

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the file path for AGENTS.md in the OpenCode harness to be located within a .config/opencode subdirectory. Review feedback points out that the os.WriteFile calls will fail if the new directory structure does not already exist and recommends using os.MkdirAll to create the path, while also suggesting the use of a helper method to avoid hardcoding the configuration directory name.

Comment thread pkg/harness/opencode.go Outdated
Comment thread pkg/harness/opencode.go Outdated
@verdverm verdverm force-pushed the opencode-prompt-dir branch from 7d00999 to 2eaa28e Compare May 5, 2026 13:39
@verdverm verdverm force-pushed the opencode-prompt-dir branch from 2eaa28e to 81814b4 Compare May 9, 2026 19:11
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