opencode-gpt-talk-normalOpenCode server plugin — auto-inject talk-normal system prompt for GPT models
0
11
近 7 天 5
19.7
生态多维模型
4 个月前
2026-04-11
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-gpt-talk-normal@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-gpt-talk-normal@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-gpt-talk-normalopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
English | 中文
OpenCode server plugin — automatically injects the talk-normal system prompt when using GPT models.
What it does
When model.id or model.modelID contains gpt (case-insensitive), this plugin prepends the talk-normal prompt to the system message before it reaches the LLM. Non-GPT models are completely unaffected.
The prompt source is talk-normal v0.6.1 by hexiecs.
Install
# via opencode CLI (recommended)
opencode plugin opencode-gpt-talk-normal
# or pnpm
pnpm add -D opencode-gpt-talk-normal
# or npm
npm install -D opencode-gpt-talk-normal
Configure
Add to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-gpt-talk-normal"]
}
Or with a local path for development:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["/absolute/path/to/opencode-gpt-talk-normal"]
}
Behavior
| Condition | Result |
|---|---|
model.id contains gpt |
talk-normal prompt prepended to system[] |
| model is Claude, Gemini, etc. | no change |
| prompt already injected | skipped (idempotent) |
E2E verified
Tested against real openai/gpt-5.4 through OpenCode's plugin hook (experimental.chat.system.transform). The captured request confirmed talk-normal appears as the first system message, while a control run with claude-sonnet-4.6 showed no injection.
Test
node --test
License
MIT