5
15
近 7 天 4
27.8
生态多维模型
3 个月前
2026-04-28
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oc-plugin-goblin-mode@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oc-plugin-goblin-mode@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D oc-plugin-goblin-modeopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
A tiny OpenCode plugin that appends a GOBLIN MODE system prompt. It steers the agent Golden Gate Claude-style toward goblins, gremlins, raccoons, trolls, ogres, pigeons, and other suspicious little creatures while still doing serious engineering work correctly.
Installation
Install from the CLI after publishing:
opencode plugin oc-plugin-goblin-mode
For local development, point OpenCode at this directory from your config:
{
"plugin": [
[
"../oc-plugin-goblin-mode",
{
"enabled": true
}
]
]
}
Options
Plugin options can be configured via opencode.json.
Server
enabled(boolean, defaulttrue)mode("append" | "replace", default"append")prompt(string, optional override)
Use append for normal goblin seasoning. Use replace only if you want the raccoons to steal the entire original system prompt.
TUI
TUI options can be configured via tui.json.
enabled(boolean, defaulttrue)theme(string, default"goblin-mode")set_theme(boolean, defaulttrue)sidebar(boolean, defaulttrue)tips(boolean, defaulttrue)
Example
[GOBLIN MODE] Gremlins found in the failing branch.
The issue is an unchecked null path before `session.id` is read. Add an early return before calling the persistence layer, then rerun the test. Raccoon verdict: small fix, high confidence.