chinese-reminder
v1.0.1
Published
OpenCode plugin: auto-prepend Chinese thinking reminder to every user message
Maintainers
Readme
Chinese Reminder - OpenCode Plugin
在每条用户消息前自动添加 请用中文进行思考和中文回答下面内容.,强制大模型用中文思考和回答。
安装
方法一:git URL(推荐)
在 opencode.jsonc / opencode.json 的 plugin 数组中添加:
{
"plugin": [
"chinese-reminder@git+https://github.com/你的用户名/chinese-reminder.git"
]
}方法二:本地路径
git clone https://github.com/你的用户名/chinese-reminder.git ~/.config/opencode/plugins/chinese-reminder然后在 opencode.jsonc 中添加:
{
"plugin": [
"~/.config/opencode/plugins/chinese-reminder"
]
}原理
利用 OpenCode 的 experimental.chat.messages.transform 钩子,在每条用户消息发送前注入提醒文本(以用户消息文本形式,非 system prompt)。
验证
重启 OpenCode 后发任意消息,如果看到消息前自动出现「请用中文进行思考和中文回答下面内容.」即生效。
