opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(opencode): Added {env:VAR} substitution to markdown-based config parsing

Open Eric-Guo opened this issue 21 hours ago • 7 comments

Close #5054

The key difference between this PR and #5092 is this PR allow ENV usage in markdown body.

I already including a real use case in document and give the warning of security concerns.

Notice current json configuration of prompt allow using ENV, so I think using ENV in markdown body should also allowed.

Other coding agent like kimi-cli using ENV in their system prompt, so security concerns is not as serious as the first sight.

Eric-Guo avatar Jan 18 '26 15:01 Eric-Guo