You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a resource for the deployment-wide chat system prompt #411
The deployment-wide chat system prompt (Settings → Instructions in the dashboard, GET/PUT /api/experimental/chats/config/system-prompt) can't be managed by this provider. It's one of the most frequently-changed pieces of Coder Agents config — it's effectively the org's institutional knowledge for agents — and right now the only way to manage it as code is to curl the API from CI.
That's exactly what we do in dogfood today for cdrstable.dev: system-prompt.md lives in git, the workflow PUTs it on apply and diff-warns on drift in PR plans. It works, but it's a workaround bolted onto a Terraform module that manages everything else natively:
It already uses the ExperimentalClient for coderd_agents_model, with the standard "experimental, changes expected" warning
Proposed resource
resource"coderd_chat_system_prompt""this" {
system_prompt=file("${path.module}/system-prompt.md")
include_default_system_prompt=true# append to Coder's built-in prompt rather than replace
}
Singleton (deployment-wide config, like coderd_oauth2_provider_settings): create/update both PUT, delete resets to empty prompt (or just forgets — open to opinions)
Drift shows up in plan like any other resource, replacing the hand-rolled diff step
Needs an owner-scoped token, same as the AI provider/model resources
Activity
linear-code commentedon Aug 18, 2026
ENG-3245
feat(coderd_chat_system_prompt): manage the deployment-wide chat syst…
feat(coderd_chat_system_prompt): manage the deployment-wide chat syst…
feat(coderd_chat_system_prompt): manage the deployment-wide chat syst…
feat(coderd_chat_system_prompt): manage the deployment-wide chat syst…
feat(coderd_chat_system_prompt): manage the deployment-wide chat syst…